设置Amazon SP-API通知API
尝试设置Amazon SP-API通知API,但我遇到了一些问题,
我已经设置了所有内容,以创建目的地和SQS订阅。完成该部分后,我现在坚持如何将信息获取到我想要的特定端点。我似乎也无法弄清楚如何通过MFN_Order_status_change传递以从SQS获取所有必要的信息。
Trying to set up Amazon SP-API Notifications Api but I am running into a few issues
I have setup everything up to creating a destination and subscription for SQS. After completing that part, I am now stuck on how to get the information to a specific endpoint that I want. I also cant seem to figure out how will I pass in MFN_ORDER_STATUS_CHANGE to get all the necessary information from the SQS.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
他们在文档中提到 https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-case-guide-guide-guide-guide#step-2-create-a-a-destination
https://developer-docs.amazon.amazon.com/amazon-shipping/文档/赠款运行
ToddT, They mention in docs https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide#step-2-create-a-destination
https://developer-docs.amazon.com/amazon-shipping/docs/grantless-operations
AMR,
嘿,我将其放在这里,以便您可以看到我的代码,也许可以看到我在做错了什么。因为我可以像冠军一样使用邮递员。 API的工作原理很好,但是当我翻译自己的代码时,它每次都会失败,我不知道为什么..
在这里。我将在这里放入所有内容,
我可以得到LWA访问令牌,就像这样:
那么这些温度键也很好
,这一切都很好。但这就是失败的地方:
是的,我所得到的只是“请求标题中缺少访问令牌”,
但是当我查看请求时,它绝对不会丢失。.喜欢它!
Amr,
Hey, I'm putting this here so you can see my code and maybe see what I'm doing wrong. As I can use postman like a champ. And the API works just fine, but when I translate to my own code it fails every time, and I have no idea why..
Here goes. I'll just put in everything here
I can get the LWA access token just fine like this:
Then these temp keys are great too
Ok, all good to this point. But this is where it fails:
Yea all I ever get is "Access token is missing in the request header"
But of course when I look at the request, its definitely NOT missing.. Love it!