-
Notifications
You must be signed in to change notification settings - Fork 0
Albums API
Romain Monteil edited this page Jan 3, 2019
·
3 revisions
$response = $spotify->albums()->get('4aawyAB9vmqN3uQ7FjRGTy', [
QueryParametersInterface::PARAMETER_MARKET => 'FR'
]);
Return an instance of AlbumResponse
$response = $spotify->albums()->tracks('4aawyAB9vmqN3uQ7FjRGTy', [
QueryParametersInterface::PARAMETER_MARKET => 'FR',
QueryParametersInterface::PARAMETER_LIMIT => 10,
QueryParametersInterface::PARAMETER_OFFSET => 5,
]);
Return an instance of PagingResponse
$response = $spotify->albums()->several([
QueryParametersInterface::PARAMETER_IDS => [
'382ObEPsp2rxGrnsizN5TX',
'1A2GTWGtFfWp7KSQTwWOyo',
],
QueryParametersInterface::PARAMETER_MARKET => 'FR',
]);
Return an instance of AlbumsResponse
$response = $spotify->albums()->saved([
QueryParametersInterface::PARAMETER_LIMIT => 2,
QueryParametersInterface::PARAMETER_OFFSET => 0,
]);
Return an instance of PagingResponse
$response = $spotify->albums()->add([
QueryParametersInterface::PARAMETER_IDS => [
'07bYtmE3bPsLB6ZbmmFi8d',
'48JYNjh7GMie6NjqYHMmtT',
'27cZdqrQiKt3IT00338dws',
]
]);
Return an instance of ResponseInterface
$response = $spotify->albums()->remove([
QueryParametersInterface::PARAMETER_IDS => [
'07bYtmE3bPsLB6ZbmmFi8d',
'48JYNjh7GMie6NjqYHMmtT',
'27cZdqrQiKt3IT00338dws',
]
]);
Return an instance of ResponseInterface