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
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
add a comment |
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
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
add a comment |
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
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
ios swift spotify
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
add a comment |
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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