I have a cURL request like this:
curl --location ‘https://api.tomtom.com/traffic/trafficstats/trafficdensity/1?key=[my_key]’
–header ‘Content-Type: application/json’
–data '{
“jobName”: “Test job”,
“distanceUnit”: “KILOMETERS”,
“mapVersion”: “2021.12”,
“acceptMode”: “AUTO”,
“network”: {
“name”: “test”,
“geometry”: {
“type”: “MultiPolygon”,
“coordinates”: [
[
[
[19.44305, 51.75612],
[19.44992, 51.75612],
[19.44992, 51.75947],
[19.44305, 51.75947],
[19.44305, 51.75612]
]
],
[
[
[19.45011, 51.75789],
[19.45687, 51.75789],
[19.45687, 51.75946],
[19.45011, 51.75946],
[19.45011, 51.75789]
]
]
]
},
“timeZoneId”: “Asia/Ho_Chi_Minh”,
“frcs”: [“0”, “1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”],
“probeSource”: “ALL”
},
“dateRange”: {
“name”: “Last working week of January”,
“from”: “2021-01-25”,
“to”: “2021-01-29”,
“exclusions”: [“2021-01-26”, “2021-01-27”]
},
“timeSets”: [
{
“name”: “Monday morning hour”,
“timeGroups”: [
{
“days”: [“MON”],
“times”: [“7:00-8:00”]
}
]
}
]
}
’
And the server returns 403 error.
Anybody knows how to fix this issue ?