spotify/http.py
def album_tracks(self, spotify_id, limit=20, offset=0, market='US'):
        """Get an albums tracks by an ID.

        Parameters
        ----------
        spotify_id : str
            The spotify_id to search by.
        limit : Optional[int]
            The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
        offset : Optiona[int]
            The offset of which Spotify should start yielding from.
        market : Optional[str]
            An ISO 3166-1 alpha-2 country code.
        """
        route = Route('GET', '/albums/{spotify_id}/tracks', spotify_id=spotify_id)
        payload = {'limit': limit, 'offset': offset}

        if market:
            payload['market'] = market

        return self.request(route, params=payload)
def album_tracks(self, spotify_id, limit=20, offset=0, market='US'):
        route = Route('GET', '/albums/{spotify_id}/tracks', spotify_id=spotify_id)
        payload = {'limit': limit, 'offset': offset}

        if market:
            payload['market'] = market

        return self.request(route, params=payload)
def album_tracks ( self , spotify_id , limit = 20 , offset = 0 , market = 'US' ) : route = Route ( 'GET' , '/albums/{spotify_id}/tracks' , spotify_id = spotify_id ) payload = { 'limit' : limit , 'offset' : offset } if market : payload [ 'market' ] = market return self . request ( route , params = payload )
Get an albums tracks by an ID.

        Parameters
        ----------
        spotify_id : str
            The spotify_id to search by.
        limit : Optional[int]
            The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
        offset : Optiona[int]
            The offset of which Spotify should start yielding from.
        market : Optional[str]
            An ISO 3166-1 alpha-2 country code.
Get an albums tracks by an ID .