spotify / web-api

This issue tracker is no longer used. Join us in the Spotify for Developers forum for support with the Spotify Web API ➡️ https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
983 stars 79 forks source link

Feature request: Add a can_play_track field in user object (private) #1568

Open UlysseM opened 4 years ago

UlysseM commented 4 years ago

Hi,

I'm trying out to figure out whether a user has the permission to play a track, before attempting to send a call to the player endpoint.

The field "product" is useless in its current state, as there is no documentations about all the product types that can be returned, and what are the specificity of the product types in general.

Here is its vague description: The user’s Spotify subscription level: “premium”, “free”, etc. (The subscription level “open” can be considered the same as “free”.).

I personally remember seeing a subscription level for the free trial, where I had access to the player endpoint.

Proposed solution:

Current alternative: