size_t discord_auth_response_from_json(const char buf[], size_t size, struct discord_auth_response *self)
size_t discord_auth_response_to_json(char buf[], size_t size, const struct discord_auth_response *self)
void discord_auth_response_init(struct discord_auth_response *self)
long discord_auth_response_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_auth_response *self)
void discord_auth_response_cleanup(struct discord_auth_response *self)
jsonbcode discord_auth_response_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_auth_response *self)
uint64_t u64unix_ms
Unix time in milliseconds.
Definition: types.h:22
jsonbcode
json-builder return codes
Definition: json-build.h:34
Definition: application.h:35
struct discord_application * application
Definition: oauth2.h:25
struct strings * scopes
Definition: oauth2.h:27
u64unix_ms expires
Definition: oauth2.h:29
struct discord_user * user
Definition: oauth2.h:32
Handle for building a JSON string.
Definition: json-build.h:61