Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Spotify Web Api Php Laravel Package

jwilsson/spotify-web-api-php

View on GitHub
Deep Wiki
Context7

Fetching Information About Audiobooks

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.

Getting info about a single audiobook

$audiobook = $api->getAudiobook('AUDIOBOOK_ID');

echo '<b>' . $audiobook->name . '</b>';

Getting info about multiple audiobooks

Note: This method is only available to extended quota apps.

$audiobooks = $api->getAudiobooks([
    'AUDIOBOOK_ID',
    'AUDIOBOOK_ID',
]);

foreach ($audiobooks->audiobooks as $audiobook) {
    echo '<b>' . $audiobook->name . '</b> <br>';
}

Getting info about a single audiobook chapter

$chapter = $api->getChapter('CHAPTER_ID');

echo '<b>' . $chapter->name . '</b>';

Getting info about multiple audiobook chapters

Note: This method is only available to extended quota apps.

$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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log