Announcements

Help Wizard

Step 1

NEXT STEP

Long URIs

Solved!

Long URIs

Is there any logic as to when one needs to provide the fully qualified version of a URI (e.g. including the "spotify:track:" prefix)?

 

I've been developing Haskell bindings to the Web API, and have just found that, for example, getting a track requires the short version, whereas adding a track to a playlist requires the long version. This seems an unnecessary complication.

Reply

Accepted Solutions
Marked as solution

You can add Music Tracks and Podcast Episodes to a Playlist so requiring the URI for spotify:track and spotify:episode would be needed for that, whereas when you get a track, the item type is known

View solution in original post

2 Replies
Marked as solution

You can add Music Tracks and Podcast Episodes to a Playlist so requiring the URI for spotify:track and spotify:episode would be needed for that, whereas when you get a track, the item type is known

Ok, I see that now - I didn't look at the docs in enough detail...

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random