Amazon Selling Partner JAVA SDK SP API

Overview

amazon-sp-api

amazon sp api java sdk 背景:

亚马逊(amazon)在2020年10月推出了新的替代mws的api方案,称为Selling Partner API(SP-API)。sp-api在修改原mws的接口方式的基础上引入了aws的IAM权限管理,增加了开发者的对接门坎和学习成本。这里整理了一份java版的对接信息,供大家借鉴

MWS:

   对接的文档介绍document: http://docs.developer.amazonservices.com/en_US/dev_guide/index.html  

   sdk library: https://developer.amazonservices.com/javaclients

SP-API(amazon selling partner api):

   对接文档介绍document: https://developer.amazonservices.com/

   GitHub: https://github.com/amzn/selling-partner-api-docs

   models: https://github.com/amzn/selling-partner-api-models/

   动手训练营:https://www.spapi.org.cn/cn/intro.html    (这个动手训练营里都是干货,里面介绍了怎么做对接初步准备工作等)

   java版本的client端sdk:https://github.com/penghaiping/selling-partner-sdk

MWS与SP-API的区别:

   1.SP-API是rest方式,mws是特殊的结构有xml也有xsd
   2.SP-API授权利用了LWA,即Amazon对OAuth 2.0的实现。该模型消除了Amazon MWS所要求的手工交换认证令牌(mwsAuthToken)的需要
   3.SP-API提供比Amazon MWS更好的数据访问控制。开发人员只能请求访问他们需要的数据,而销售商可以在API部分、操作或数据资源级别授予权限
   4.SP-API允许您使用AWS身份和访问管理(IAM)直接获取和管理自己的身份验证凭据。对于Amazon MWS,您可以使用特殊的注册工作流接收Amazon提供的身份验证凭证,并且通过打开与Amazon MWS支持的联系方式获得新的凭证
   5.SP-API使用AWS签名版本4进行身份验证。Amazon MWS使用签名版本2

使用说明:

   1.所有refrences相关的api的调用类都在src/main/java/com/amazon/spapi/api
   2.所有refrences相关的api的调用测试类都在src/test/java/com/amazon/spapi/api
   3.sellersApiTest写了个测试调用类,可参考
   4.所有md文档,包括api文档及models文档都在docs文件目录下
   5.在FeedApi及reportApi中上传和下载文件的工具类在documents目录下,里面是amazon提供的java case,包含了加解密

对你有用的话,请penghp喝杯咖啡吧:

You might also like...

A small and easy-to-use one-time password generator library for Java according to RFC 4226 (HOTP) and RFC 6238 (TOTP).

OTP-Java A small and easy-to-use one-time password generator for Java according to RFC 4226 (HOTP) and RFC 6238 (TOTP). Table of Contents Features Ins

Dec 30, 2022

Security engine for Java (authentication, authorization, multi frameworks): OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...

Security engine for Java (authentication, authorization, multi frameworks): OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...

pac4j is an easy and powerful security engine for Java to authenticate users, get their profiles and manage authorizations in order to secure web appl

Dec 30, 2022

Bouncy Castle Java Distribution (Mirror)

The Bouncy Castle Crypto Package For Java The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms, it was developed by t

Dec 30, 2022

An authorization library that supports access control models like ACL, RBAC, ABAC in Java

An authorization library that supports access control models like ACL, RBAC, ABAC in Java

jCasbin News: still worry about how to write the correct jCasbin policy? Casbin online editor is coming to help! Try it at: http://casbin.org/editor/

Dec 30, 2022

PicketLink is a security framework for securing Java EE applications.

PicketLink http://picketlink.org Java EE Application Security Identity Management Federation Social REST Security Standard-based Security This reposit

Feb 21, 2022

OACC (Object ACcess Control) is an advanced Java Application Security Framework

OACC Java Application Security Framework What is OACC? OACC - pronounced [oak] - is a fully featured API to both enforce and manage your application's

Nov 24, 2022

okta-auth-java

okta-auth-java

Okta Java Authentication SDK Release status Need help? Getting started Usage guide Configuration reference Building the SDK Contributing The Okta Auth

Sep 30, 2022

JSON Web Token (JWT) implementation for Java with support for signatures (JWS), encryption (JWE) and web keys (JWK).

