Under project selling-partner-api folder, run below commands, all selling-partner-api clients will be generated.
cd scripts
sh swagger-codegen.sh
Selling Partner API for A+ Content Management
- API version: 2020-11-01
- Build date: 2021-09-27T17:49:38.263+08:00
With the A+ Content API, you can build applications that help selling partners add rich marketing content to their Amazon product detail pages. A+ content helps selling partners share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners assemble content by choosing from content modules and adding images and text.
For more information, please visit https://sellercentral.amazon.com/gp/mws/contactus.html
Automatically generated by the Swagger Codegen
Building the API client library requires:
- Java 1.7+
- Maven/Gradle
To install the API client library to your local Maven repository, simply execute:
mvn clean install
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deploy
Refer to the OSSRH Guide for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>io.github.clayton-k</groupId>
<artifactId>selling-partner-api</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
Add this dependency to your project's build file:
compile "io.github.clayton-k:selling-partner-api:1.0.0"
At first generate the JAR by executing:
mvn clean package
Then manually install the following JARs:
target/selling-partner-api-1.0.0.jar
target/lib/*.jar
Please follow the installation instruction and execute the following Java code:
import com.amazon.selling.partner.*;
import com.amazon.selling.partner.auth.*;
import com.amazon.selling.partner.model.aplus.content.*;
import com.amazon.selling.partner.api.AplusContentApi;
import java.io.File;
import java.util.*;
public class AplusContentApiExample {
public static void main(String[] args) {
AplusContentApi apiInstance = new AplusContentApi();
String marketplaceId = "marketplaceId_example"; // String | The identifier for the marketplace where the A+ Content is published.
PostContentDocumentRequest postContentDocumentRequest = new PostContentDocumentRequest(); // PostContentDocumentRequest | The content document request details.
try {
PostContentDocumentResponse result = apiInstance.createContentDocument(marketplaceId, postContentDocumentRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AplusContentApi#createContentDocument");
e.printStackTrace();
}
}
}
All URIs are relative to https://sellingpartnerapi-na.amazon.com
Class | Method | HTTP request | Description |
---|---|---|---|
AplusContentApi | createContentDocument | POST /aplus/2020-11-01/contentDocuments | |
AplusContentApi | getContentDocument | GET /aplus/2020-11-01/contentDocuments/{contentReferenceKey} | |
AplusContentApi | listContentDocumentAsinRelations | GET /aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins | |
AplusContentApi | postContentDocumentApprovalSubmission | POST /aplus/2020-11-01/contentDocuments/{contentReferenceKey}/approvalSubmissions | |
AplusContentApi | postContentDocumentAsinRelations | POST /aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins | |
AplusContentApi | postContentDocumentSuspendSubmission | POST /aplus/2020-11-01/contentDocuments/{contentReferenceKey}/suspendSubmissions | |
AplusContentApi | searchContentDocuments | GET /aplus/2020-11-01/contentDocuments | |
AplusContentApi | searchContentPublishRecords | GET /aplus/2020-11-01/contentPublishRecords | |
AplusContentApi | updateContentDocument | POST /aplus/2020-11-01/contentDocuments/{contentReferenceKey} | |
AplusContentApi | validateContentDocumentAsinRelations | POST /aplus/2020-11-01/contentAsinValidations |
- AplusResponse
- AsinBadge
- AsinBadgeSet
- AsinMetadata
- AsinMetadataSet
- AsinSet
- ColorType
- ContentBadge
- ContentBadgeSet
- ContentDocument
- ContentMetadata
- ContentMetadataRecord
- ContentMetadataRecordList
- ContentModule
- ContentModuleList
- ContentModuleType
- ContentRecord
- ContentReferenceKeySet
- ContentStatus
- ContentType
- Decorator
- DecoratorSet
- DecoratorType
- Error
- ErrorList
- ImageComponent
- ImageCropSpecification
- ImageDimensions
- ImageOffsets
- IntegerWithUnits
- MessageSet
- ParagraphComponent
- PlainTextItem
- PositionType
- PostContentDocumentAsinRelationsRequest
- PostContentDocumentRequest
- PublishRecord
- PublishRecordList
- StandardCompanyLogoModule
- StandardComparisonProductBlock
- StandardComparisonTableModule
- StandardFourImageTextModule
- StandardFourImageTextQuadrantModule
- StandardHeaderImageTextModule
- StandardHeaderTextListBlock
- StandardImageCaptionBlock
- StandardImageSidebarModule
- StandardImageTextBlock
- StandardImageTextCaptionBlock
- StandardImageTextOverlayModule
- StandardMultipleImageTextModule
- StandardProductDescriptionModule
- StandardSingleImageHighlightsModule
- StandardSingleImageSpecsDetailModule
- StandardSingleSideImageModule
- StandardTechSpecsModule
- StandardTextBlock
- StandardTextListBlock
- StandardTextModule
- StandardTextPairBlock
- StandardThreeImageTextModule
- TextComponent
- TextItem
- AplusPaginatedResponse
- GetContentDocumentResponse
- PostContentDocumentApprovalSubmissionResponse
- PostContentDocumentAsinRelationsResponse
- PostContentDocumentResponse
- PostContentDocumentSuspendSubmissionResponse
- ValidateContentDocumentAsinRelationsResponse
- ListContentDocumentAsinRelationsResponse
- SearchContentDocumentsResponse
- SearchContentPublishRecordsResponse
All endpoints do not require authorization. Authentication schemes defined for the API:
It's recommended to create an instance of ApiClient
per thread in a multithreaded environment to avoid any potential issues.