rdio_api 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +11 -0
- data/Gemfile +4 -0
- data/Guardfile +20 -0
- data/README.md +115 -0
- data/Rakefile +10 -0
- data/lib/rdio_api/api.rb +81 -0
- data/lib/rdio_api/client.rb +48 -0
- data/lib/rdio_api/version.rb +3 -0
- data/lib/rdio_api.rb +14 -0
- data/rdio_api.gemspec +30 -0
- data/spec/fixtures/addFriend.json +4 -0
- data/spec/fixtures/addToCollection.json +4 -0
- data/spec/fixtures/addToPlaylist.json +4 -0
- data/spec/fixtures/createPlaylist.json +19 -0
- data/spec/fixtures/currentUser.json +14 -0
- data/spec/fixtures/deletePlaylist.json +4 -0
- data/spec/fixtures/findUser.json +14 -0
- data/spec/fixtures/get.json +16 -0
- data/spec/fixtures/getActivityStream.json +18 -0
- data/spec/fixtures/getAlbumsForArtist.json +917 -0
- data/spec/fixtures/getAlbumsForArtistInCollection.json +82 -0
- data/spec/fixtures/getAlbumsInCollection.json +1184 -0
- data/spec/fixtures/getArtistsInCollection.json +37 -0
- data/spec/fixtures/getHeavyRotation.json +394 -0
- data/spec/fixtures/getNewReleases.json +796 -0
- data/spec/fixtures/getObjectFromShortCode.json +33 -0
- data/spec/fixtures/getObjectFromUrl.json +16 -0
- data/spec/fixtures/getPlaybackToken.json +4 -0
- data/spec/fixtures/getPlaylists.json +25 -0
- data/spec/fixtures/getTopCharts.json +181 -0
- data/spec/fixtures/getTracksForAlbumInCollection.json +440 -0
- data/spec/fixtures/getTracksForArtist.json +295 -0
- data/spec/fixtures/getTracksForArtistInCollection.json +34 -0
- data/spec/fixtures/getTracksInCollection.json +121 -0
- data/spec/fixtures/removeFriend.json +4 -0
- data/spec/fixtures/removeFromCollection.json +4 -0
- data/spec/fixtures/removeFromPlaylist.json +4 -0
- data/spec/fixtures/search.json +523 -0
- data/spec/fixtures/searchSuggestions.json +117 -0
- data/spec/fixtures/setAvailableOffline.json +4 -0
- data/spec/fixtures/setPlaylistCollaborating.json +4 -0
- data/spec/fixtures/setPlaylistCollaborationMode.json +4 -0
- data/spec/fixtures/setPlaylistFields.json +4 -0
- data/spec/fixtures/setPlaylistOrder.json +4 -0
- data/spec/fixtures/userFollowers.json +27 -0
- data/spec/fixtures/userFollowing.json +27 -0
- data/spec/helper.rb +26 -0
- data/spec/rdio_api/activity_spec.rb +59 -0
- data/spec/rdio_api/catalog_spec.rb +77 -0
- data/spec/rdio_api/client_spec.rb +18 -0
- data/spec/rdio_api/collection_spec.rb +127 -0
- data/spec/rdio_api/core_spec.rb +59 -0
- data/spec/rdio_api/playback_spec.rb +22 -0
- data/spec/rdio_api/playlists_spec.rb +122 -0
- data/spec/rdio_api/social_spec.rb +92 -0
- metadata +273 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
{
|
2
|
+
"status" :"ok",
|
3
|
+
"result" : [
|
4
|
+
{
|
5
|
+
"userName": "Anil V",
|
6
|
+
"name": "Arkngthand",
|
7
|
+
"artistKey": "r350868",
|
8
|
+
"baseIcon": "artist/no-artist-image-square.jpg",
|
9
|
+
"collectionUrl": "/people/anilv/collection/",
|
10
|
+
"shortUrl": "http://rd.io/x/QDaXLUYFxg",
|
11
|
+
"length": 1,
|
12
|
+
"hasRadio": false,
|
13
|
+
"url": "/artist/Arkngthand/",
|
14
|
+
"key": "rl350868|27093",
|
15
|
+
"userKey": "s27093",
|
16
|
+
"type": "rl",
|
17
|
+
"icon": "http://media.rd.io/artist/no-artist-image-square.jpg"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"userName": "Anil V",
|
21
|
+
"name": "Beastie Boys",
|
22
|
+
"artistKey": "r232323",
|
23
|
+
"baseIcon": "artist/no-artist-image-square.jpg",
|
24
|
+
"collectionUrl": "/people/anilv/collection/",
|
25
|
+
"shortUrl": "http://rd.io/x/QDaXLUDU0Q",
|
26
|
+
"length": 16,
|
27
|
+
"hasRadio": true,
|
28
|
+
"url": "/artist/Beastie_Boys/",
|
29
|
+
"key": "rl232323|27093",
|
30
|
+
"radioKey": "rr232323",
|
31
|
+
"userKey": "s27093",
|
32
|
+
"icon": "http://media.rd.io/artist/no-artist-image-square.jpg",
|
33
|
+
"type": "rl",
|
34
|
+
"topSongsKey": "tr232323"
|
35
|
+
}
|
36
|
+
]
|
37
|
+
}
|
@@ -0,0 +1,394 @@
|
|
1
|
+
{
|
2
|
+
"status" :"ok",
|
3
|
+
"result" : [
|
4
|
+
{
|
5
|
+
"baseIcon": "album/1/6/3/00000000000dd361/square-200.jpg",
|
6
|
+
"releaseDate": "2011-07-28",
|
7
|
+
"displayDate": "Jul 28, 2011",
|
8
|
+
"duration": 4420,
|
9
|
+
"isClean": false,
|
10
|
+
"shortUrl": "http://rd.io/x/QDaXPk6MMw",
|
11
|
+
"canStream": false,
|
12
|
+
"embedUrl": "http://rd.io/e/QDaXPk6MMw",
|
13
|
+
"type": "a",
|
14
|
+
"price": "25.80",
|
15
|
+
"key": "a906081",
|
16
|
+
"icon": "http://media.rd.io/album/1/6/3/00000000000dd361/square-200.jpg",
|
17
|
+
"canSample": true,
|
18
|
+
"hits": 239368,
|
19
|
+
"name": "King (Deluxe Version)",
|
20
|
+
"isExplicit": false,
|
21
|
+
"artist": "O.A.R.",
|
22
|
+
"url": "/artist/O.A.R./album/King_(Deluxe_Version)/",
|
23
|
+
"artistKey": "r86408",
|
24
|
+
"length": 20,
|
25
|
+
"trackKeys": [
|
26
|
+
"t10584493",
|
27
|
+
"t10584496",
|
28
|
+
"t10584500",
|
29
|
+
"t10584504",
|
30
|
+
"t10584509",
|
31
|
+
"t10584514",
|
32
|
+
"t10584517",
|
33
|
+
"t10584520",
|
34
|
+
"t10584524",
|
35
|
+
"t10584526",
|
36
|
+
"t10584528",
|
37
|
+
"t10584531",
|
38
|
+
"t10584534",
|
39
|
+
"t10584535",
|
40
|
+
"t10584537",
|
41
|
+
"t10584539",
|
42
|
+
"t10584541",
|
43
|
+
"t10584543",
|
44
|
+
"t10584546",
|
45
|
+
"t10584548"
|
46
|
+
],
|
47
|
+
"canTether": false,
|
48
|
+
"artistUrl": "/artist/O.A.R./"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"baseIcon": "album/0/6/e/00000000000cae60/square-200.jpg",
|
52
|
+
"releaseDate": "2011-06-27",
|
53
|
+
"displayDate": "Jun 27, 2011",
|
54
|
+
"duration": 2788,
|
55
|
+
"isClean": false,
|
56
|
+
"shortUrl": "http://rd.io/x/QDaXPk_xMg",
|
57
|
+
"canStream": false,
|
58
|
+
"embedUrl": "http://rd.io/e/QDaXPk_xMg",
|
59
|
+
"type": "a",
|
60
|
+
"price": "11.99",
|
61
|
+
"key": "a831072",
|
62
|
+
"icon": "http://media.rd.io/album/0/6/e/00000000000cae60/square-200.jpg",
|
63
|
+
"canSample": true,
|
64
|
+
"hits": 44208,
|
65
|
+
"name": "4",
|
66
|
+
"isExplicit": false,
|
67
|
+
"artist": "Beyonc\u00e9",
|
68
|
+
"url": "/artist/Beyonc%C3%A9/album/4/",
|
69
|
+
"artistKey": "r45673",
|
70
|
+
"length": 12,
|
71
|
+
"trackKeys": [
|
72
|
+
"t9759287",
|
73
|
+
"t9759464",
|
74
|
+
"t9759602",
|
75
|
+
"t9759697",
|
76
|
+
"t9759841",
|
77
|
+
"t9759965",
|
78
|
+
"t9760067",
|
79
|
+
"t9760131",
|
80
|
+
"t9760195",
|
81
|
+
"t9760225",
|
82
|
+
"t9760247",
|
83
|
+
"t9760269"
|
84
|
+
],
|
85
|
+
"canTether": false,
|
86
|
+
"artistUrl": "/artist/Beyonc%C3%A9/"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"baseIcon": "album/3/8/0/000000000009f083/square-200.jpg",
|
90
|
+
"releaseDate": "2011-02-22",
|
91
|
+
"displayDate": "Feb 22, 2011",
|
92
|
+
"duration": 2877,
|
93
|
+
"isClean": false,
|
94
|
+
"shortUrl": "http://rd.io/x/QDaXPkqv0Q",
|
95
|
+
"canStream": false,
|
96
|
+
"embedUrl": "http://rd.io/e/QDaXPkqv0Q",
|
97
|
+
"type": "a",
|
98
|
+
"price": "10.99",
|
99
|
+
"key": "a651395",
|
100
|
+
"icon": "http://media.rd.io/album/3/8/0/000000000009f083/square-200.jpg",
|
101
|
+
"canSample": true,
|
102
|
+
"hits": 42856,
|
103
|
+
"name": "21",
|
104
|
+
"isExplicit": false,
|
105
|
+
"artist": "Adele",
|
106
|
+
"url": "/artist/Adele/album/21_1/",
|
107
|
+
"artistKey": "r91329",
|
108
|
+
"length": 11,
|
109
|
+
"trackKeys": [
|
110
|
+
"t7761186",
|
111
|
+
"t7761192",
|
112
|
+
"t7761196",
|
113
|
+
"t7761201",
|
114
|
+
"t7761206",
|
115
|
+
"t7761211",
|
116
|
+
"t7761216",
|
117
|
+
"t7761220",
|
118
|
+
"t7761224",
|
119
|
+
"t7761230",
|
120
|
+
"t7761234"
|
121
|
+
],
|
122
|
+
"canTether": false,
|
123
|
+
"artistUrl": "/artist/Adele/"
|
124
|
+
},
|
125
|
+
{
|
126
|
+
"baseIcon": "album/1/4/3/00000000000bd341/square-200.jpg",
|
127
|
+
"releaseDate": "2011-05-23",
|
128
|
+
"displayDate": "May 23, 2011",
|
129
|
+
"duration": 2300,
|
130
|
+
"isClean": false,
|
131
|
+
"shortUrl": "http://rd.io/x/QDaXPkiMEw",
|
132
|
+
"canStream": false,
|
133
|
+
"embedUrl": "http://rd.io/e/QDaXPkiMEw",
|
134
|
+
"type": "a",
|
135
|
+
"price": "9.99",
|
136
|
+
"key": "a774977",
|
137
|
+
"icon": "http://media.rd.io/album/1/4/3/00000000000bd341/square-200.jpg",
|
138
|
+
"canSample": true,
|
139
|
+
"hits": 38950,
|
140
|
+
"name": "Torches",
|
141
|
+
"isExplicit": false,
|
142
|
+
"artist": "Foster The People",
|
143
|
+
"url": "/artist/Foster_The_People/album/Torches/",
|
144
|
+
"artistKey": "r786839",
|
145
|
+
"length": 10,
|
146
|
+
"trackKeys": [
|
147
|
+
"t9143808",
|
148
|
+
"t9143822",
|
149
|
+
"t9143833",
|
150
|
+
"t9143848",
|
151
|
+
"t9143858",
|
152
|
+
"t9143870",
|
153
|
+
"t9143892",
|
154
|
+
"t9143920",
|
155
|
+
"t9143946",
|
156
|
+
"t9143967"
|
157
|
+
],
|
158
|
+
"canTether": false,
|
159
|
+
"artistUrl": "/artist/Foster_The_People/"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"baseIcon": "album/9/a/8/000000000008c8a9/square-200.jpg",
|
163
|
+
"releaseDate": "2010-11-22",
|
164
|
+
"displayDate": "Nov 22, 2010",
|
165
|
+
"duration": 3703,
|
166
|
+
"isClean": false,
|
167
|
+
"shortUrl": "http://rd.io/x/QDaXPkuX-w",
|
168
|
+
"canStream": false,
|
169
|
+
"embedUrl": "http://rd.io/e/QDaXPkuX-w",
|
170
|
+
"type": "a",
|
171
|
+
"price": "19.50",
|
172
|
+
"key": "a575657",
|
173
|
+
"icon": "http://media.rd.io/album/9/a/8/000000000008c8a9/square-200.jpg",
|
174
|
+
"canSample": true,
|
175
|
+
"hits": 31478,
|
176
|
+
"name": "Pink Friday (Deluxe Version)",
|
177
|
+
"isExplicit": true,
|
178
|
+
"artist": "Nicki Minaj",
|
179
|
+
"url": "/artist/Nicki_Minaj/album/Pink_Friday_(Deluxe_Version)/",
|
180
|
+
"artistKey": "r188145",
|
181
|
+
"length": 16,
|
182
|
+
"trackKeys": [
|
183
|
+
"t6896241",
|
184
|
+
"t6896244",
|
185
|
+
"t6896247",
|
186
|
+
"t6896250",
|
187
|
+
"t6896253",
|
188
|
+
"t6896257",
|
189
|
+
"t6896261",
|
190
|
+
"t6896267",
|
191
|
+
"t6896275",
|
192
|
+
"t6896284",
|
193
|
+
"t6896291",
|
194
|
+
"t6896297",
|
195
|
+
"t6896308",
|
196
|
+
"t6896314",
|
197
|
+
"t6896323",
|
198
|
+
"t6896331"
|
199
|
+
],
|
200
|
+
"canTether": false,
|
201
|
+
"artistUrl": "/artist/Nicki_Minaj/"
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"baseIcon": "album/8/a/7/00000000000397a8/square-200.jpg",
|
205
|
+
"releaseDate": "2007-03-13",
|
206
|
+
"displayDate": "Dec 19, 2006",
|
207
|
+
"duration": 2122,
|
208
|
+
"isClean": false,
|
209
|
+
"shortUrl": "http://rd.io/x/QDaXPkDI-g",
|
210
|
+
"canStream": false,
|
211
|
+
"embedUrl": "http://rd.io/e/QDaXPkDI-g",
|
212
|
+
"type": "a",
|
213
|
+
"price": "10.00",
|
214
|
+
"key": "a235432",
|
215
|
+
"icon": "http://media.rd.io/album/8/a/7/00000000000397a8/square-200.jpg",
|
216
|
+
"canSample": true,
|
217
|
+
"hits": 29515,
|
218
|
+
"name": "Back To Black",
|
219
|
+
"isExplicit": true,
|
220
|
+
"artist": "Amy Winehouse",
|
221
|
+
"url": "/artist/Amy_Winehouse/album/Back_To_Black_1/",
|
222
|
+
"artistKey": "r139977",
|
223
|
+
"length": 11,
|
224
|
+
"trackKeys": [
|
225
|
+
"t2856305",
|
226
|
+
"t2856366",
|
227
|
+
"t2856439",
|
228
|
+
"t2856482",
|
229
|
+
"t2856537",
|
230
|
+
"t2856605",
|
231
|
+
"t2856652",
|
232
|
+
"t2856702",
|
233
|
+
"t2856769",
|
234
|
+
"t2856806",
|
235
|
+
"t2856865"
|
236
|
+
],
|
237
|
+
"canTether": false,
|
238
|
+
"artistUrl": "/artist/Amy_Winehouse/"
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"baseIcon": "album/9/b/2/00000000000a82b9/square-200.jpg",
|
242
|
+
"releaseDate": "2011-03-25",
|
243
|
+
"displayDate": "Mar 25, 2011",
|
244
|
+
"duration": 3467,
|
245
|
+
"isClean": false,
|
246
|
+
"shortUrl": "http://rd.io/x/QDaXPknd6w",
|
247
|
+
"canStream": false,
|
248
|
+
"embedUrl": "http://rd.io/e/QDaXPknd6w",
|
249
|
+
"type": "a",
|
250
|
+
"price": "9.99",
|
251
|
+
"key": "a688825",
|
252
|
+
"icon": "http://media.rd.io/album/9/b/2/00000000000a82b9/square-200.jpg",
|
253
|
+
"canSample": true,
|
254
|
+
"hits": 27954,
|
255
|
+
"name": "Rolling Papers",
|
256
|
+
"isExplicit": true,
|
257
|
+
"artist": "Wiz Khalifa",
|
258
|
+
"url": "/artist/Wiz_Khalifa/album/Rolling_Papers/",
|
259
|
+
"artistKey": "r86739",
|
260
|
+
"length": 14,
|
261
|
+
"trackKeys": [
|
262
|
+
"t8197732",
|
263
|
+
"t8197735",
|
264
|
+
"t8197738",
|
265
|
+
"t8197741",
|
266
|
+
"t8197744",
|
267
|
+
"t8197747",
|
268
|
+
"t8197750",
|
269
|
+
"t8197752",
|
270
|
+
"t8197755",
|
271
|
+
"t8197758",
|
272
|
+
"t8197761",
|
273
|
+
"t8197764",
|
274
|
+
"t8197766",
|
275
|
+
"t8197769"
|
276
|
+
],
|
277
|
+
"canTether": false,
|
278
|
+
"artistUrl": "/artist/Wiz_Khalifa/"
|
279
|
+
},
|
280
|
+
{
|
281
|
+
"baseIcon": "album/6/4/3/00000000000ce346/square-200.jpg",
|
282
|
+
"releaseDate": "2011-07-12",
|
283
|
+
"displayDate": "Jul 12, 2011",
|
284
|
+
"duration": 2440,
|
285
|
+
"isClean": false,
|
286
|
+
"shortUrl": "http://rd.io/x/QDaXPk-8FA",
|
287
|
+
"canStream": false,
|
288
|
+
"embedUrl": "http://rd.io/e/QDaXPk-8FA",
|
289
|
+
"type": "a",
|
290
|
+
"price": "8.91",
|
291
|
+
"key": "a844614",
|
292
|
+
"icon": "http://media.rd.io/album/6/4/3/00000000000ce346/square-200.jpg",
|
293
|
+
"canSample": true,
|
294
|
+
"hits": 25630,
|
295
|
+
"name": "Within and Without",
|
296
|
+
"isExplicit": false,
|
297
|
+
"artist": "Washed Out",
|
298
|
+
"url": "/artist/Washed_Out/album/Within_and_Without/",
|
299
|
+
"artistKey": "r167770",
|
300
|
+
"length": 9,
|
301
|
+
"trackKeys": [
|
302
|
+
"t9925718",
|
303
|
+
"t9925787",
|
304
|
+
"t9925858",
|
305
|
+
"t9925920",
|
306
|
+
"t9926006",
|
307
|
+
"t9926067",
|
308
|
+
"t9926146",
|
309
|
+
"t9926213",
|
310
|
+
"t9926277"
|
311
|
+
],
|
312
|
+
"canTether": false,
|
313
|
+
"artistUrl": "/artist/Washed_Out/"
|
314
|
+
},
|
315
|
+
{
|
316
|
+
"baseIcon": "album/5/d/c/00000000000c7cd5/square-200.jpg",
|
317
|
+
"releaseDate": "2011-06-21",
|
318
|
+
"displayDate": "Jun 20, 2011",
|
319
|
+
"duration": 2364,
|
320
|
+
"isClean": false,
|
321
|
+
"shortUrl": "http://rd.io/x/QDaXPk8jhw",
|
322
|
+
"canStream": false,
|
323
|
+
"embedUrl": "http://rd.io/e/QDaXPk8jhw",
|
324
|
+
"type": "a",
|
325
|
+
"price": "9.90",
|
326
|
+
"key": "a818389",
|
327
|
+
"icon": "http://media.rd.io/album/5/d/c/00000000000c7cd5/square-200.jpg",
|
328
|
+
"canSample": true,
|
329
|
+
"hits": 25444,
|
330
|
+
"name": "Bon Iver",
|
331
|
+
"isExplicit": false,
|
332
|
+
"artist": "Bon Iver",
|
333
|
+
"url": "/artist/Bon_Iver/album/Bon_Iver/",
|
334
|
+
"artistKey": "r88254",
|
335
|
+
"length": 10,
|
336
|
+
"trackKeys": [
|
337
|
+
"t9616341",
|
338
|
+
"t9616371",
|
339
|
+
"t9616400",
|
340
|
+
"t9616445",
|
341
|
+
"t9616464",
|
342
|
+
"t9616493",
|
343
|
+
"t9616516",
|
344
|
+
"t9616551",
|
345
|
+
"t9616576",
|
346
|
+
"t9616589"
|
347
|
+
],
|
348
|
+
"canTether": false,
|
349
|
+
"artistUrl": "/artist/Bon_Iver/"
|
350
|
+
},
|
351
|
+
{
|
352
|
+
"baseIcon": "album/c/0/c/00000000000cdc0c/square-200.jpg",
|
353
|
+
"releaseDate": "2011-06-28",
|
354
|
+
"displayDate": "Jun 28, 2011",
|
355
|
+
"duration": 3715,
|
356
|
+
"isClean": false,
|
357
|
+
"shortUrl": "http://rd.io/x/QDaXPk-DXg",
|
358
|
+
"canStream": false,
|
359
|
+
"embedUrl": "http://rd.io/e/QDaXPk-DXg",
|
360
|
+
"type": "a",
|
361
|
+
"price": "12.99",
|
362
|
+
"key": "a842764",
|
363
|
+
"icon": "http://media.rd.io/album/c/0/c/00000000000cdc0c/square-200.jpg",
|
364
|
+
"canSample": true,
|
365
|
+
"hits": 23389,
|
366
|
+
"name": "Finally Famous (Deluxe Edition)",
|
367
|
+
"isExplicit": true,
|
368
|
+
"artist": "Big Sean",
|
369
|
+
"url": "/artist/Big_Sean/album/Finally_Famous_(Deluxe_Edition)/",
|
370
|
+
"artistKey": "r157540",
|
371
|
+
"length": 16,
|
372
|
+
"trackKeys": [
|
373
|
+
"t9900961",
|
374
|
+
"t9900995",
|
375
|
+
"t9901060",
|
376
|
+
"t9901117",
|
377
|
+
"t9901168",
|
378
|
+
"t9901223",
|
379
|
+
"t9901267",
|
380
|
+
"t9901307",
|
381
|
+
"t9901341",
|
382
|
+
"t9901388",
|
383
|
+
"t9901428",
|
384
|
+
"t9901454",
|
385
|
+
"t9901488",
|
386
|
+
"t9901502",
|
387
|
+
"t9901513",
|
388
|
+
"t9901525"
|
389
|
+
],
|
390
|
+
"canTether": false,
|
391
|
+
"artistUrl": "/artist/Big_Sean/"
|
392
|
+
}
|
393
|
+
]
|
394
|
+
}
|