ebay ouath多国支持

时间:2018-10-26 07:00:50

标签: ebay ebay-api

我一直在尝试在我的插件中实现ebay oauth,我需要多个国家/地区的支持(多个市场)。 在nauth 中,我可以像这样简单地将singnin网址发送给不同的市场:

    US:
    https://signin.ebay.com/ws/eBayISAPI.dll?SignIn&RuName=*******************************&SessID=*********************************
    Canada:
    https://signin.ebay.ca/ws/eBayISAPI.dll?SignIn&RuName=*****************************&SessID=********************************
    UK:
    https://signin.ebay.co.uk/ws/eBayISAPI.dll?SignIn&RuName=*****************************&SessID=********************************

    and likeways.

但是在Oauth中,我只是要发送此网址->

[url] => https://auth.ebay.com/oauth2/authorize?client_id=**************************&redirect_uri=******************************k&response_type=code&state=5bd2ac8dbbcf4&scope=https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.account%20https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.inventory
[state] => ************************** 

用于获取令牌,ebay会自动重定向到登录URL。它总是发送到此->

  https://signin.ebay.com/ws/eBayISAPI.dll?SignIn&AppName=APPNAME&ru=https%3A%2F%2Fauth.ebay.com%2Foauth2%2Fconsents%3Fclient_id%3DCLIENTID%26redirect_uri%3DRUNAME%26scope%3Dhttps%253A%252F%252Fapi.ebay.com%252Foauth%252Fapi_scope%252Fsell.account%2Bhttps%253A%252F%252Fapi.ebay.com%252Foauth%252Fapi_scope%252Fsell.inventory%26state%3D5bd2ba5332f1d%26response_type%3Dcode%26consentGiven%3Dfalse .

从任何市场帐户登录后,注册过程均成功运行,我也可以获得授权代码。但是问题是,它是否适用于项目添加,库存和订单同步以及所有Api。因为,我登录的是signin.ebay.com,但在nauth中曾经是signin.ebay.co.uk。 请帮助[我解决这个问题。谢谢。

0 个答案:

没有答案