here-api - 验证 findsequence 服务请求 HERE Maps API
问题描述
我正在尝试从 HERE Maps API 服务发出 GET 请求FindSequence
。我注意到在docs中,它包括三个身份验证参数:app_id
, app_code
, apiKey
. 文档暗示可以选择使用app_id
和app_code
组合或apiKey
单独使用。这是有道理的,因为在 HERE Maps 文档的其他地方,注意到旧模式是要使用的app_id
,app_code
但最近已被弃用,现在应该apiKey
单独使用。事实上,您甚至无法app_code
在 HERE 开发人员项目仪表板中生成一个。
因此,我尝试使用 the 发出请求,apiKey
但我遇到了要求app_id
and的身份验证错误app_code
:
`curl --location --request GET "https://wse.api.here.com/2/findsequence.json?apiKey=[apiKey]`
{"faultCode":"s74149e0f-5b37-41b1-bf25-0d5f93e06938","responseCode":"400","message":"The request is missing the app_id and app_code parameters. They must both be passed as query parameters. If you do not have app_id and app_code, please obtain them through your customer representative or at http://developer.here.com/myapps."}
据我了解,免费增值帐户没有客户代表。我已经寻求技术帮助,他们将我送到 Stack Overflow。我关注了 url http://developer.here.com/myapps
,但它重定向到https://developer.here.com/projects
. app_code
据我所知,无法从此网址获取。
我的问题是:1)我需要提供一个app_code
吗?如果没有,我如何在没有请求的情况下提出请求?如果我确实需要一个app_code
,我如何获得一个?2) 如果app_code
无法再获得 s,是否应该使用其他服务或该服务的其他版本来计算给定航路点位置的最佳路线序列?
解决方案
使用 API 密钥,您需要确保在*.hereapi.com
.
因此,以下请求应该更好地工作:
curl --location --request GET "https://wse.ls.hereapi.com/2/findsequence.json?apiKey=[apiKey]¶m1=value1&...
推荐阅读
- python - 在日期为 Unix 的 Django 模型中每天计算记录
- angular - 我希望将两个 ag-grids 组合成一个网格
- c - 该程序关于 void 指针的输出
- javascript - 如何将所有输入的偶数显示到
使用 Javascript
- r - 为什么 R 中的名称不通过 list(x, y, z) 传递?
- python - 使用此函数的 bot.set_my_command() 如何设置命令以及如何传递参数
- docker - docker compose 文件中的美元符号是什么?
- javascript - 如何处理错误:等待 Node 和 React 时套接字挂起
- python-3.x - 如何列出 Django 中的所有用户组?
- c++ - 大写字母