ios - How to create SPTrack with the help of spotifyURL? -


so far have done this. return nil in sptrack.

 nsurl *trackurl = [nsurl urlwithstring:msg];                 // spotify:track:489k1qunrvbm2ops4xglnd             [[spsession sharedsession] trackforurl:trackurl callback:^(sptrack *track)              {                 self.currenttrack = track;                 nslog(@"sptrack : %@",self.currenttrack);                 if (track != nil)                 {                      [spasyncloading waituntilloaded:track timeout:kspasyncloadingdefaulttimeout then:^(nsarray *tracks, nsarray *notloadedtracks) {                         self.currenttrack = track;                         nslog(@"sptrack : %@",self.currenttrack);                     }];                 }             }]; 

your code looks fine, double check that:

1) url correct.

2) cocoalibspotify logged in valid user. practically nothing works unless you're logged in.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -