23 linhas
538 B
JSON
23 linhas
538 B
JSON
{
|
|
"url": "https://api.interweb.ao/v1/token",
|
|
"method": "GET",
|
|
"headers": {
|
|
"Authorization": "Bearer {{parameters.apiKey}}",
|
|
"Accept": "application/json",
|
|
"User-Agent": "interweb-ao-make/1.0.0"
|
|
},
|
|
"log": {
|
|
"sanitize": [
|
|
"request.headers.authorization"
|
|
]
|
|
},
|
|
"response": {
|
|
"metadata": {
|
|
"type": "text",
|
|
"value": "{{body.data.name}} ({{body.data.mode}})"
|
|
},
|
|
"error": {
|
|
"message": "[{{statusCode}}] {{ifempty(body.error.message; 'The API key is not valid.')}}"
|
|
}
|
|
}
|
|
}
|