ex_stream_client

View Source

A client for Stream REST APIs in Elixir - auto generated from their OpenAPI specification.

Features

  • Auto-generated from the OpenAPI specification
  • Fully typed and documented APIs
  • Utilizes Req for HTTP requests by default.

Installation

If available in Hex, the package can be installed by adding ex_stream_client to your list of dependencies in mix.exs:

def deps do
  [
    {:ex_stream_client, "~> 0.1.0"}
  ]
end

Configuration

The client requires the following configuration to be set in your config.exs file:

config :ex_stream_client,
  api_key: "your-api-key",
  api_key_secret: "your-api-key-secret"

You can also configure the endpoint if you are using a custom one:

config :ex_stream_client,
  endpoint: "https://your-custom-endpoint.com"

Acknowledgements

This project includes code adapted from ex_openai, which is licensed under the MIT License. We thought the idea to generate client code via the Elixir AST was a great one!