# `ExRabbitMQAdmin.Client`
[🔗](https://github.com/Intility/ex_rabbitmq_admin/blob/v0.3.5/lib/ex_rabbitmq_admin/client.ex#L1)

Macro for creating RabbitMQ HTTP API client.

### Configuration

Some options, such as e.g. `base_url` can be read from config. If you want to use
this macro in a module, you can add a corresponding entry in your `config.exs` file
to configure the client.

    # config.ex
    config :my_app, MyApp.RabbitClient,
      base_url: "https://rabbitmq.example.com:15672",
      username: "guest",
      password: "guest"

#### Parameters

* `otp_app` - Namespace used to look up configuration values such as `base_url` and others.

### Example

    defmodule MyApp.RabbitClient do
      use ExRabbitMQAdmin.Client, otp_app: :my_app
    end

---

*Consult [api-reference.md](api-reference.md) for complete listing*
