Magento-RestApi
Magento-RestApi copied to clipboard
The remote server returned an error: (302) Moved Temporarily.
I followed the fairly simple tutorial on the project's home page, but I'm getting this kind of response when I try to create the connection for the first time:
MagentoApiInstance = new MagentoApi(); MagentoApiInstance = MagentoApiInstance.Initialize("http://magento1.test.eu", "d5d6b303940fba3ad2dfb36feac36b00", "699ffcec8fbea08e4e82ec3170e53726"); MagentoApiInstance = MagentoApiInstance.AuthenticateAdmin("Admin", "pass");
Error: ex.Message: The remote server returned an error: (302) Moved Temporarily.
ex.StackTrace: at System.Net.HttpWebRequest.GetResponse() at Magento.RestApi.MagentoApi.Login(MagentoWebClient webClient, String loginUrl, String userName, String password, String oauthToken) at Magento.RestApi.MagentoApi.AuthenticateAdmin(String userName, String password) at WebAspNetCore.Class.MagentoReader.TestConnectionAsync() in e:\Repositorios\Tool-e-byteRepository\Wishlist\WishlistSLN\WebAspNetCore\Class\MagentoReader.cs:line 31