Get details about all users that have a specific achievement
GET
/api/achievements/{achievementId}/usersAuthorizations
api_key
Type: API Key (header: X-CSRF-Token)
Parameters
Path Parameters
achievementId*
Typestring
RequiredResponses
Success
JSON
[
{
"user": {
"id": 0,
"name": "string",
"avatar": "string",
"isSleeping": true
},
"reviewer": {
"id": 0,
"name": "string",
"avatar": "string",
"isSleeping": true
},
"achievementId": 0,
"notice": "string",
"validUntil": "string",
"createdAt": "string"
}
]
Authorization
api_key
Variables
Key
Value
achievementId*
cURL
curl -X GET \
'http://localhost/api/achievements/{achievementId}/users'
Samples
cURL
curl -X GET http://localhost/api/achievements/{achievementId}/users
JavaScript
fetch("http://localhost/api/achievements/{achievementId}/users")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/achievements/{achievementId}/users");
Python
import requests
response = requests.get("http://localhost/api/achievements/{achievementId}/users")
print(response.json())