首页 > 解决方案 > 如何在 HERE api 的大规模矩阵中获取令牌请求的参数?

问题描述

如何在 HERE api 的大规模矩阵中获取令牌请求的参数?我正在使用 POSTMAN 获取令牌。

请提供详细信息,因为我因此而被阻止。

https://developer.here.com/documentation/large-matrix/dev_guide/topics/get-started/request-a-token.html

标签: here-api

解决方案


您可以检查检查此帖子以生成令牌-

矢量 api,401 http 错误代码,签名不匹配。授权签名或客户端凭证错误

还有一个例子。请求正文必须包含:

grant_type=client_credentials

grant_type 的值必须始终是 client_credentials。这是一个示例请求:

POST /oauth2/token HTTP/1.1
Host: account.api.here.com
Authorization: OAuth oauth_consumer_key="1tqA_sample1fLhs2z6_q1l",oauth_signature_method="HMAC-SHA256",oauth_timestamp="1512072698",oauth_nonce="ZGAaMP",oauth_version="1.0",oauth_signature="Q0sample4lqICrx19%2F4ahaH%2Fi2O0NgqDUQJgti5U3Q%3D"
Cache-Control: no-cache
Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials

推荐阅读