If you are new to the process required to obtain OAuth 2.0 Token Credentials for making requests to a HERE service or merely wish to verify your access keys, it may be helpful to use a tool like Postman. The following is an example of utilizing the access keys you obtained when you got your credentials on either the HERE platform or developer.here.com. This includes generating correctly signed bearer access tokens and making a test request to a HERE service.
Postman v7.12.0 for Microsoft Windows was used for this example.
Select the “Authorization” tab for your request and enter the Access Key values you obtained in Developer Portal as follows:
a. Choose the signature type “OAuth 1.0”. This version is used for the signature. All other functions use the OAuth2.0 version.
HERE signs OAuth 2.0 access bearer tokens for added security.
b. Ensure the option to Add authorization data to “Request Headers” is selected.
c. Enter the value for here.access.key.id in the “Consumer Key” field.
d. Enter the value for here.access.key.secret in the “Consumer Secret” field. This Access Key ID is from the file you downloaded when you created the credentials.
e. Check that HMAC-SHA256 is the selected Signature Method in the Advanced section.
Now you are ready to make an actual request to a HERE service using the OAuth 2.0 access bearer token you just obtained. Follow these steps:
You have now successfully used the Access Key Credentials to make a test request to a HERE service.