Send data to the cloud
You have now enabled your device to send data to the HERE Tracking API.
When sending telemetry as a virtual device, the data ingestion request needs to be made on behalf of the device by the device owner (see an example below).
The bearer token of the device owner is used to send the data along with the externalId (which is the virtual device id provided at the device provisioning step) and the project's appId.
User login
Login the user into the HERE Tracking API and obtain an accessToken.
Send data
Use the owner's account access token to authorise the POST request to the ingestion endpoint:
curl -X POST \
https://{tcHost}/v3/ \
-H 'Authorization: Bearer {accessToken}' \
-H 'Content-Type: application/json' \
-d '{
"appId": "MyAppId123",
"id": "MyDevice1",
"data": [
{
"scan": {
"gsm": [
{
"mcc": 262,
"mnc": 1,
"lac": 5126,
"cid": 16504
}
]
},
"timestamp": 1569248026000
}
]
}'Next steps
Now you can verify the data ingested into the HERE Tracking API.
Updated last month