Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Accept: application/json

X-Application: <AppKey>

Content-Typeapplication/x-www-form-urlencoded 

URL endpoint: https://identitysso.betfair.com/api/login

 

Payload

username=username&password=password

Curl call sample

 

Code Block
languagebash
curl -k -i -H "Accept: application/json" -H "X-Application: <AppKey>" -X POST -d 'username=<username>&password=<password>' https://identitysso.betfair.com/api/login

 

Example of a successful login:

 

Code Block
languagebash
curl -k -i -H "Accept: application/json" -H "X-Application: <AppKey>" -X POST -d 'username=<username>&password=<password>' https://identitysso.betfair.com/api/login
 
{
  "token":"SESSION_TOKEN",
  "product":"APP_KEY",
  "status":"SUCCESS",
  "error":""
}


Response structure

...