There are a few methods for retrieving information about one or more audiobooks from the Spotify catalog. For example, the description of a audiobook or all of a audiobook's chapters.
$audiobook = $api->getAudiobook('AUDIOBOOK_ID');
echo '<b>' . $audiobook->name . '</b>';
$audiobooks = $api->getAudiobooks([
'AUDIOBOOK_ID',
'AUDIOBOOK_ID',
]);
foreach ($audiobooks->audiobooks as $audiobook) {
echo '<b>' . $audiobook->name . '</b> <br>';
}
$chapter = $api->getChapter('CHAPTER_ID');
echo '<b>' . $chapter->name . '</b>';
$chapters = $api->getChapters([
'CHAPTER_ID',
'CHAPTER_ID',
]);
foreach ($chapters->chapters as $chapter) {
echo '<b>' . $chapter->name . '</b> <br>';
}
Please see the method reference for more available options for each method.