Gives a banana to a user
PUT
/api/user/{recipientId}/bananaAuthorizations
api_key
Type: API Key (header: X-CSRF-Token)
Parameters
Path Parameters
recipientId*
Typestring
RequiredRequest Body
JSON
{
"message": "string"
}
Responses
Success.
JSON
{
"message": "string",
"user": null,
"time": "string"
}
Authorization
api_key
Variables
Key
Value
recipientId*
cURL
curl -X PUT \
'http://localhost/api/user/{recipientId}/banana' \
--data '{
"message": "string"
}'
Samples
cURL
curl -X PUT http://localhost/api/user/{recipientId}/banana
JavaScript
fetch("http://localhost/api/user/{recipientId}/banana", { method: "PUT" })
.then(response => response.json())
.then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://localhost/api/user/{recipientId}/banana");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.put("http://localhost/api/user/{recipientId}/banana")
print(response.json())