hipchat_elixir

Hex.pm

HipChat client library for Elixir.

Generated from HipChat Swagger API specifications in ymtszw/hipchat_swagger.

Depends on hackney for HTTP client.

Policy

Usage

  1. Add :hipchat_elixir as a dependency
  2. Create client struct (e.g. Hipchat.V2.Client.new/3).
    • Pass access_token if the targeted API requires authentication.
    • access_token can be one of four types (according to the doc):
      • Add-on token (need OAuth2 flow beforehand)
      • User token (need OAuth2 flow beforehand)
      • Personal access token
      • Room notification token
  3. Pass the resultant client and other parameters to the targeted API function.
retrieve_access_token # Implementation is up to your app
|> Hipchat.V2.Client.new
|> Hipchat.V2.Api.send_room_notification(room_id, %{"message" => "Hello hipchat!"})
# {:ok, %Hipchat.Httpc.Response{body: "", headers: ..., status: 204}}

Todo

License

MIT