小编Mik*_* Br的帖子

Here Maps - 无法授权 Maps Feedback API

这里 Maps 提供了 Maps Feedback API,用于提交有关其地图上缺少的地方的信息。我创建了一个项目并成功生成了用于 Places API 的 API 密钥。接下来,我尝试将它与反馈 API 一起使用,但它失败了。奇怪的是,没有任何凭据我得到了 200 OK。

我的要求:

  1. 标题中没有任何 APP_ID 或 KEY
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
Run Code Online (Sandbox Code Playgroud)

响应:200 OK包含id反馈的正文(对于检查状态很重要)。

  1. 像上面一样,但maphub.cit.api.here.com代替maphub.api.here.com

回复: 401 Unauthorized: Authentication failed. Reason: Missing authentication credentials

  1. 带有 APP_ID 和 API_KEY
curl --location --request POST 'https://maphub.api.here.com/feedback/' \
--header 'Content-Type: application/vnd.here.layerObjectList+json; charset=UTF-8' \
--header …
Run Code Online (Sandbox Code Playgroud)

here-api here-maps-rest heremaps

6
推荐指数
1
解决办法
368
查看次数

标签 统计

here-api ×1

here-maps-rest ×1

heremaps ×1