Я работаю с библиотекой eBay ApiClient для C#, и у меня возникла проблема, когда я хочу использовать ее в производственной среде.
У меня проблема в следующем коде. Когда я использую его для песочницы, все работает нормально, но когда я использую его для производственной среды, я получаю сообщение от eBay:
There was an error passing information between the third party you just came from and eBay.
Error code: : 2024-05-27 13:32:11 : signin.ebay.com
This error may have occurred for one of the following reasons:
The third party that has sent you here has provided invalid information to eBay.
eBay has encountered an error processing your request. Please close this window and return to the third party application.
OAuth2Api oAuth2Api = new OAuth2Api();
CredentialUtil.Load("config.yaml");
OAuthEnvironment environment = OAuthEnvironment.PRODUCTION;
List scopes = new List()
{
"https://api.ebay.com/oauth/api_scope/se ... t.readonly",
"https://api.ebay.com/oauth/api_scope",
"https://api.ebay.com/oauth/api_scope/sell.fulfillment"
};
string state = "current-page";
string authorizationUrl = oAuth2Api.GenerateUserAuthorizationUrl(environment, scopes, state);
Console.WriteLine("Please navigate to this URL to authorize:\n" + authorizationUrl);
Подробнее здесь: https://stackoverflow.com/questions/785 ... production