API console doesn't return tracks for some albums

13 views
Skip to first unread message

Chris Silverman

unread,
Feb 24, 2015, 11:52:50 AM2/24/15
to rdio...@googlegroups.com
I'm trying to get a list of all tracks in a playlist. First I get the key for the playlist itself (using getObjectFromShortCode), and then I use "get" to return the object for that specific playlist, with "tracks" specified in the Extras field.

The odd thing is that this works perfectly for other peoples' playlists (like the one specified by Rdio engineer Kevin Nelson, here: https://groups.google.com/d/msg/rdio-api/UAJ3_d9HRmI/JGN96pbdmn4J) but not for mine. When I try to pull in the object for one of my playlists, using "get" on the playlist key, I only get the following:

{
 "status": "ok", 
 "result": {
  "p12861268": {
   "ownerKey": "s3489410", 
   "name": "Roundup 1", 
   "url": "/people/csilverman/playlists/12861268/Roundup_1/", 
   "ownerIcon": "user/no-user-image-square.jpg", 
   "owner": "Chris Silverman", 
   "shortUrl": "http://rd.io/x/Qi-GYBc/", 
   "key": "p12861268", 
   "ownerUrl": "/people/csilverman/", 
   "embedUrl": "https://rd.io/e/Qi-GYBc/", 
   "type": "p"
  }
 }
}

What am I doing wrong? (I just started experimenting with the Rdio API over the weekend, so there is a very good chance I am probably doing something wrong. I've been at this for a day or two now, though, and I can't see what the problem is.)

 - Chris

Devin Sevilla

unread,
Feb 24, 2015, 6:35:42 PM2/24/15
to rdio...@googlegroups.com
Hi Chris!

The issue is that you're trying to query a protected playlist. The
playlist is protected because you're account is protected. Try viewing
the `shortUrl` while signed out.

You'll need to authenticate first (link in the top-right corner) to see tracks.

Best

--
Devin Sevilla
API Engineer, Rdio Inc.
http://rdio.com/people/devin_s/
> --
> You received this message because you are subscribed to the Google Groups
> "Rdio API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rdio-api+u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rdio-api/30769fe1-eb56-4408-acd3-e3860f5f85f8%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Chris Silverman

unread,
Feb 24, 2015, 9:36:33 PM2/24/15
to rdio...@googlegroups.com
Thanks, Devin. Works perfectly now!

 - Chris
Reply all
Reply to author
Forward
0 new messages