Dhoni have 144.78 Strike rate against MI 7 Batting performance of MSD with MI? Question Answer MSD performance with MI? ball_lav ball_pink Asset 2

Authentication API

Flow

To access any API, you need access token. Auth API provides you the access token, by validating your request. Call Auth API whenever the access token is expired.

Request

  • Path: https://rest.cricketapi.com/rest/v2/auth/
  • Method POST
  • POST Params:

    • access_key - Required. Access key of your application.
    • secret_key - Required. Secret key of your application.
    • app_id - Required. Your app_id
    • device_id - Required. Unique id of the client device or browser.

Response

  • auth.access_token - String.Access token for your future requests.
  • auth.expires - String (long). Expiration date in unix epoch timestamp.

Example

A simple auth request

$ curl -X POST \
    -d "access_key=YOUR_ACCESSKEY" \
    -d "secret_key=YOUR_SECRETKEY" \
    -d "app_id=YOUR_APPID" \
    -d "device_id=YOUR_DEVICEID" \
    https://rest.cricketapi.com/rest/v2/auth/

and the sample response

{
    "status":true,
    "version":"2.0.2",
    "status_code":200,
    "expires":"-1",
    "auth":{
        "access_token":"2s14XXXX97325301s976461134951486121",
        "expires":"1521641451.0"
    },
    "Etag":null,
    "cache_key":"auth|2s14XXXX97325301s976461134951486121|app_id|"
}

True Support Center

Not sure, what plan to choose? Just get in touch us. We are committed to providing a solution to all cricket data requirements. Feel free to write your technical questions, to know about best practice and guidelines.

000-800-040-1803 (Indian Tollfree Number)

+1 (855) 2SPORT4 (US Tollfree Number)