Skip to content

Returns the bananas given by a user

GET
/api/user/{senderId}/banana/sent

Authorizations

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

Parameters

Path Parameters

senderId*
Typestring
Required

Responses

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

Samples

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