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:
- Without any APP_ID or KEY in Headers
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).
- Like above but for
maphub.cit.api.here.com
instead ofmaphub.api.here.com
response: 401 Unauthorized: Authentication failed. Reason: Missing authentication credentials
- With APP_ID and API_KEY
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.
- Feedback status without any headers
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.