Announcements
Subscribing and redeeming gift cards should be looking better again. We're still working to resolve this fully. Subscribe to the thread here for updates.

Get user id for current user

Reply

Get user id for current user

hethcox
Regular

I'm using the ios-sdk. I'm connected and can control the player API, but I'd like to retrieve some data from the REST API. How do I get the current user's spotify id for the queries?

 

TIA

 

1 Reply

Re: Get user id for current user

hethcox
Regular

This may not be the best way, but I called https://api.spotify.com/v1/me with the bearer token. The response contains the user id.

SUGGESTED POSTS