Not logged in - Login
< back

apiusing

Contents [hide]

Using Our APIs

Accessing the API is a two-step process. Before you begin, you will need your client Id and client secret from your "Manage Your Account" page.

Please note that this API is still in development and thus the below steps are subject to change.

To request an access token for the API, do the following:

  1. Make a POST request to http://auth.sportsinfosolutions.com/connect/token with the following parameters in the body (this is standard OAuth2):

    • client_id

* client_id
* client_secret
  • granttype* grant_type (value = 'clientcredentials")
  • 'client_credentials")
  • * scope (value = "sisdata")
  • The raw request will look like this:

    POST http://auth.sportsinfosolutions.com/connect/token 
    clientid:client_id: yourclientId
    client
    secret:client_secret: yourclientsecret
    granttype:grant_type: clientcredentials
    client_credentials scope_ sisdata

    The response will look like this:

        { "accesstoken""access_token" : "blahblahblahblah...","expiresin":3600,"token_type":"blahblahblahblah...","expires_in":3600,"token_type": "Bearer"}
    

    1. Grab the value from "access_token", and add it (with "Bearer " prefixed) as the value of a Header key called "Authorization".

    The raw request will look like this (using an example endpoint):

    GET http://api.sportsinfosolutions.com/api/v1/nfl/league
    [Header stuff]
    Authorization: Bearer blahblahblahblah...
    
    



    At this point, you should recieve a JSON-encoded response.


    Resources