rdio_api 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/.gitignore +11 -0
  2. data/Gemfile +4 -0
  3. data/Guardfile +20 -0
  4. data/README.md +115 -0
  5. data/Rakefile +10 -0
  6. data/lib/rdio_api/api.rb +81 -0
  7. data/lib/rdio_api/client.rb +48 -0
  8. data/lib/rdio_api/version.rb +3 -0
  9. data/lib/rdio_api.rb +14 -0
  10. data/rdio_api.gemspec +30 -0
  11. data/spec/fixtures/addFriend.json +4 -0
  12. data/spec/fixtures/addToCollection.json +4 -0
  13. data/spec/fixtures/addToPlaylist.json +4 -0
  14. data/spec/fixtures/createPlaylist.json +19 -0
  15. data/spec/fixtures/currentUser.json +14 -0
  16. data/spec/fixtures/deletePlaylist.json +4 -0
  17. data/spec/fixtures/findUser.json +14 -0
  18. data/spec/fixtures/get.json +16 -0
  19. data/spec/fixtures/getActivityStream.json +18 -0
  20. data/spec/fixtures/getAlbumsForArtist.json +917 -0
  21. data/spec/fixtures/getAlbumsForArtistInCollection.json +82 -0
  22. data/spec/fixtures/getAlbumsInCollection.json +1184 -0
  23. data/spec/fixtures/getArtistsInCollection.json +37 -0
  24. data/spec/fixtures/getHeavyRotation.json +394 -0
  25. data/spec/fixtures/getNewReleases.json +796 -0
  26. data/spec/fixtures/getObjectFromShortCode.json +33 -0
  27. data/spec/fixtures/getObjectFromUrl.json +16 -0
  28. data/spec/fixtures/getPlaybackToken.json +4 -0
  29. data/spec/fixtures/getPlaylists.json +25 -0
  30. data/spec/fixtures/getTopCharts.json +181 -0
  31. data/spec/fixtures/getTracksForAlbumInCollection.json +440 -0
  32. data/spec/fixtures/getTracksForArtist.json +295 -0
  33. data/spec/fixtures/getTracksForArtistInCollection.json +34 -0
  34. data/spec/fixtures/getTracksInCollection.json +121 -0
  35. data/spec/fixtures/removeFriend.json +4 -0
  36. data/spec/fixtures/removeFromCollection.json +4 -0
  37. data/spec/fixtures/removeFromPlaylist.json +4 -0
  38. data/spec/fixtures/search.json +523 -0
  39. data/spec/fixtures/searchSuggestions.json +117 -0
  40. data/spec/fixtures/setAvailableOffline.json +4 -0
  41. data/spec/fixtures/setPlaylistCollaborating.json +4 -0
  42. data/spec/fixtures/setPlaylistCollaborationMode.json +4 -0
  43. data/spec/fixtures/setPlaylistFields.json +4 -0
  44. data/spec/fixtures/setPlaylistOrder.json +4 -0
  45. data/spec/fixtures/userFollowers.json +27 -0
  46. data/spec/fixtures/userFollowing.json +27 -0
  47. data/spec/helper.rb +26 -0
  48. data/spec/rdio_api/activity_spec.rb +59 -0
  49. data/spec/rdio_api/catalog_spec.rb +77 -0
  50. data/spec/rdio_api/client_spec.rb +18 -0
  51. data/spec/rdio_api/collection_spec.rb +127 -0
  52. data/spec/rdio_api/core_spec.rb +59 -0
  53. data/spec/rdio_api/playback_spec.rb +22 -0
  54. data/spec/rdio_api/playlists_spec.rb +122 -0
  55. data/spec/rdio_api/social_spec.rb +92 -0
  56. metadata +273 -0
@@ -0,0 +1,82 @@
1
+ {
2
+ "status" :"ok",
3
+ "result" : [
4
+ {
5
+ "baseIcon": "album/9/5/2/000000000004b259/square-200.jpg",
6
+ "releaseDate": "2010-06-14",
7
+ "userGender": "m",
8
+ "artistUrl": "/artist/Arkngthand/",
9
+ "duration": 340,
10
+ "userKey": "s27093",
11
+ "isClean": false,
12
+ "albumUrl": "/artist/Arkngthand/album/Songs_of_Ice_and_Fire_1/",
13
+ "shortUrl": "http://rd.io/x/QDaXPkftCw",
14
+ "canStream": false,
15
+ "embedUrl": "http://rd.io/e/QDaXPkftCw",
16
+ "type": "al",
17
+ "price": "9.99",
18
+ "collectionUrl": "/people/anilv/collection/",
19
+ "tracks": [
20
+ {
21
+ "baseIcon": "album/9/5/2/000000000004b259/square-200.jpg",
22
+ "canDownloadAlbumOnly": true,
23
+ "artistUrl": "/artist/Arkngthand/",
24
+ "duration": 340,
25
+ "album": "Songs of Ice and Fire",
26
+ "isClean": false,
27
+ "albumUrl": "/artist/Arkngthand/album/Songs_of_Ice_and_Fire_1/",
28
+ "shortUrl": "http://rd.io/x/QDaXK3laRQ",
29
+ "albumArtist": "Arkngthand",
30
+ "canStream": false,
31
+ "embedUrl": "http://rd.io/e/QDaXK3laRQ",
32
+ "type": "t",
33
+ "price": "0.99",
34
+ "trackNum": 5,
35
+ "albumArtistKey": "r350868",
36
+ "key": "t3802391",
37
+ "icon": "http://media.rd.io/album/9/5/2/000000000004b259/square-200.jpg",
38
+ "canSample": true,
39
+ "name": "A Game of Thrones",
40
+ "isExplicit": false,
41
+ "artist": "Arkngthand",
42
+ "url": "/artist/Arkngthand/album/Songs_of_Ice_and_Fire_1/track/A_Game_of_Thrones/",
43
+ "albumKey": "a307801",
44
+ "artistKey": "r350868",
45
+ "canDownload": true,
46
+ "length": 1,
47
+ "canTether": false
48
+ }
49
+ ],
50
+ "key": "al307801|27093",
51
+ "icon": "http://media.rd.io/album/9/5/2/000000000004b259/square-200.jpg",
52
+ "userName": "Anil V",
53
+ "canSample": true,
54
+ "name": "Songs of Ice and Fire",
55
+ "isExplicit": false,
56
+ "artist": "Arkngthand",
57
+ "url": "/artist/Arkngthand/album/Songs_of_Ice_and_Fire_1/",
58
+ "albumKey": "a307801",
59
+ "artistKey": "rl350868|27093",
60
+ "length": 1,
61
+ "trackKeys": [
62
+ "t3802391"
63
+ ],
64
+ "canTether": false,
65
+ "itemTrackKeys": [
66
+ "t3802336",
67
+ "t3802342",
68
+ "t3802363",
69
+ "t3802373",
70
+ "t3802391",
71
+ "t3802413",
72
+ "t3802431",
73
+ "t3802432",
74
+ "t3802448",
75
+ "t3802470",
76
+ "t3802489",
77
+ "t3802494"
78
+ ],
79
+ "displayDate": "Jun 14, 2010"
80
+ }
81
+ ]
82
+ }