Nimbus JOSE+JWT Nimbus JOSE+JWT is a popular open source (Apache 2.0) Java library which implements the Javascript Object Signing and Encryption (JOSE

Jul 1, 2022

破解 Java 混淆工具 Allatori

AllatoriCrack 基于当前最新的 7.6 版本 简介: 破解 Java 混淆工具 Allatori 官网 并进行了部分加密功能的小修改 allatori 本身使用方法特别简单 命令行输入 java -Xms128m -Xmx512m -jar allatori.jar config.xml

Jan 4, 2023
Comments
  • Some feedback on using CatalogApi

    Some feedback on using CatalogApi

    Thank you very much for your api package, which saved me a lot of development time. I hope to do better. There is currently a [2020-12-1] version of CatalogApi, I hope to join it, thank you

    opened by mjb1ifkr 1
  • Access to requested resource is denied. Unauthorized

    Access to requested resource is denied. Unauthorized

    请求返回 { "errors": [ { "message": "Access to requested resource is denied.", "code": "Unauthorized", "details": "" } ] } 是否与我亚马逊店铺停用有关。 请大神指教

    opened by Jun8866 1
  • dataElement is RDT request

    dataElement is RDT request

    @penghaiping Hi, do you have the latest generated code with dataElement when generating the RDT? I tried to use your lib, but missing the dataElement. I tried to generate the code myself, I am able to call other SP-APIs without any issue but when I try to get RDT I am getting this InvalidSignature error:

    The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
    

    Do you know what could be wrong? Thanks

    opened by Mike-the-one 0
Owner
penghp
penghp
A library for bypassing all of Java's security mechanisms, visibility checks, and encapsulation measures via the JNI API

Narcissus: thwart strong encapsulation in JDK 16+ Narcissus is a JNI native code library that provides a small subset of the Java reflection API, whil

ToolFactory 29 Nov 3, 2022
A Twitter-API library JAVA

Tweety A Twitter-API library for JAVA. Code for Authorization (Oauth 1) can be found here :Authorization This api conta

Rohit Kumar 2 Apr 26, 2022
Simple API for using Java Reflection

Reflector По поводу багов или идей для данного репозитория можно писать в Discord или ВК(обратная связь) Обратная связь Discord: UnLegit#6190 ВКонтакт

null 1 Jan 25, 2022
Fluent builders with typesafe API for the JCA

Security Builders This library implements a set of "fluent" API builders for the java.security classes, and provides more typesafe, intuitive API to a

Terse Systems 44 Sep 13, 2022
Toloka has a powerful open API, it allows you to integrate an on-demand workforce directly into your processes, and to build scalable and fully automated human-in-the-loop ML pipelines.

Toloka Java SDK Documentation Website | API Documentation | Platform Designed by engineers for engineers, Toloka lets you integrate an on-demand workf

Toloka 10 Apr 27, 2022
Library to easily configure API Key authentication in (parts of) your Spring Boot Application

42 API Key Authentication A library to easily configure API Key authentication in (parts of) your Spring Boot Application. Features Easily configure A

null 2 Dec 8, 2021
Java JWT: JSON Web Token for Java and Android

Java JWT: JSON Web Token for Java and Android JJWT aims to be the easiest to use and understand library for creating and verifying JSON Web Tokens (JW

null 8.8k Dec 30, 2022
Java Project based on Java and Encryption using Cryptography algorithms

Symmetric-Encryption-Cryptography-in-Java Java Project based on Java and Encryption using Cryptography algorithms Project Aim Develop Java program to

Muhammad Asad 6 Feb 3, 2022
A mitigation for CVE-2021-44228 (log4shell) that works by patching the vulnerability at runtime. (Works with any vulnerable java software, tested with java 6 and newer)

Log4jPatcher A Java Agent based mitigation for Log4j2 JNDI exploits. This agent employs 2 patches: Disabling all Lookup conversions (on supported Log4

null 45 Dec 16, 2022
Java binding to the Networking and Cryptography (NaCl) library with the awesomeness of libsodium

kalium - Java binding to the Networking and Cryptography (NaCl) library A Java binding to Networking and Cryptography library by Daniel J. Bernstein.

Bruno Oliveira da Silva 206 Oct 5, 2022