AmazonProductAdvertising.SDK
3.0.1
dotnet add package AmazonProductAdvertising.SDK --version 3.0.1
NuGet\Install-Package AmazonProductAdvertising.SDK -Version 3.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AmazonProductAdvertising.SDK" Version="3.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AmazonProductAdvertising.SDK --version 3.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AmazonProductAdvertising.SDK, 3.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AmazonProductAdvertising.SDK as a Cake Addin
#addin nuget:?package=AmazonProductAdvertising.SDK&version=3.0.1
// Install AmazonProductAdvertising.SDK as a Cake Tool
#tool nuget:?package=AmazonProductAdvertising.SDK&version=3.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Nager.AmazonProductAdvertising
Allow access to amazon product advertising API (paapi5
), you can search a product over the name or a keyword.
Usage
Please check the AmazonEndpoint is correct for your Country.
- Amazon Germany use
AmazonEndpoint.DE
- Amazon Spain use
AmazonEndpoint.ES
- Amazon United Kingdom use
AmazonEndpoint.UK
Item Search (simple)
var signer = new AwsSigner();
var client = new AmazonProductAdvertisingClient(signer,"accesskey", "secretkey",AmazonEndpoint.US, "yourPartnerTag");
var result = await client.SearchItemsAsync("canon eos");
Item Search (advanced)
var signer = new AwsSigner();
var client = new AmazonProductAdvertisingClient(signer,"accesskey", "secretkey",AmazonEndpoint.US, "yourPartnerTag");
var searchRequest = new SearchRequest
{
Keywords = "canon eos",
ItemPage = 2,
Resources = new []
{
//You can found all available Resources in the documentation
//https://webservices.amazon.com/paapi5/documentation/search-items.html#resources-parameter
"Images.Primary.Large",
"ItemInfo.Title",
"ItemInfo.Features"
}
};
var result = await client.SearchItemsAsync(searchRequest);
Item Lookup
var signer = new AwsSigner();
var client = new AmazonProductAdvertisingClient(signer,"accesskey", "secretkey",AmazonEndpoint.US, "yourPartnerTag");
var result = await client.GetItemsAsync("B00BYPW00I");
Multi Item Lookup
var signer = new AwsSigner();
var client = new AmazonProductAdvertisingClient(signer,"accesskey", "secretkey",AmazonEndpoint.US, "yourPartnerTag");
var result = await client.GetItemsAsync(new string[] { "B00BYPW00I", "B004MKNBJG" });
Amazon Documentation
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- newtonsoft.json (>= 13.0.3)
- RestSharp (>= 110.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initiliaze Resources properties in Requests with = Array.Empty