View Source Squeeze.Garmin.AuthBehaviour behaviour (OpenPace v0.0.1)

Behaviour specification for Garmin authentication operations.

Link to this section Summary

Callbacks

Generates the authorization URL with the given parameters.

Exchanges the temporary token for an access token.

Gets the Garmin user information.

Requests a temporary OAuth token from Garmin.

Link to this section Callbacks

@callback authorize_url!(params :: map()) :: String.t()

Generates the authorization URL with the given parameters.

@callback get_token!(opts :: Keyword.t()) :: map()

Exchanges the temporary token for an access token.

@callback get_user!(opts :: Keyword.t()) :: map()

Gets the Garmin user information.

@callback request_token!() :: map()

Requests a temporary OAuth token from Garmin.

@callback request_token!(opts :: Keyword.t()) :: map()