Skip to Content

Get OAuth Access Token for Data Attribute Recommendation via Web Browser

Retrieve your OAuth access token, which will grant you access to the service APIs.
You will learn
  • How to use your service key values to get an OAuth access token via any web browser
Juliana-MoraisJuliana MoraisMay 20, 2022
Created by
Juliana-Morais
May 16, 2022
Contributors
Juliana-Morais
  • Step 1

    To get your OAuth access token you will need the values listed below from the service key you created in the previous tutorial: Use Free Tier to Set Up Account for Data Attribute Recommendation and Get Service Key or Use Trial to Set Up Account for Data Attribute Recommendation and Get Service Key.

    DAR Service Key

    Choose the correct service key values you use to get OAuth access token for Data Attribute Recommendation via any web browser.

  • Step 2
    1. Add /oauth/token?grant_type=client_credentials to the url value (from inside the uaa section of the service key), paste it in any web browser and choose Enter.

    2. Enter the clientid value from your service key as Username.

    3. Enter the clientsecret value from your service key as Password.

    4. Click Sign in or OK (depending on the web browser you work with).

    DAR TOKEN

    You should receive a response like the following:

    JSON
    Copy
    {
        "access_token": "<< your access token >>",
        "token_type": "bearer",
        "expires_in": 43199,
        "scope": "<< granted access >>",
        "jti": "<< unique identifier >>"
    }
    

    Once the token has been generated, make sure to copy and save it locally for easy access. The token is valid for 12 hours (43199 seconds). After that, you’ll need to generate a new one.

    You have successfully generated your OAuth access token for the service and you are now all set to try out Data Attribute Recommendation.

Back to top