How to create a playlist and get a URI from it in the application applications API?

You can create a playlist (new playlist (name)) using the application APIs, but the URI field of the new playlist is always zero. Does anyone know how to get around this or otherwise link to a new playlist?

Without a URI, I cannot create a โ€œshareโ€ button in an application, since I need a URI to refer to it.

Does anyone know if this is a bug or feature?

I just discovered that spotify removed the ability to read user playlists for privacy reasons [1], so now I wonder if this is a design decision or just a mistake. In the end, the playlist in question was created in our application, so should I get the URI of this?

1: Spotify Apps API: library class will not return playlists to users

+4
source share
1 answer

Unfortunately, the URI property will only be populated if you create a playlist with the URI provided to you, for example:

models.Playlist.FromURI("totally a valid URI"); 

Unfortunately, this is because the playlist URIs contain the creatorโ€™s username, and we are not allowed to release personally identifiable information through our API.

We hope to change this in the future.

+5
source

Source: https://habr.com/ru/post/1390217/


All Articles