Sign in to opensensemapAPI
Signs in to opensensemapAPI to retrieve the token needed for using POST-routes.
- application/json
Request Body required
- email string
e-mail adress of the user
- password string
password of the user
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- code integer
the id of the created unit
- message string
the slug of the created unit
data object
user object
name stringname of the user
email stringe-mail adress of the user
role stringrole of the user
language stringspoken language of the user, e.g. "de_DE" or "en_EN"
boxes string[]array that contains all ids of the boxes that the user registered on the opensensemap
emailIsConfirmed booleanboolean that indicates if the users email adress is confirmed
- token string
the web token, that you need for the POST routes
- refreshToken string
refreshToken from your logIn
{
"code": 0,
"message": "string",
"data": {
"user": {
"name": "string",
"email": "string",
"role": "string",
"language": "string",
"boxes": [
"string"
],
"emailIsConfirmed": true
}
},
"token": "string",
"refreshToken": "string"
}