Logout Json Python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tonyC
    Junior Member
    • Aug 2019
    • 9

    #1

    Logout Json Python

    Hi, Could someone please tell me the correct payload and/or headers to logout of a betfair session, because the following isn't working for me:
    def BFlogout():
    global sessionToken
    global my_app_key
    headers = {'X-Application': my_app_key, 'X-Authentication': sessionToken}

    resp = requests.post('https://identitysso.betfair.com/api/logout', headers=headers)
    print(resp.json())​
  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 680

    #2
    Hi tonyC

    You can find this information via https://docs.developer.betfair.com/p...agement-Logout

    There is no payload, just the endpoint and the three headers specified.

    Please note that the Accept header is mandatory.

    Kind Regards

    Neil

    Comment

    • tonyC
      Junior Member
      • Aug 2019
      • 9

      #3
      Awesome, got it thanks

      Comment

      Working...
      X