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

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

https://developer.spotify.com/web-api/get-artists-top-tracks/
public getArtistTopTracks ( string $artistId, array | object $options ) : array | object
$artistId string ID of the artist.
$options array | object Options for the tracks. - string $country Required. An ISO 3166-1 alpha-2 country code specifying the country to get the top tracks for.
Результат array | object The artist's top tracks. Type is controlled by SpotifyWebAPI::setReturnAssoc().
    public function getArtistTopTracks($artistId, $options)
    {
        $headers = $this->authHeaders();
        $uri = '/v1/artists/' . $artistId . '/top-tracks';
        $this->lastResponse = $this->request->api('GET', $uri, $options, $headers);
        return $this->lastResponse['body'];
    }