You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+86-39Lines changed: 86 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ This is an API Binding in .Net C# for the new Amazon Selling Partner API.
5
5
6
6
This library is based on the output of [swagger-codegen](https://app.swaggerhub.com/home) with the [OpenAPI files provided by Amazon (Models)](https://github.com/amzn/selling-partner-api-models/tree/main/models) and has been modified by the contributors.
7
7
8
-
The purpose of this package is to have an easy way of getting started with the Amazon Selling Partner API using C#, you can watch this 📷 [Youtube](https://www.youtube.com/watch?v=1gZJBCoMr70) 📣 video for easy start your project
8
+
The purpose of this package is to have an easy way of getting started with the Amazon Selling Partner API using C#. You can watch this 📷 [YouTube](https://www.youtube.com/watch?v=1gZJBCoMr70) 📣 video to get started quickly.
To get all keys needed you need to follow this step [Creating and configuring IAM policies and entities](https://developer-docs.amazon.com/sp-api/docs/creating-and-configuring-iam-policies-and-entities) and then you need to [Registering your Application](https://developer-docs.amazon.com/sp-api/docs/registering-your-application) then [Authorizing Selling Partner API applications
1.[Create and configure IAM policies and entities](https://developer-docs.amazon.com/sp-api/docs/creating-and-configuring-iam-policies-and-entities)
81
+
2.[Register your Application](https://developer-docs.amazon.com/sp-api/docs/registering-your-application)
82
+
3.[Authorize Selling Partner API applications](https://developer-docs.amazon.com/sp-api/docs/authorizing-selling-partner-api-applications#step-1-request-a-login-with-amazon-access-token)
81
83
82
84
83
85
| Name | Description |
@@ -88,15 +90,15 @@ To get all keys needed you need to follow this step [Creating and configuring IA
88
90
| RefreshToken | Check how to get [RefreshToken](https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/developer-guide/SellingPartnerApiDeveloperGuide.md#Self-authorization)|
89
91
90
92
91
-
For more information about keys please check [New Amazon doc for create keys Developer ](https://developer-docs.amazon.com/sp-api/docs/creating-and-configuring-iam-policies-and-entities) , If you are not registered as developer please [Register](https://developer.amazonservices.com/) to be able to create application.
93
+
For more information about keys, check the [Amazon developer documentation](https://developer-docs.amazon.com/sp-api/docs/creating-and-configuring-iam-policies-and-entities). If you are not registered as a developer, please [Register](https://developer.amazonservices.com/) to be able to create an application.
92
94
93
95
---
94
96
## Usage
95
97
96
98
> ### Please be aware there has been a change to the _Orders.GetOrderAddress()_ method please reference the new sample code for more details.
97
99
98
100
### Configuration
99
-
You can configure a connection like so please see[Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.SampleCode/Program.cs) for the relevant code file.
101
+
You can configure a connection as shown below. See[Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.SampleCode/Program.cs) for the relevant code file.
### Order List, For more orders sample please check [Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.SampleCode/ReportsSample.cs).
@@ -174,7 +177,7 @@ var orders = _amazonConnection.Orders.GetOrders(parameterOrderList);
174
177
175
178
```
176
179
177
-
### Order List with parameter including PII data Advance (if you want to get specific data Elements object only)
180
+
### Order List with parameter including PII data — Advanced (ifyouwanttogetspecificdataelementsonly)
178
181
```CSharp
179
182
varparameterOrderList=newParameterOrderList
180
183
{
@@ -219,7 +222,8 @@ var orders = amazonConnection.Orders.GetOrders
219
222
);
220
223
```
221
224
222
-
### Report List, For more report sample please check [Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.SampleCode/OrdersSample.cs).
@@ -257,7 +261,7 @@ var data = amazonConnection.Reports.GetReportDocument("50039018869997",true);
257
261
258
262
259
263
### Report Manager 🚀🧑🚀✨
260
-
Easy way to get the report you need and convert the file return from amazon to class or list, this feature only ready for some reports as its will take much times to finish for [All report type](https://github.com/amzn/selling-partner-api-docs/blob/main/references/reports-api/reporttype-values.md) ....
if (notificationId!=null&&!_processedNotificationIds.TryAdd(notificationId, 0))
468
+
return;
469
+
470
+
// Cap the dedup cache so it doesn't grow forever
471
+
if (notificationId!=null)
472
+
{
473
+
_idQueue.Enqueue(notificationId);
474
+
while (_idQueue.Count>MaxTrackedIds&&_idQueue.TryDequeue(outvaroldId))
475
+
_processedNotificationIds.TryRemove(oldId, out_);
476
+
}
477
+
478
+
//Your Code here
479
+
}
435
480
}
436
481
437
482
```
438
483
439
484
### Feed Submit
440
-
Here full sample for submit feed to change price and generate XML and get final report for result same as in [doc](https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/use-case-guides/feeds-api-use-case-guide/feeds-api-use-case-guide_2021-06-30.md).
441
-
Notes: not all [feed type](https://github.com/amzn/selling-partner-api-docs/blob/main/references/feeds-api/feedtype-values.md) finished as it's big work and effort but all classes are partial for easy change and you can generate XML outside and use our library to get data, now we support only submit existing product, change quantity and change price , I list most of XSD here Source\FikaAmazonAPI\ConstructFeed\xsd its will help you easy generate class and add it in your app to generate final feed xml.
>**Note:**Notall [feedtypes](https://github.com/amzn/selling-partner-api-docs/blob/main/references/feeds-api/feedtype-values.md) are implemented yet. All classes are `partial` for easy extension — you can generate XML outside the library and use it to submit data. Currently supported: submit existing product, change quantity, and change price. Most XSD files are listed in `Source\FikaAmazonAPI\ConstructFeed\xsd` to help you generate classes for your app.
442
488
443
-
#### Feed Submit for change price , For more Feed sample please check [Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.SampleCode/FeedsSample.cs).
0 commit comments