Reborn
/token create
/token delete {token}
/token info {token}
HTTP PUT /account/register/
HEADERS: {
authorization: "user hardware id",
access_token: SHA256("{authorization}:{time_in_seconds}:{secret_key}")
}
BODY: {
username: "the username provided by the user"
identifier: "the users hwid"
}
RESPONSE: {
status: 200/400
}
HTTP POST /account/login/
HEADERS: {
authorization: "user hardware id",
access_token: SHA256("{authorization}:{time_in_seconds}:{secret_key}")
}
BODY: {
identifier: "the users hwid"
}
RESPONSE: {
status: 200/400,
response: "the user's username"
}
HTTP POST /message/{token}/
URL_PARAMETERS: {
token: SHA256 Encrypted Channel ID
}
HEADERS: {
authorization: "user hardware id",
access_token: SHA256("{authorization}:{time_in_seconds}:{secret_key}")
}
BODY: {
discord_api_message_body
}
HTTP PUT /token
HEADERS: {
authorization: "user hardware id",
access_token: SHA256("{authorization}:{time_in_seconds}:{secret_key}")
}
BODY: {
channel: "regular channel id as int"
}
RESPONSE: {
status: 200/400,
token: "generated token"
}
HEADERS: {
authorization: "user hardware id",
access_token: SHA256("{authorization}:{time_in_seconds}:{secret_key}")
}
BODY: {
token: "the token to delete"
}
HEADERS: {
authorization: "user hardware id",
access_token: SHA256("{authorization}:{time_in_seconds}:{secret_key}")
}
RESPONSE: {
status: 200/400,
token: "token",
channel: "channel id",
created_by: "who created the token",
created_at: "when the token was created",
expires_in: "when the token expires"
}