spotify/http.py
def artist_albums(self, spotify_id, include_groups=None, limit=20, offset=0, market='US'):
        """Get an artists tracks by their ID.

        Parameters
        ----------
        spotify_id : str
            The spotify_id to search by.
        include_groups : INCLUDE_GROUPS_TP
            INCLUDE_GROUPS
        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', '/artists/{spotify_id}/albums', spotify_id=spotify_id)
        payload = {'limit': limit, 'offset': offset}

        if include_groups:
            payload['include_groups'] = include_groups

        if market:
            payload['market'] = market

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

        if include_groups:
            payload['include_groups'] = include_groups

        if market:
            payload['market'] = market

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

        Parameters
        ----------
        spotify_id : str
            The spotify_id to search by.
        include_groups : INCLUDE_GROUPS_TP
            INCLUDE_GROUPS
        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 artists tracks by their ID .