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())
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())


Comment