AUTHORIZATION


To recieve authorization tokens, use the following API:

https://api.digital2go.com/impressions/beacon.json

The API requires you to pass in a login request object as a parameter in the following format:

You acquire the required username, password, and device_id parameters from the D2GO platform.

Now, your response should be a JSON Object in the following format:

The value of the token property will be required for future API requests.

The ios_arn and sns properties are required to subscribe for push notifications in iOS.

The value of the refresh property is a token that should be stored securely on the application. It should overwrite any previous refresh token; it’s used to re-request a JWT token when it expires.

Other possible responses include:

  • 401 Incorrect Login
  • 422 Incorrect Login
  • 500 Some Other Error Occurred

For additional questions or technical support, please contact developers@digital2go.com.