Skip to content

A swagger code generated repository with full Amazon selling partner api models

Notifications You must be signed in to change notification settings

clayton-k/selling-partner-api

Repository files navigation

HOW TO USE

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

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

Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven/Gradle

Installation

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.

Maven users

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>

Gradle users

Add this dependency to your project's build file:

compile "io.github.clayton-k:selling-partner-api:1.0.0"

Others

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

Getting Started

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();
        }
    }
}

Documentation for API Endpoints

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

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization. Authentication schemes defined for the API:

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

About

A swagger code generated repository with full Amazon selling partner api models

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published