Ingram Marketplace API
Ingram Micro Marketplace API for running a cloud reselling business.
Installation
The package can be installed by adding ingram_marketplace to your list of dependencies in mix.exs:
def deps do
[{:ingram_marketplace, "~> 1.4"}]
end
Configure the library with the following lines in your config.exs:
config :ingram_marketplace,
#url: "https://api.cloud.im/marketplace/eu" # prod
url: "https://api-lab.cloud.im/marketplace/dev",
marketplace: "us", # or "de" or "stg" for staging/dev
subscription_key: "<your subscription key>",
username: "<your username>",
password: "<your password>"Documentation can be found at https://hexdocs.pm/ingram_marketplace.
Generating APIs
To install the required dependencies and to build the elixir project, run:
npm --prefix node-generator install
cd node-generator
npx openapi-generator-cli generate -c ../ingram-openapi.json -g elixir -o Ingram.Marketplace -i https://apidocs.cloud.im/1.4/_specs/cmp.yaml --skip-validate-spec