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 parameter in a request URL.
https://1.base.maps.api.here.com/maptile/2.1/maptile/newest/normal.day/13/4400/2686/256/png8
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
For more information on app ID and app code, see Authentication Guide. API Key
The following sample demonstrates authentication with an API Key that is a parameter in a request URL.
https://1.base.maps.ls.hereapi.com/maptile/2.1/maptile/newest/normal.day/13/4400/2686/256/png8
?apiKey={YOUR_API_KEY}
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://1.base.maps.ls.hereapi.com/maptile/2.1/maptile/newest/normal.day/13/4400/2686/256/png8
-H "Authorization: Bearer {YOUR_TOKEN}"
For more information on authentication tokens, see Authentication Guide.