Obteniendo un token de la API
Para obtener acceso a la API, debes registrar tu aplicación y obtener un token. Para ello, utiliza la /api/v1/apps API (accesible sin un token) para crear
una nueva aplicación. Guarda el resultado en algún lugar para uso futuro.
Luego envíe una solicitud a /api/v1/oauth2, con los siguientes parámetros de GET:
client_id, su ID de cliente.client_secret, your client secret.scopes, the scopes you want to access. They are separated by+, and can either beread(global read),write(global write),read:SCOPE(read only inSCOPE), orwrite:SCOPE(write only inSCOPE).usernamethe username (not the email, display name nor the fully qualified name) of the user using your app.contraseña, la contraseña del usuario.
Plume responderá con algo similar a:
{
"token": "<YOUR TOKEN HERE>"
}
To authenticate your requests you should put this token in the Authorization header:
Authorization: Bearer <YOUR TOKEN HERE>