hipchat_elixir v0.5.1 Hipchat.OauthClient View Source

Client struct module for OAuth Token API.

Use this client and request to Token API (e.g. Hipchat.V2.Oauth.generate_token/2) to retrieve Add-on token or User token.

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %Hipchat.OauthClient{client_id: String.t(), client_secret: String.t(), httpc_opts: list()}

Link to this section Functions

Link to this function new(client_id, client_secret, httpc_opts \\ []) View Source
new(String.t(), String.t(), list()) :: t()

Generate OauthClient struct.

client_id and client_secret must be retrieved and stored on Add-on server per installation, during Add-on Installation Flow.

For httpc_opts, see Hipchat.Httpc.request/5 for details.