Versions Compared

Key

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

...

  • client_id (mandatory): this is your vendor ID, returned to you by the getDeveloperAppKeys /wiki/spaces/OL/pages/1671181 call provided you have been registered as a web vendor
  • response_type: this needs to be set to 'code', to indicate you are requesting an authorization code (see later)
  • redirect_uri (optional): this will be appended to the URL you provided upon sign up when to the Vendor Program when we redirect the user back to your site after login. This needs to be URL encoded.

Code Block
titleExample call - Creating An Access Token

 

https://identitysso.betfair.com/view/vendor-login?client_id=123456&response_type=code&redirect_uri=newjoiner

 

The user will log in and be presented with a message asking them to allow you to perform Betfair calls on their behalf, as shown below.

Image RemovedImage Added

 


Info

Should they accept this message, they will be redirected to your site (using your redirect URL + any optional parameters). Critically, we will include an authorization code as a parameter, under the parameter name "code".

NOTE: The authorization code will be valid for a single use for 10 minutes.

...

Code Block
titleExample redirect

...

https://mywebsite.com/newjoiner?code=12345

 

 

Info

You will need to propagate this code to your back-end, from which you will have to exchange it for an access token. The access token will allow you to use the Betfair API on the user's behalf.

To obtain it, you will need to call the token operation on the Accounts API

...