Climate FieldView Credentials
Form of a Climate FieldView Credentials resource:
{
"status": "str",
"clientId": "str",
"clientSecret": "str",
"apiKey": "str",
"accessToken": "str",
"refreshToken": "str"
}
Endpoints
Description | Endpoints |
---|---|
Get the Climate Fieldview credentials | GET /users/{leafUserId}/climate-field-view-credentials |
Create a Climate Fieldview credentials | POST /users/{leafUserId}/climate-field-view-credentials |
Delete Climate Fieldview credentials | DELETE /users/{leafUserId}/climate-field-view-credentials |
Climate Field View Credentials Endpoints
Get the Climate Fieldview credentials
 GET /users/{leafUserId}/climate-field-view-credentials
Get a Climate FieldView credentials object by its id
. If during background processing we detect that this credential is no longer valid, the value of the status will be changed.
Request examples
- cURL
- Python
- JavaScript
curl -X GET \
-H 'Authorization: Bearer YOUR_TOKEN' \
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}/climate-field-view-credentials'
Response
{
"clientId": "str",
"clientSecret": "str",
"apiKey": "str",
"refreshToken": "str",
"status": "str"
}
Create a Climate Fieldview credentials
 POST /users/{leafUserId}/climate-field-view-credentials
Create a Climate FieldView credentials for the Leaf User.
Request body
{
"clientId": "str",
"clientSecret": "str",
"apiKey": "str",
"refreshToken": "str"
}
Response
A Climate FieldView credential with status.
{
"clientKey": "str",
"clientSecret": "str",
"tokenId": "str",
"tokenSecretKey": "str",
"status": "str"
}
Request examples
- cURL
- Python
- JavaScript
curl -X POST \
-H 'Authorization: Bearer YOUR_TOKEN' \
-d '{"clientId": "str","clientSecret": "str","apiKey": "str","refreshToken": "str"}' \
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}/climate-field-view-credentials'
Delete Climate Fieldview credentials
 DELETE /users/{leafUserId}/climate-field-view-credentials
Delete Leaf User's Climate FieldView credentials.
Request examples
- cURL
- Python
- JavaScript
curl -X DELETE \
-H 'Authorization: Bearer YOUR_TOKEN' \
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}/climate-field-view-credentials'