get MYO content for a user
This returns the MYO cards belonging to the authenticated user.
The card objects do not include the chapters property.
To access all the card details including the chapters, you will need to query the /card/{cardId} endpoint.
Responses
200 OK
Content-Type: application/json
cardsarray
[items]object
availabilitystring
cardIdstring
clubAvailabilityarray
[items]object
storestring
contentobject
activitystring
configobject
autoadvancestring
onlineOnlyboolean
shufflearray
[items]object
endnumber
limitnumber
startnumber
trackNumberOverlayTimeoutnumber
coverobject
imageL
editSettingsobject
autoOverlayLabelsstring
editKeysboolean
podcastTrackDisplayobject
icon16x16string
podcastTypestring
hiddenboolean
restrictedboolean
versionstring
createdAtstring
deletedboolean
metadataobject
authorstring
categorystring
coverobject
imageL
descriptionstring
feedUrl
hiddenboolean
languagesarray
[items]string
listarray
[items]
mediaobject
durationnumber
fileSizenumber
hasStreamsboolean
notestring
order
previewAudiostring
shareboolean
statusobject
namestring
updatedAtstring
shareLinkCreatedAtstring
shareLinkUrlstring
sharingobject
linkCreatedAtstring
linkUrlstring
shareCountnumber
shareLimitnumber
slugstring
sortkeystring
titlestring
updatedAtstring
userIdstring
{ "cards": [ { "availability": "free", "cardId": "string", "clubAvailability": [ { "store": "string" } ], "content": { "activity": "yoto_Player", "config": { "autoadvance": "repeat", "onlineOnly": true, "shuffle": [ { "end": 0, "limit": 0, "start": 0 } ], "trackNumberOverlayTimeout": 0 }, "cover": { "imageL": null }, "editSettings": { "autoOverlayLabels": "disabled", "editKeys": true, "podcastTrackDisplay": { "icon16x16": "string" }, "podcastType": "managed" }, "hidden": true, "restricted": true, "version": "string" }, "createdAt": "string", "deleted": true, "metadata": { "author": "string", "category": "stories", "cover": { "imageL": null }, "description": "string", "feedUrl": null, "hidden": true, "languages": [ "string" ], "list": [ null ], "media": { "duration": 0, "fileSize": 0, "hasStreams": true }, "note": "string", "order": null, "previewAudio": "string", "share": true, "status": { "name": "inprogress", "updatedAt": "string" } }, "shareLinkCreatedAt": "string", "shareLinkUrl": "string", "sharing": { "linkCreatedAt": "string", "linkUrl": "string", "shareCount": 0, "shareLimit": 0 }, "slug": "string", "sortkey": "string", "title": "string", "updatedAt": "string", "userId": "string" } ] }
Parameters
Query Parameters
showdeleted
Choose whether to show owned cards that have been deleted. Defaults to false.
Type
string
GET
/content/mine
Server URL:https://api.yotoplay.com
Authorization
bearerAuth
Query Parameters
KEY | VALUE |
---|---|
Samples
curl "https://api.yotoplay.com/content/mine" --header "Authorization: Bearer [YOUR_TOKEN]"
const options = { method: 'GET', headers: { 'Authorization': 'Bearer [YOUR_TOKEN]' } }; fetch('https://api.yotoplay.com/content/mine', 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/content/mine",
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/content/mine" headers = { 'Authorization: Bearer [YOUR_TOKEN]' } response = requests.request("GET", url, headers=headers) print(response.text)