Concord - C Discord API library
A Discord API wrapper library written in C
OAuth2

OAuth2's public API supported by Concord. More...

Collaboration diagram for OAuth2:

Data Structures

struct  discord_ret_application
 Request's return context. More...
 
struct  discord_ret_auth_response
 Request's return context. More...
 

Functions

CCORDcode discord_get_current_bot_application_information (struct discord *client, struct discord_ret_application *ret)
 Returns the bot's application object. More...
 
CCORDcode discord_get_current_authorization_information (struct discord *client, struct discord_ret_auth_response *ret)
 Returns info about the current authorization. More...
 

Detailed Description

OAuth2's public API supported by Concord.

Function Documentation

◆ discord_get_current_bot_application_information()

CCORDcode discord_get_current_bot_application_information ( struct discord client,
struct discord_ret_application ret 
)

Returns the bot's application object.

Parameters
clientthe client created with discord_init()
retreturn context of the request. if successful a discord_application will be sent over to its assigned done callback
See also
discord_ret_application for more options
Returns
CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary

◆ discord_get_current_authorization_information()

CCORDcode discord_get_current_authorization_information ( struct discord client,
struct discord_ret_auth_response ret 
)

Returns info about the current authorization.

Note
Requires authentication with a bearer token
Parameters
clientthe client created with discord_init()
retreturn context of the request. if successful a discord_auth_response will be sent over to its assigned done callback
See also
discord_ret_auth_response for more options
Returns
CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary