ex_trello v0.1.3 ExTrello

Provides access interface to the Trello API.

Summary

Functions

POST OAuthGetAccessToken

GET OAuthAuthorizeToken

Provides OAuth configuration settings for accessing trello server

Provides OAuth configuration settings for accessing trello server

POST OAuthGetRequestToken

Functions

access_token(verifier, request_token)

Specs

access_token(String.t, String.t) ::
  {:ok, String.t} |
  {:error, String.t}

POST OAuthGetAccessToken

Examples

ExTrello.access_token("OAUTH_VERIFIER", "OAUTH_TOKEN")
authorize_url(oauth_token)

Specs

authorize_url(String.t) ::
  {:ok, String.t} |
  {:error, String.t}

GET OAuthAuthorizeToken

Examples

token = ExTrello.request_token
ExTrello.authorize_url(token.oauth_token)

Returns the URL you should redirect the user to for authorization

configure(oauth)

Specs

configure(Keyword.t) :: :ok

Provides OAuth configuration settings for accessing trello server.

The specified configuration applies globally. Use ExTrello.configure/2 for setting different configurations on each processes.

Examples

ExTrello.configure(
  app_key: System.get_env("TRELLO_APP_KEY"),
  app_secret: System.get_env("TRELLO_APP_SECRET"),
  access_token: System.get_env("TRELLO_ACCESS_TOKEN"),
  access_token_secret: System.get_env("TRELLO_ACCESS_SECRET")
)
configure(scope, oauth)

Specs

configure(:global | :process, Keyword.t) :: :ok

Provides OAuth configuration settings for accessing trello server.

Options

The scope can have one of the following values.

  • :global - configuration is shared for all processes.

  • :process - configuration is isolated for each process.

Examples

ExTrello.configure(
  :process,
  app_key: System.get_env("TRELLO_APP_KEY"),
  app_secret: System.get_env("TRELLO_APP_SECRET"),
  access_token: System.get_env("TRELLO_ACCESS_TOKEN"),
  access_token_secret: System.get_env("TRELLO_ACCESS_SECRET")
)
request_token(redirect_url)

Specs

POST OAuthGetRequestToken

Examples

ExTrello.request_token("http://localhost:4000/auth/trello/callback")

Reference

https://trello.com/app-key

start(type, args)

false