Here Maps provide Maps Feedback API for i.e. submit information about missing places on their maps. I created a project and generate API Key which I used for Places API with success. Next, I tried to use it with Feedback API, but it failed. Oddly enough without any credentials I got 200 OK.
My requests:
curl --location --request POST 'https://maphub.api.here.com/feedback/' \
--header 'Content-Type: application/vnd.here.layerObjectList+json; charset=UTF-8' \
--header 'Accept-Charset: charset=UTF-8' \
--header 'Auth-Service-Id: here_app' \
--header 'Group-Id: FGx1AWaAzKOo0imNkLmf' \
--data-raw MY_DATA
response: 200 OK
with body containing id
of feedback (important for checking status).
maphub.cit.api.here.com
instead of maphub.api.here.com
response: 401 Unauthorized: Authentication failed. Reason: Missing authentication credentials
curl --location --request POST 'https://maphub.api.here.com/feedback/' \
--header 'Content-Type: application/vnd.here.layerObjectList+json; charset=UTF-8' \
--header 'Auth-Identifier: MY_APP_ID' \
--header 'Auth-Secret: MY_API_KEY' \
--header 'Group-Id: FGx1AWaAzKOo0imNkLmf' \
--header 'Auth-Service-Id: here_app' \
--data-raw MY_DATA
response: 401 Unauthorized: Authentication for app_id MY_APP_ID FAILED (wrong app_code provided).
I the dashboard I don't have any app_code so I put in Auth-Secret my API_KEY.
curl --location --request GET 'https://maphub.api.here.com/feedback/ID_FROM_FIRST_REQUEST'
response: 403 Forbidden
How I can correctly authorize to Here Maps Feedback API? For me it's important to send feedback and then check its status.
There are a several reasons why your google maps may not be working, the most common issue being no Google Map API key set or set incorrectly. To use the Google Maps JavaScript API, you must register your app project on the Google Cloud Platform Console and get a Google API key which you can add to your app.
To confirm the key is associated with the project: Go to the Credentials section, which can be accessed from the left side bar under Google Maps Platform > Credentials. Check that the API key you currently use on your website is listed.
The fact of the matter is Public API keys don't expire. They are valid for as long as you don't delete them. So feel free to request as much public data for as long as you want, with in the limitations of your quota of course. Welcome to the would of Developing with Google!
The REST endpoints *.api.here.com
expect APP_ID and APP_CODE credentials.
However, APP_ID and APP_CODE credentials have been deprecated in December 2019 in favor of the API Key (which relates to an APP_ID, but the latter is not sent anymore in the request).
I assume you created your developer account project after the change, which is why you have no possibility to create the legacy APP_ID and APP_CODE pair for REST services.
Normally, REST services now offer a new endpoint in *.hereapi.com
precisely for authentication with API Key, while still offering the legacy endpoint *.api.here.com
for compatibility reason.
The problem is, I do not see the new endpoint for the Map Feedback API. It does not seem to exist. This is why I'd suggest to contact [email protected], by mentioning the issue, and that you therefore need an APP_CODE for your generated APP_ID.
Older accounts have the following section:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With