I am trying create a Betfair interactive login following this [tutorial ][1] and i keep on getting and error my app_key is correct and my username and password also correct but i think i am not getting hoe to set it to work correctly please any help will be grateful here is my code
import requests
import json
login_hearders = {
'Accept' : 'application/json',
'X-Application':APP_KEY_HERE,
'Content-Type':'application/x-www-form-urlencoded '}
url = 'https://identitysso.betfair.au/api/login'
payload = {'username':'USERNAME_HERE','password':'PASSWORD_HERE'}
r = requests.post(url, data=payload,headers=login_hearders)
print(json.loads(r.text))