Pinnacle API issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stef@n
    SBR Rookie
    • 04-01-11
    • 9

    #1
    Pinnacle API issue
    I'm having problems trying to access some parts of Pinnacle API using Python 2.7.
    While most of the links do work, every time I try to get ALL soccer odds at once it returns nothing and the
    execution freezes. Here's my code:

    import requests
    r = requests.get("https://api.pinnacle.com/v1/fixtures?sportid=29", auth=('username', 'password'))
    print r.content

    I guess it has something to do with amount of data because I'm able to get specific leagues and the sports with fewer games. The following examples work:

    r = requests.get("https://api.pinnacle.com/v1/fixtures?sportid=4", auth=('username', 'password')) (Basketball)
    r = requests.get("https://api.pinnacle.com/v1/fixtures?sportid=29&leagueids=1728,1798, 1817", auth=('username', 'password'))


    Any idea what might be causing this problem?
  • MaddyMax
    SBR Wise Guy
    • 02-14-17
    • 790

    #2
    Looking forward to inputs, I am experiencing same problem.
    Comment
    • Stef@n
      SBR Rookie
      • 04-01-11
      • 9

      #3
      Solved it by running the code in Sublime Text instead of Python Idle
      Comment
      SBR Contests
      Collapse
      Top-Rated US Sportsbooks
      Collapse
      Working...