如何给ebay授权webapp?
How to authorize webapp with ebay?
我正在制作一个 django 应用程序,它可以保存我在 ebay 上的物品的信息。
因此,每个用户都会有多个 ebay 帐户。
例如:
user1 可以访问 ebay1、ebay2、ebay3 帐户。
如何获取每个账户的 appid、certid、devid 和 token?
最好的方法是单击 'add ebay account' 并在新的 window 中使用 ebay 登录页面并通过插入 username/password.
进行授权
我看过:
https://github.com/timotheus/ebaysdk-python
https://developer.ebay.com/devzone/xml/docs/reference/ebay/FetchToken.html
但我不清楚。
谁能给我提供一些步骤或指南?
提前致谢
我使用了这个 repo 中的代码:https://github.com/luke-dixon/django-ebay-accounts
修复来自:here 效果很好
您只需登录开发者帐户,然后单击用户令牌。
下一步点击在此处获取用户令牌。
登录您需要一个令牌的每个帐户
您的 APPID、CertId 和 DevID 始终保持不变..
InvalidHeader at /ebay_accounts/begin_create Header value 3 must be of type str or bytes, not <class 'int'>
您必须将 str 附加到您发送的数据中,以便 str("whatever")
我正在制作一个 django 应用程序,它可以保存我在 ebay 上的物品的信息。 因此,每个用户都会有多个 ebay 帐户。 例如: user1 可以访问 ebay1、ebay2、ebay3 帐户。 如何获取每个账户的 appid、certid、devid 和 token? 最好的方法是单击 'add ebay account' 并在新的 window 中使用 ebay 登录页面并通过插入 username/password.
进行授权我看过:
https://github.com/timotheus/ebaysdk-python
https://developer.ebay.com/devzone/xml/docs/reference/ebay/FetchToken.html
但我不清楚。 谁能给我提供一些步骤或指南?
提前致谢
我使用了这个 repo 中的代码:https://github.com/luke-dixon/django-ebay-accounts 修复来自:here 效果很好
您只需登录开发者帐户,然后单击用户令牌。
下一步点击在此处获取用户令牌。
登录您需要一个令牌的每个帐户
您的 APPID、CertId 和 DevID 始终保持不变..
InvalidHeader at /ebay_accounts/begin_create Header value 3 must be of type str or bytes, not <class 'int'>
您必须将 str 附加到您发送的数据中,以便 str("whatever")