Authorization
By default, when using your own authentication token, you have all permissions available. However, it's possible to grant specific permissions to other users on your account or 'ask' people to grant you permissions by the same process. This allows you to perform certain actions on their behalf, based on the granted permissions. this may be useful to create an app to allow user to add image to their favorites for example.
The following route isnt part of the API but is more like a functionality of the website.
Prompt a user to give you permissions over their account.
GET
https://www.waifu.im/authorization
The person that consult the page and click on Authorize
will grant permissions over their account
Query Parameters
Name | Type | Description |
---|---|---|
user_id* | integer | The discord user ID of the user that will receive the permissions |
permissions* | array[string] | The permissions that will be asked for. Available permissions are |
Prompt a user to revoke permissions over their account.
GET
https://www.waifu.im/authorization/revoke
The person that consult the page and click on Revoke
will revoke permissions over their account
Query Parameters
Name | Type | Description |
---|---|---|
user_id* | integer | The discord user ID of the user that the permissions will be revoked |
permissions* | array[string] | The permissions that will be prompted to be revoked. Available permissions are |
Last updated