Skip to content

Commit 6890b7b

Browse files
committed
2 parents 81dc4e3 + c54c47b commit 6890b7b

File tree

1 file changed

+33
-29
lines changed

1 file changed

+33
-29
lines changed

README.md

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Amazon Selling Partner API C# 🚀 [![.NET](https://github.com/abuzuhri/Amazon-SP-API-CSharp/actions/workflows/dotnet.yml/badge.svg)](https://github.com/abuzuhri/Amazon-SP-API-CSharp/actions/workflows/dotnet.yml) [![NuGet](https://img.shields.io/nuget/v/CSharpAmazonSpAPI.svg)](https://www.nuget.org/packages/CSharpAmazonSpAPI/) [![Gitter Chat](https://badges.gitter.im/bitwarden/Lobby.svg)](https://gitter.im/Amazon-SP-API-CSharp/community)
1+
# Amazon Selling Partner API C# 🚀 [![.NET](https://github.com/abuzuhri/Amazon-SP-API-CSharp/actions/workflows/dotnet.yml/badge.svg)](https://github.com/abuzuhri/Amazon-SP-API-CSharp/actions/workflows/dotnet.yml) [![NuGet](https://img.shields.io/nuget/v/CSharpAmazonSpAPI.svg)](https://www.nuget.org/packages/CSharpAmazonSpAPI/) [![Gitter Chat](https://badges.gitter.im/bitwarden/Lobby.svg)](https://gitter.im/Amazon-SP-API-CSharp/community)
22

33

44
This is an API Binding in .Net C# for the new Amazon Selling Partner API.
@@ -17,16 +17,13 @@ The purpose of this package is to have an easy way of getting started with the A
1717
- [System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations/)
1818
- [System.Reflection](https://www.nuget.org/packages/System.Reflection/)
1919

20+
2021
---
21-
### Useful links
22-
##### [Selling Partner API](https://developer-docs.amazon.com/sp-api)
23-
##### [Amazon MWS to SP-API Migration Guide](https://developer-docs.amazon.com/sp-api/docs/amazon-mws-to-sp-api-migration-guide#mapping-apis-from-amazon-mws-to-the-selling-partner-api)
24-
##### [SP-API models](https://developer-docs.amazon.com/sp-api/page/sp-api-models)
25-
##### [Using Postman for Selling Partner API models](https://developer-docs.amazon.com/sp-api/page/sp-api-models)
26-
##### [Test Project with pure C# code](https://github.com/abuzuhri/Amazon-SP-API-CSharp/tree/main/Others/PureCodeSampleForTest)
27-
##### [Sample Code](https://github.com/abuzuhri/Amazon-SP-API-CSharp/tree/main/Source/FikaAmazonAPI.SampleCode)
28-
##### [Creating And Configuring AWS](https://developer-docs.amazon.com/sp-api/docs/creating-and-configuring-iam-policies-and-entities)
22+
## Installation [![NuGet](https://img.shields.io/nuget/v/CSharpAmazonSpAPI.svg)](https://www.nuget.org/packages/CSharpAmazonSpAPI/)
2923

24+
```powershell
25+
Install-Package CSharpAmazonSpAPI
26+
```
3027

3128
---
3229
### Tasks
@@ -71,37 +68,24 @@ The purpose of this package is to have an easy way of getting started with the A
7168

7269

7370

74-
---
75-
## Installation [![NuGet](https://img.shields.io/nuget/v/CSharpAmazonSpAPI.svg)](https://www.nuget.org/packages/CSharpAmazonSpAPI/)
76-
77-
```powershell
78-
Install-Package CSharpAmazonSpAPI
79-
```
80-
81-
---
82-
## Contributing
83-
84-
1. Fork it (https://github.com/abuzuhri/Amazon-SP-API-CSharp/fork)
85-
2. Clone it (`git clone https://github.com/{YOUR_USERNAME}/Amazon-SP-API-CSharp`)
86-
3. Create your feature branch (`git checkout -b your_branch_name`)
87-
4. Commit your changes (`git commit -m 'Description of a commit'`)
88-
5. Push to the branch (`git push origin your_branch_name`)
89-
6. Create a new Pull Request
90-
9171
---
9272
## Keys
73+
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
74+
](https://developer-docs.amazon.com/sp-api/docs/authorizing-selling-partner-api-applications#step-1-request-a-login-with-amazon-access-token)
75+
> :warning: **Use role ARN created in step 5 when you register your application**: and dont use IAM user
76+
9377
| Name | Description |
9478
| --- | --- |
9579
| AccessKey | AWS USER ACCESS KEY |
9680
| SecretKey | AWS USER SECRET KEY |
9781
| RoleArn | AWS IAM Role ARN (needs permission to “Assume Role” STS) |
98-
| Region | Marketplace region |
82+
| Region | Marketplace region [List of Marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids)|
9983
| ClientId | Your amazon app id |
10084
| ClientSecret | Your amazon app secret |
10185
| 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) |
10286

10387

104-
For more information about keys please check [Amazon Selling Partner API developer guide](https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/developer-guide/SellingPartnerApiDeveloperGuide.md) , If you are not registered as developer please [Register](https://developer.amazonservices.com/) to be able to create application.
88+
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.
10589

10690
---
10791
## Usage
@@ -116,7 +100,7 @@ AmazonConnection amazonConnection = new AmazonConnection(new AmazonCredential()
116100
ClientId = "amzn1.application-XXX-client.XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
117101
ClientSecret = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
118102
RefreshToken= "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
119-
MarketPlace = MarketPlace.UnitedArabEmirates, //MarketPlace.GetMarketPlaceByID("A2VIGQ35RCS4UG")
103+
MarketPlace = MarketPlace.UnitedArabEmirates, //MarketPlace.GetMarketPlaceByID("A2VIGQ35RCS4UG")
120104
});
121105

122106
```
@@ -411,6 +395,26 @@ If you have questions, please ask in GitHub discussions
411395

412396
- Improve documentation
413397

398+
---
399+
### Useful links
400+
##### [Selling Partner API](https://developer-docs.amazon.com/sp-api)
401+
##### [Amazon MWS to SP-API Migration Guide](https://developer-docs.amazon.com/sp-api/docs/amazon-mws-to-sp-api-migration-guide#mapping-apis-from-amazon-mws-to-the-selling-partner-api)
402+
##### [SP-API models](https://developer-docs.amazon.com/sp-api/page/sp-api-models)
403+
##### [Using Postman for Selling Partner API models](https://developer-docs.amazon.com/sp-api/page/sp-api-models)
404+
##### [Test Project with pure C# code](https://github.com/abuzuhri/Amazon-SP-API-CSharp/tree/main/Others/PureCodeSampleForTest)
405+
##### [Sample Code](https://github.com/abuzuhri/Amazon-SP-API-CSharp/tree/main/Source/FikaAmazonAPI.SampleCode)
406+
##### [Creating And Configuring AWS](https://developer-docs.amazon.com/sp-api/docs/creating-and-configuring-iam-policies-and-entities)
407+
408+
---
409+
## Contributing
410+
411+
1. Fork it (https://github.com/abuzuhri/Amazon-SP-API-CSharp/fork)
412+
2. Clone it (`git clone https://github.com/{YOUR_USERNAME}/Amazon-SP-API-CSharp`)
413+
3. Create your feature branch (`git checkout -b your_branch_name`)
414+
4. Commit your changes (`git commit -m 'Description of a commit'`)
415+
5. Push to the branch (`git push origin your_branch_name`)
416+
6. Create a new Pull Request
417+
414418
---
415419
## Notes
416420

0 commit comments

Comments
 (0)