通过 Postman 调用 Etsy OAuth2.0

问题描述

我是 Etsy API 开发的新手,我已经坚持了好几天。我尝试通过文档查找一些资源,以便我可以进行简单的 API 调用(我计划将其转换为代码,但我想通过 Postman 让它运行以查看它是否有效)。

如果这不是正确的平台,请告诉我,我应该在哪里发布?提前致谢。

文档链接https://developers.etsy.com/documentation/reference

我已经尝试添加标题,但它仍然不起作用。我做错了什么?

Postman Call

解决方法

https://developers.etsy.com/documentation/essentials/oauth2

步骤:

  1. 首先创建应用:https://www.etsy.com/developers/register

  2. 现在通过编辑应用添加回调 URL:https://www.etsy.com/developers/your-apps,转到此处并单击应用名称,然后向下滚动并编辑回调 URL:

enter image description here

并添加以下网址:https://oauth.pstmn.io/v1/callback

  1. 现在添加以下信息:
Token Name : any name
Grant Type: Authorization COde PKE
Callback URL : https://oauth.pstmn.io/v1/callback ( keep authroize using browser unchecked)
auth url: https://www.etsy.com/oauth/connect
Access Token URL: https://api.etsy.com/v3/public/oauth/token
Client ID: Your appi KEYSTRING
Client Secret: YOUR app secret
Code Challenge Method: SHA256
Code Verifier: leave blank
Scope: scope eg: transactions_r
State: superstate

秘密和密钥串:

enter image description here

最终配置:

enter image description here