platypush/plugins/music/spotify/__init__.py
def add(self, resource: str, device: Optional[str] = None, **kwargs):
        """
        Add a Spotify resource (track, or episode) to the playing queue.

        :param resource: Spotify resource URI.
        :param device: Device ID or name. If none is specified then the action will target the currently active device.
        """
        if device:
            device = self._get_device(device)['id']

        self.spotify_user_call(
            f'/v1/me/player/queue',
            method='post',
            params={
                'uri': resource,
                **({'device_id': device} if device else {}),
            },
        )

        Add a Spotify resource (track, or episode) to the playing queue.

        :param resource: Spotify resource URI.
        :param device: Device ID or name. If none is specified then the action will target the currently active device.
        
Add a Spotify resource (track, or episode) to the playing queue.
Add a Spotify resource ( track or episode ) to the playing queue .
def add(self, resource: str, device: Optional[str] = None, **kwargs):
        if device:
            device = self._get_device(device)['id']
        self.spotify_user_call(
            f'/v1/me/player/queue',
            method='post',
            params={
                'uri': resource,
                **({'device_id': device} if device else {}),
            },
        )
def add ( self , resource : str , device : Optional [ str ] = None , ** kwargs ) : if device : device = self . _get_device ( device ) [ 'id' ] self . spotify_user_call ( f'/v1/me/player/queue' , method = 'post' , params = { 'uri' : resource , ** ( { 'device_id' : device } if device else { } ) , } , )
Add a Spotify resource (track, or episode) to the playing queue.
Add a Spotify resource ( track or episode ) to the playing queue .
"""
        Add a Spotify resource (track, or episode) to the playing queue.

        :param resource: Spotify resource URI.
        :param device: Device ID or name. If none is specified then the action will target the currently active device.
        """
self
resource
str
Spotify resource URI.
Spotify resource URI .
device
Optional[str]
Device ID or name. If none is specified then the action will target the currently active device.
Device ID or name . If none is specified then the action will target the currently active device .