Positioning API Developer's Guide

Authentication Examples

This section provides examples for all three authentication methods.

App ID and App Code

The following sample demonstrates authentication with app ID and app code that are parameters in a request URL.

https://pos.api.here.com/positioning/v1/locate
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
Add the POST body corresponding to the request. For more information on app ID and app code, see Authentication Guide.
Note: You have to use HERE app ID and app code authentication in Customer Integration Testing (CIT) server environment.

API Key

The following sample demonstrates authentication with an API Key that is a parameter in a request URL.

https://pos.ls.hereapi.com/positioning/v1/locate
?apiKey={YOUR_API_KEY}
Add the POST body corresponding to the request. For more information on API Keys, see Authentication Guide.

Authentication Token

The following sample demonstrates how to use an authentication token as a parameter in an HTTP header using cURL.

curl https://pos.ls.hereapi.com/positioning/v1/locate
-H "Authorization: Bearer {YOUR_TOKEN}"
Add the POST body corresponding to the request. For more information on authentication tokens, see Authentication Guide.