Skip to content

Instantly share code, notes, and snippets.

@ayoubAnbara
ayoubAnbara / generate_sp_api.sh
Created November 7, 2023 11:45
Generate Java SDK to Automate SP-API Amazon calls
#!/bin/bash
# Download the Swagger Code Generator from https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/
# clone models: git clone https://github.com/amzn/selling-partner-api-models
# put all model.json files in directory with name models
# excute this script
# Credit:
# 1- https://developer-docs.amazon.com/sp-api-blog/docs/automate-your-sp-api-calls-using-java-sdk#tutorial
# 2- https://jesseevers.com/spapi-first-application/
cd models