Skip to content

Returns the bananas given to a user

GET
/api/user/{recipientId}/banana/received

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

recipientId*
Typestring
Required

Responses

Success.
JSON
[
{
"message": "string",
"user": null,
"time": "string"
}
]
Authorization
api_key
Variables
Key
Value
recipientId*
cURL
curl -X GET \
'http://localhost/api/user/{recipientId}/banana/received'

Samples

cURL
curl -X GET http://localhost/api/user/{recipientId}/banana/received
JavaScript
fetch("http://localhost/api/user/{recipientId}/banana/received")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/user/{recipientId}/banana/received");
Python
import requests
response = requests.get("http://localhost/api/user/{recipientId}/banana/received")
print(response.json())