discord_oauth2_server v0.1.1 DiscordOauth2Server.DiscordClient
Abstraction module reaching out to Discord API
It provides an easy way to fetch both the access_token
and the current user
Link to this section Summary
Functions
Returns the Discord Authorization URI to redirect the user to
Link to this section Functions
Link to this function
auth_url()
Link to this function
base_url()
Link to this function
client_id()
Link to this function
client_secret()
Link to this function
get_auth_url(state)
Returns the Discord Authorization URI to redirect the user to.
Examples
iex> DiscordOauth2Server.DiscordClient.get_auth_url(“azerty123”) “https://discordapp.com/oauth2/authorize?client_id=963852741258147369&redirect_uri=https://mysite.com/callback&response_type=code&scope=identify+email&state=azerty123”
Link to this function
get_referer(conn)
Link to this function
get_token(code)
Link to this function
get_user(access_token)
Link to this function
redirect_uri()
Link to this function
token_uri()
Link to this function
user_url()