How to get current user's playlist from Spotify2019 Community Moderator ElectionHow to get the list of songs using Spotify in Swift3 iOS?Spotify iOS SDK Swift display all (!) playlists (20+)Embedding Playlist in Spotify App with HTML5Searching spotify user's music library for particular genreAcceptable to save results from Spotify search API?Dynamic Spotify PlaylistSpotify playlist creation alternating between public and privateSpotify Follow PlaylistGet user data from SpotifyHow to get the list of songs using Spotify in Swift3 iOS?Spotify Create Playlist down?Spotify api add track to playlist

I can't die. Who am I?

PTIJ: Aharon, King of Egypt

Plagiarism of code by other PhD student

How can I highlight parts in a screenshot

The need of reserving one's ability in job interviews

Create chunks from an array

How does insurance birth control work?

Can a space-faring robot still function over a billion years?

How do you say “my friend is throwing a party, do you wanna come?” in german

Reason why dimensional travelling would be restricted

Sometimes a banana is just a banana

How can I be pwned if I'm not registered on the compromised site?

How to mitigate "bandwagon attacking" from players?

Is every open circuit a capacitor?

Are there other characters in the Star Wars universe who had damaged bodies and needed to wear an outfit like Darth Vader?

What is better: yes / no radio, or simple checkbox?

PTIJ: Is all laundering forbidden during the 9 days?

Wardrobe above a wall with fuse boxes

Can we carry rice to Japan?

Has Wakanda ever accepted refugees?

How to kill a localhost:8080

Specific Chinese carabiner QA?

How can neutral atoms have exactly zero electric field when there is a difference in the positions of the charges?

If nine coins are tossed, what is the probability that the number of heads is even?



How to get current user's playlist from Spotify



2019 Community Moderator ElectionHow to get the list of songs using Spotify in Swift3 iOS?Spotify iOS SDK Swift display all (!) playlists (20+)Embedding Playlist in Spotify App with HTML5Searching spotify user's music library for particular genreAcceptable to save results from Spotify search API?Dynamic Spotify PlaylistSpotify playlist creation alternating between public and privateSpotify Follow PlaylistGet user data from SpotifyHow to get the list of songs using Spotify in Swift3 iOS?Spotify Create Playlist down?Spotify api add track to playlist










0















I am trying to implement Spotify integration with current user's playlist to display it in my tableview. I have integrated with login and access token everything works fine. I have gone through stack overflow link:- How to get the list of songs using Spotify in Swift3 iOS? but didn't work for me.



Then to get print for canonicalUsername as below, its showing nil value



SPTUser.requestCurrentUser(withAccessToken:(SPTAuth.defaultInstance().session.accessToken)!) (error, data) in
guard let user = data as? SPTUser else print("Couldn't cast as SPTUser"); return
let userId = user.canonicalUsername
)


I have even tried this link Spotify iOS SDK Swift display all (!) playlists (20+) due to beginner may be it also didn't work for me. Is there any way to get Spotify's current user-id? How could I show the current user's playlist in my table view?










share|improve this question



















  • 1





    Have you tried getting the canonical username from the session? SPTAuth.defaultInstance().session.canonicalUsername? (Assuming this is using their old SDK)

    – Samantha
    14 hours ago












  • @Samantha, i will try try this one, if u have could u please share the code for getting current user's playlist and display it in tableview.

    – Aleesha
    12 hours ago















0















I am trying to implement Spotify integration with current user's playlist to display it in my tableview. I have integrated with login and access token everything works fine. I have gone through stack overflow link:- How to get the list of songs using Spotify in Swift3 iOS? but didn't work for me.



Then to get print for canonicalUsername as below, its showing nil value



SPTUser.requestCurrentUser(withAccessToken:(SPTAuth.defaultInstance().session.accessToken)!) (error, data) in
guard let user = data as? SPTUser else print("Couldn't cast as SPTUser"); return
let userId = user.canonicalUsername
)


I have even tried this link Spotify iOS SDK Swift display all (!) playlists (20+) due to beginner may be it also didn't work for me. Is there any way to get Spotify's current user-id? How could I show the current user's playlist in my table view?










share|improve this question



















  • 1





    Have you tried getting the canonical username from the session? SPTAuth.defaultInstance().session.canonicalUsername? (Assuming this is using their old SDK)

    – Samantha
    14 hours ago












  • @Samantha, i will try try this one, if u have could u please share the code for getting current user's playlist and display it in tableview.

    – Aleesha
    12 hours ago













0












0








0








I am trying to implement Spotify integration with current user's playlist to display it in my tableview. I have integrated with login and access token everything works fine. I have gone through stack overflow link:- How to get the list of songs using Spotify in Swift3 iOS? but didn't work for me.



Then to get print for canonicalUsername as below, its showing nil value



SPTUser.requestCurrentUser(withAccessToken:(SPTAuth.defaultInstance().session.accessToken)!) (error, data) in
guard let user = data as? SPTUser else print("Couldn't cast as SPTUser"); return
let userId = user.canonicalUsername
)


I have even tried this link Spotify iOS SDK Swift display all (!) playlists (20+) due to beginner may be it also didn't work for me. Is there any way to get Spotify's current user-id? How could I show the current user's playlist in my table view?










share|improve this question
















I am trying to implement Spotify integration with current user's playlist to display it in my tableview. I have integrated with login and access token everything works fine. I have gone through stack overflow link:- How to get the list of songs using Spotify in Swift3 iOS? but didn't work for me.



Then to get print for canonicalUsername as below, its showing nil value



SPTUser.requestCurrentUser(withAccessToken:(SPTAuth.defaultInstance().session.accessToken)!) (error, data) in
guard let user = data as? SPTUser else print("Couldn't cast as SPTUser"); return
let userId = user.canonicalUsername
)


I have even tried this link Spotify iOS SDK Swift display all (!) playlists (20+) due to beginner may be it also didn't work for me. Is there any way to get Spotify's current user-id? How could I show the current user's playlist in my table view?







ios swift spotify






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 16 hours ago







Aleesha

















asked 17 hours ago









AleeshaAleesha

547




547







  • 1





    Have you tried getting the canonical username from the session? SPTAuth.defaultInstance().session.canonicalUsername? (Assuming this is using their old SDK)

    – Samantha
    14 hours ago












  • @Samantha, i will try try this one, if u have could u please share the code for getting current user's playlist and display it in tableview.

    – Aleesha
    12 hours ago












  • 1





    Have you tried getting the canonical username from the session? SPTAuth.defaultInstance().session.canonicalUsername? (Assuming this is using their old SDK)

    – Samantha
    14 hours ago












  • @Samantha, i will try try this one, if u have could u please share the code for getting current user's playlist and display it in tableview.

    – Aleesha
    12 hours ago







1




1





Have you tried getting the canonical username from the session? SPTAuth.defaultInstance().session.canonicalUsername? (Assuming this is using their old SDK)

– Samantha
14 hours ago






Have you tried getting the canonical username from the session? SPTAuth.defaultInstance().session.canonicalUsername? (Assuming this is using their old SDK)

– Samantha
14 hours ago














@Samantha, i will try try this one, if u have could u please share the code for getting current user's playlist and display it in tableview.

– Aleesha
12 hours ago





@Samantha, i will try try this one, if u have could u please share the code for getting current user's playlist and display it in tableview.

– Aleesha
12 hours ago












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55021016%2fhow-to-get-current-users-playlist-from-spotify%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55021016%2fhow-to-get-current-users-playlist-from-spotify%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

1928 у кіно

Захаров Федір Захарович

Ель Греко