eBay API 刷新令牌
在我的网络应用程序中,我没有用户或类似的东西。我有一个简单的 GET 请求 https://api.ebay.com/buy/browse/v1/item_summary/search?q=\
来获取一些 eBay 产品。
问题是我在那里使用的令牌(我从 https: //developer.ebay.com/my/api_test_tool?index=0&env=product) 每 2 小时过期一次。所以我实际上必须转到我的 .env 并重新生成一个新令牌。
因此,我试图弄清楚如何避免这种情况并拥有某种刷新/访问令牌流,以便我的网站可以自行运行,而无需我每 2 小时重新生成生产令牌。
有什么想法吗?谢谢
In my web app I don't have users or anything like that. I have a simple GET request https://api.ebay.com/buy/browse/v1/item_summary/search?q=\
to get some eBay products.
The things is that the token I use there (which I get from https://developer.ebay.com/my/api_test_tool?index=0&env=production) expires every 2 hours. So I literally have to go to my .env and re-generate a new token.
So I was trying to figure out how can I avoid this and have some sort of refresh/access token flow, so that my website could go on its own without me re-generating the Production token every 2 hours.
Any ideas? Thanks ????
Their documentation is extremely confusing, but I am trying to follow official guide:
https://developer.ebay.com/api-docs/static/oauth-refresh-token-request.html
As well as some comments here:
https://community.ebay.com/t5/eBay-APIs-Talk-to-your-fellow/How-to-generate-a-new-refresh-token/td-p/33898456
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论