Amazon-SP-API-CSharp
Amazon-SP-API-CSharp copied to clipboard
The RestrictedResource class is not matching the examples
This is an example from GitHib:
//You must have valid PII developer to be able to call this
var restrictedResource = new RestrictedResource();
restrictedResource.method = Method.GET.ToString();
restrictedResource.path = ApiUrls.OrdersApiUrls.Orders;
restrictedResource.dataElements = new List<string> { "buyerInfo", "shippingAddress" };
When I pasted that in, after loading the Nuget package the restrictedresource class did not match.
//You must have valid PII developer to be able to call this
var restrictedResource = new RestrictedResource();
restrictedResource.Method = RestrictedResource.MethodEnum.GET;//Method.GET.ToString();
restrictedResource.Path = ApiUrls.OrdersApiUrls.Orders;
restrictedResource.dataElements = new List<string> { "buyerInfo", "shippingAddress" };
I had to Capitalize Method, add the enum, but biggest issue is the missing property dataElements which is the one I really want to use. Did the project change to remove them?
I would love to use this as the original c# amazonsellingpartnerapi is a PITA to work with.
Edit: I pulledw down the main library code and took a look under the hood. From what I can tell it seems the buyerinfo and shipping address calls are now built in to the library?
I also noticed that the restrictedresouces class is missing from the package, but is in the source code so I am working what is in the Nuget package for the one I pule using VS2022 is 1.6.4
As I need PII data this is important.
Personally I have no time to keep updating this package but I'm open any developer need to fix or add feature on it its take many times from me to get it live , and I need other developer help to add the fix for new features by submit new Pull requests , I will try to review and accept within 2 days .
Please try fork our rep and then submit your change to review and merge with our code