Returns basic metadata about the bananas of a user
GET
/api/user/{userId}/banana/metaAuthorizations
api_key
Type: API Key (header: X-CSRF-Token)
Parameters
Path Parameters
userId*
Typestring
RequiredResponses
Success.
JSON
{
"receivedCount": 0,
"mayGiveBanana": true,
"mayDeleteBananas": true
}
GET
/api/user/{userId}/banana/metaAuthorization
api_key
Variables
Key
Value
userId*
cURL
curl -X GET \
'http://localhost/api/user/{userId}/banana/meta'
Samples
cURL
curl -X GET http://localhost/api/user/{userId}/banana/meta
JavaScript
fetch("http://localhost/api/user/{userId}/banana/meta")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/user/{userId}/banana/meta");
Python
import requests
response = requests.get("http://localhost/api/user/{userId}/banana/meta")
print(response.json())