Link objects
Link type not valid - default until the library has parsed the link, or when parsing failed.
Return the link as a string in the Spotify format.
Example: spotify:track:5st5644IlBmKiiRE73UsoZ
Return the type of the link as an int. Check value against the LINK_* types.
| Parameters: | album (Album) – an album |
|---|---|
| Returns: | link to the album |
| Return type: | Link |
| Raises : | SpotifyError |
| Parameters: | artist (Artist) – an artist |
|---|---|
| Returns: | link to the artist |
| Return type: | Link |
| Raises : | SpotifyError |
| Parameters: | playlist (Playlist) – a playlist |
|---|---|
| Returns: | link to the playlist |
| Return type: | Link |
| Raises : | SpotifyError |
| Parameters: | results (Results) – a result set |
|---|---|
| Returns: | link to the result set |
| Return type: | Link |
| Raises : | SpotifyError |
| Parameters: | s (string) – a Spotify URI |
|---|---|
| Returns: | link to the same resource as the URI string |
| Return type: | Link |
| Raises : | SpotifyError |
Create a new Link object from a string. Raises an exception if the string is not a valid Spotify URI.
| Parameters: |
|
|---|---|
| Returns: | link to the result set |
| Return type: | |
| Raises : |
Create a new Link object from a Track object, and optionally a time offset in milliseconds from the start of the track.