Returns basic metadata about the bananas of a user
GET
/api/user/{userId}/banana/metaAuthorizations
Parameters
Path Parameters
userId*
Typestring
RequiredResponses
Success.
JSON
{
"receivedCount": 0,
"mayGiveBanana": true,
"mayDeleteBananas": true
}
GET
/api/user/{userId}/banana/metaSamples
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())