Fleet Telematics Geofencing 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.

For more information on app ID and app code, see Authentication Guide.


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

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://fleet.ls.hereapi.com/2/search/proximity.json
-H "Authorization: Bearer {YOUR_TOKEN}"
For more information on authentication tokens, see Authentication Guide.