get user icons
This endpoint retrieves user's custom icons.
Response
The response is a JSON object with the following schema:
{
"displayIcons": [
{
"mediaId": "_1Xx-QJgvHu9xI0"
"userId": "72205f4149aa1d1",
"createdAt": "2025-03-27T13:37:16.344Z",
"displayIconId": "67e5548cd71787bae9ee3087",
"public": false,
"url": "https://media-secure.aws.com/icons/mlWc6s-JG"
}
]
}
The displayIcons
array contains objects with the following properties:
mediaId
(string): A unique identifier for the underlying icon fileuserId
(string): The ID of the user who uploaded this iconcreatedAt
(string, ISO 8601): The timestamp (UTC) when this display icon record was createdurl
(string): A publicly accessible icon URLpublic
(boolean): Indicates if the display icon is public. Always false for user's icons.displayIconId
(string): Unique identifier for the icon
Responses
Content-Type: application/json
No schema available for this response.
No example response provided in the API specification.
GET
/media/displayIcons/user/me
Server URL:https://api.yotoplay.com
Authorization
bearerAuth
Samples
curl "https://api.yotoplay.com/media/displayIcons/user/me" --header "Authorization: Bearer [YOUR_TOKEN]"
const options = { method: 'GET', headers: { 'Authorization': 'Bearer [YOUR_TOKEN]' } }; fetch('https://api.yotoplay.com/media/displayIcons/user/me', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.yotoplay.com/media/displayIcons/user/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer [YOUR_TOKEN]"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
import requests url = "https://api.yotoplay.com/media/displayIcons/user/me" headers = { 'Authorization: Bearer [YOUR_TOKEN]' } response = requests.request("GET", url, headers=headers) print(response.text)