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

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

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