SpotifyWebAPI\SpotifyWebAPI::getAlbumTracks PHP Метод

getAlbumTracks() публичный Метод

https://developer.spotify.com/web-api/get-albums-tracks/
public getAlbumTracks ( string $albumId, array | object $options = [] ) : array | object
$albumId string ID of the album.
$options array | object Optional. Options for the tracks. - int limit Optional. Limit the number of tracks. - int offset Optional. Number of tracks to skip. - string market Optional. An ISO 3166-1 alpha-2 country code, provide this if you wish to apply Track Relinking.
Результат array | object The requested album tracks. Type is controlled by SpotifyWebAPI::setReturnAssoc().
    public function getAlbumTracks($albumId, $options = [])
    {
        $headers = $this->authHeaders();
        $uri = '/v1/albums/' . $albumId . '/tracks';
        $this->lastResponse = $this->request->api('GET', $uri, $options, $headers);
        return $this->lastResponse['body'];
    }