Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fbettag/ingram_marketplace.ex

Ingram API written in Elixir
https://github.com/fbettag/ingram_marketplace.ex

Last synced: about 1 month ago
JSON representation

Ingram API written in Elixir

Awesome Lists containing this project

README

        

# 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`:

```elixir
def deps do
[{:ingram_marketplace, "~> 1.4"}]
end
```

Configure the library with the following lines in your `config.exs`:

```elixir
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: "",
username: "",
password: ""
```

Documentation can be found at [https://hexdocs.pm/ingram_marketplace](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
```