Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fbettag/ingram_marketplace.ex
- Owner: fbettag
- License: mit
- Created: 2021-02-05T18:04:33.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-15T20:23:41.000Z (over 3 years ago)
- Last Synced: 2024-10-28T12:12:07.050Z (2 months ago)
- Language: Elixir
- Size: 63.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```