我正在为eBay商店开发一个管理系统,并阅读了API手册,但了解得很少。据我了解,有两种身份验证方法:Auth'n'auth和OAuth,但它们都不适合我。
我需要使用特定范围来获取客户端商店的访问令牌。可能吗?有人设法那样整合吗?
答案 0 :(得分:0)
对于大多数最新版本和所有较旧的API(交易API),eBay支持OAuth令牌。 OAuth令牌可以使用任何标准的OAuth客户端生成,或者如果使用Java或C#,则也可以使用开源的标准库。 https://github.com/eBay/ebay-oauth-java-client
name: ebay-config
api.sandbox.ebay.com:
appid: <appid-from-developer-portal>
certid: <certid-from-developer-portal>
devid: <devid-from-developer-portal>
redirecturi: <redirect_uri-from-developer-portal>
api.ebay.com:
appid: <appid-from-developer-portal>
certid: <certid-from-developer-portal>
devid: <devid-from-developer-portal>
redirecturi: <redirect_uri-from-developer-portal>
参考:https://developer.ebay.com/api-docs/static/oauth-tokens.html