HI , I click on 'Get Access Token',it return an error: Page not found
And when I Debug, Nop.Plugin.Api.Controllers.OAuth.OAuthController wouldn't run.
I don't know what happened
I tried to upload new product images via the API, but was unable to figure out the way how it is done properly. Is there a example available or has someone implemented this successfully?
When I am trying to submit the form authorization Index. It navigates to My Portal and then Page Gets Bank and process stopped. Can you please help in that.
When reading the "How to use the client application." section of your nopCommerce Api Sample Client Application Readme.md, How do I Create a new Api client from the Api plugin administration as explained in step 4?
I cannot get past this, the return Redirect(authUrl); fails and I get a XML message, "An error has occurred.". I'm connecting to the live server which is HTTPS. I verified the clientID as well as the other variables is the authUrl string. I verified the API Client setup on the live site is active and the call back url is: http://localhost:49676/token. When I change to debug and run nopcommerce with the api plugin locally it works, even if I use the same db as the live site. So I know it can create the authorization code. I'm pretty sure the issue is with getting it to refresh the token but, I can't get it past this point to refresh it. The return doesn't throw a direct exception, it continues on to the outer bracket and then throws the error on the api application's web page.
Any ideas are greatly appreciated.
This image is after trying to use the RestSharp solution;
The latest release of this web api branch does not compile for Nop.Plugin.Api.Tests. I downloaded it yesterday. I did not clone it. That should not make a difference.
Here are the errors I'm seeing:
The type or namespace name 'ISerializableObject' could not be found (are you missing a using directive or an assembly reference?) Nop.Plugin.Api.Tests D:_depot\Test\nopCommerce-Web-Api-3.70\src\Tests\Nop.Plugin.Api.Tests\SerializersTests\DummyObjects\SerializableDummyObjectWithSimpleTypes.cs. This was corrected by adding "using Nop.Plugin.Api.DTOs;" to SerializableDummyObjectWithComplexTypes.cs.
The same error occurs for SerializableDummyObjectWithSimpleTypes.cs with the same fix.
The type or namespace name 'CreateMap' does not exist in the namespace 'Nop.Plugin.Api.Maps' (are you missing an assembly reference?) Nop.Plugin.Api.Tests D:_depot\Test\nopCommerce-Web-Api-3.70\src\Tests\Nop.Plugin.Api.Tests\ControllersTests\ShoppingCartItems\ShoppingCartItemsControllerTests_GetShoppingCartItemsByCustomerId.cs. This occurs for "Maps.CreateMap<Category, CategoryDto>();". I'm assuming this is an AutoMapper map definition, but I'm not faimiliar with this format. Changing to AutoMapper.Mapper.CreateMap<Category, CategoryDto>(); works.
Authorization has been denied for this request when using postman although i used bearer and the token as Authorization on the header so could any one help?
i am using postman for your web api plugin to access Nopcommerce resources , but it giving me authorization error as this plugin is using Oauth 2.0 authentication. Can Anyone suggest me local auth URL and access token URL for generating successfully Bearer token to access resources
I follow the Sample Application guide to run this app but received a 400 Bad Request ,then I catched the exception.Response property and use Stream Reader to read the message , it says "invalid_client" just as the picture below .
these are my config in Sample Application and Nopcommerce(v3.9) ,any idea can help ?
I've already read this issue but still can't solve my problem ,this already cost me 2 days to find why but no any use of it... T_T
I have successfully installed the API plugin. The sample application (nopCommerce-Api-SampleApplication) works fine with "GetCustomers". I also added a "GetProducts", which also worked like expected. But the sample action "UpdateCustomer" ends with an error message:
System.Net.WebException: 'Der Remoteserver hat einen Fehler zurückgegeben: (401) Nicht autorisiert
/ (401) not authorized
The code is storing the client secret in the description field in plain text. This circumvents the benefit of using the Sha256 hash as the client secret can be easily viewed if the database is ever exploited.
i want to access resources through Android using Web Api but first i want to authenticate user , and then access resources . Can anyone guide me on how to do that ?
I have to integrate nopCommerce with some other system, I am unable to find all the endpoints e.g order fulfillment, Refund and invoicing. Can someone help me to find the documentation/ API for nopCommerce?