Track Objects
Wrap around this Spotify API object model.
Note
Track objects should only be created with .Tracks.GetTrack() unless they are returned by, or included in other objects.
Properties
| Key | Value description |
|---|---|
| album | An Album Object of the album the track is from |
| id | The Spotify ID of the track |
| name | The name of the track |
| uri | The Spotify URI of the track |
| artists | An array of Artist Objects that represents the Artist(s) of the track |
| duration | The length of the track expressed in milliseconds |
| explicit | True/false, if the track is explicit or not |
Methods
| Definition | Description |
|---|---|
.Save() |
Saves a track to the current user's Your Music library |
.UnSave() |
Removes a saved track from the current user's Your Music library |
.Play() |
Tries to start playing the track on the active device, will cancel any other playback |