Elixir wrapper for Azure Marketplace SaaS fulfillment APIs version 2.
Documentation can be found at https://hexdocs.pm/az_saas.
Add az_saas
to your list of dependencies in mix.exs
:
def deps do
[
{:az_saas, "~> 0.1.0"}
]
end
For the production API you need an access-token. See: Register a SaaS application
iex> AzSaas.list_subscriptions("myRealTokenHere")
{:ok, %HTTPoison.Response{...}}
production API version (default): "2018-08-31"
mock API version: "2018-08-31"
To set the api-version
query param:
iex> AzSaas.list_subscriptions("noRealTokenForMockAPIRequired", [], [params: %{"api-version" => "2018-09-15"})
iex> Application.put_env(:az_saas, :api_version, "2018-09-15")
iex> AzSaas.list_subscriptions("noRealTokenForMockAPIRequired")
AzSaas is MIT licensed.