没有在易趣重定向网址上获得响应代码

时间:2018-06-01 09:57:48

标签: php codeigniter ebay ebay-api

我正在尝试拨打以下链接以连接eBay O'Auth帐户。

https://auth.ebay.com/oauth2/authorize?client_id=' . APP_ID . 
'&response_type=code&redirect_uri=' . RU_NAME . 
'&scope=https://api.ebay.com/oauth/api_scope 
https://api.ebay.com/oauth/api_scope/sell.marketing.readonly 
https://api.ebay.com/oauth/api_scope/sell.marketing 
https://api.ebay.com/oauth/api_scope/sell.inventory.readonly 
https://api.ebay.com/oauth/api_scope/sell.inventory 
https://api.ebay.com/oauth/api_scope/sell.account.readonly 
https://api.ebay.com/oauth/api_scope/sell.account 
https://api.ebay.com/oauth/api_scope/sell.fulfillment.readonly 
https://api.ebay.com/oauth/api_scope/sell.fulfillment 
https://api.ebay.com/oauth/api_scope/sell.analytics.readonly

但是当我在localhost上使用相同的东西时它的响应是空白的并且它工作正常但是当我提供实时服务器URL时它的响应是空白的。

我正在使用生产易趣帐户的详细信息。即使在localhost上使用相同的细节。我的实时服务器也有SSL。

1 个答案:

答案 0 :(得分:0)

尝试从eBay自己获取网址:

  1. 转到eBay链接进行自动化:
    eBay Autorization page for Developers
  2. 然后单击通过您的应用程序从eBay获取令牌
  3. 现在单击查看全部
  4. 复制整个字符串,使用该 url 代替自己制作。
相关问题