amazon-api-gateway - 亚马逊 SP-API 认证

标签 amazon-api-gateway

我正在尝试使用 Amazon SP-API 通过 Postman 进行测试调用。我有一个可以发出 API 请求的应用程序,但它不在亚马逊应用程序市场中。我已经看到您可以发出使用 LWA token 的 Grantless 请求,尽管我坚持进行实际调用。下面是我用来获取 token 的调用。

网址:https://api.amazon.com/auth/o2/token 授权:AWS 签名 我添加必要的键 在正文中我添加 grant_type: client_credentials, client_id:myclientid, 客户 secret :我的客户 secret , 范围:sellingpartnerapi::notifications ''' "access_token": "mytoken", "scope": "sellingpartnerapi::notifications", "token_type": "持票人", “expires_in”:3600 '''

收到该响应后,我想进行测试调用以使用此 URL 检索订单

网址:https://sellingpartnerapi-na.amazon.com/orders/v0/orders

然后我不知道如何验证该调用以获取订单。

最佳答案

我设法使用它作为引用/模板在 Postman 中使它全部工作。

https://github.com/ionafan2/selling-partner-api-postman-sandbox

关于amazon-api-gateway - 亚马逊 SP-API 认证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66555683/

相关文章:

amazon-web-services - 使用 Amazon api 网关用 REST API 包装 graphQL(appsync)

amazon-web-services - 冲突异常 : Stage already exist from aws_api_gateway_deployment with stage_name

amazon-web-services - 使用 Lambda - Node.js 获取调用 AWS HTTP API 的 URL

amazon-web-services - AWS S3 路由重写

amazon-web-services - 在 aws.com 上手动删除后无服务器 API 网关资源不会返回

aws-lambda - HTTPApi + 无服务器框架 + API 网关 CORS 不工作