here-api - 如何在 HERE api 的大规模矩阵中获取令牌请求的参数?
问题描述
如何在 HERE api 的大规模矩阵中获取令牌请求的参数?我正在使用 POSTMAN 获取令牌。
请提供详细信息,因为我因此而被阻止。
解决方案
您可以检查检查此帖子以生成令牌-
矢量 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
推荐阅读
- angular - 如何在 Angular7 FormArray 字段中动态隐藏按钮?
- python - LRU缓存使用多个键?
- node.js - 安装并要求 express-validator 后出现“TypeError:validator is not a function”
- regex - Rails 正则表达式排除符号结束单词之间的空格
- javascript - 如何在 react-native 组件中使用第三方 JS 库?
- javascript - 执行 splitter.refresh 后无法在 shieldSplitter 中初始化谷歌地图
- c# - 通过 cmd 行运行时未检测到使用 xunit 框架编写的 selenium 测试
- python-3.x - 是否有一个 python 函数可以让我获取一个主 CSV 文件并将其拆分为 100 行?
- botframework - 如何添加多个 ComponentDialogs?
- asp.net - 使用嵌套布局时,是否可以将使用 Razor 引擎的部分渲染委托给父布局?