ronnie 0.7.6 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/README.md +28 -134
  2. data/banner.txt +79 -0
  3. data/lib/ronnie/client.rb +4 -0
  4. data/lib/ronnie/client/activities.rb +17 -0
  5. data/lib/ronnie/client/albums.rb +35 -1
  6. data/lib/ronnie/client/artists.rb +27 -1
  7. data/lib/ronnie/client/playlists.rb +8 -0
  8. data/lib/ronnie/client/tokens.rb +13 -0
  9. data/lib/ronnie/client/tracks.rb +8 -0
  10. data/lib/ronnie/version.rb +1 -1
  11. data/spec/fixtures/cassettes/Ronnie_Client_Users/_activities/Retrieve_everyone_Activity_Stream/.yml +562 -0
  12. data/spec/fixtures/cassettes/Ronnie_Client_Users/_activities/Retrieve_friends_Activity_Stream/.yml +242 -0
  13. data/spec/fixtures/cassettes/Ronnie_Client_Users/_activities/Retrieve_user_Activity_Stream/.yml +339 -0
  14. data/spec/fixtures/cassettes/Ronnie_Client_Users/{_user/Retrieve_User → _create_token/create_playback_token_}/.yml +18 -15
  15. data/spec/fixtures/cassettes/Ronnie_Client_Users/_find_user/Find_user_by_e-mail_address_/.yml +64 -0
  16. data/spec/fixtures/cassettes/Ronnie_Client_Users/_follow/{Follow_a_User → Follow_a_user_}/.yml +16 -10
  17. data/spec/fixtures/cassettes/Ronnie_Client_Users/_followers/Retrieve_followers_of_a_user_/.yml +95 -0
  18. data/spec/fixtures/cassettes/Ronnie_Client_Users/_following/Retrieve_users_following_another_user_/.yml +95 -0
  19. data/spec/fixtures/cassettes/Ronnie_Client_Users/_following/Retrieve_users_following_authorized_user_/.yml +156 -0
  20. data/spec/fixtures/cassettes/Ronnie_Client_Users/_follows_/Authorized_user_is_following_a_user_/.yml +156 -0
  21. data/spec/fixtures/cassettes/Ronnie_Client_Users/_heavily_rotated_albums/retrieve_heavily_rotated_albums_/.yml +165 -0
  22. data/spec/fixtures/cassettes/Ronnie_Client_Users/_heavily_rotated_artists/retrieve_heavily_rotated_artists_/.yml +101 -0
  23. data/spec/fixtures/cassettes/Ronnie_Client_Users/_heavy_rotation/Retrieve_the_most_popular_albums_for_a_user_/.yml +160 -0
  24. data/spec/fixtures/cassettes/Ronnie_Client_Users/_heavy_rotation/Retrieve_the_most_popular_albums_for_a_user_s_friends_/.yml +167 -0
  25. data/spec/fixtures/cassettes/Ronnie_Client_Users/_heavy_rotation/Retrieve_the_most_popular_albums_for_everyone_/.yml +165 -0
  26. data/spec/fixtures/cassettes/Ronnie_Client_Users/_heavy_rotation/Retrieve_the_most_popular_artists_for_a_user_/.yml +102 -0
  27. data/spec/fixtures/cassettes/Ronnie_Client_Users/_heavy_rotation/Retrieve_the_most_popular_artists_for_a_user_s_friends_/.yml +165 -0
  28. data/spec/fixtures/cassettes/Ronnie_Client_Users/_heavy_rotation/Retrieve_the_most_popular_artists_for_everyone_/.yml +165 -0
  29. data/spec/fixtures/cassettes/Ronnie_Client_Users/_new_releases/Retrieve_new_releases_/.yml +274 -0
  30. data/spec/fixtures/cassettes/Ronnie_Client_Users/_search_users/Search_users_/.yml +66 -0
  31. data/spec/fixtures/cassettes/Ronnie_Client_Users/_top_albums/retrieve_the_site-wide_most_popular_albums_/.yml +265 -0
  32. data/spec/fixtures/cassettes/Ronnie_Client_Users/_top_artists/retrieve_the_site-wide_most_popular_artists_/.yml +141 -0
  33. data/spec/fixtures/cassettes/Ronnie_Client_Users/_top_playlists/retrieve_the_site-wide_most_popular_playlists_/.yml +184 -0
  34. data/spec/fixtures/cassettes/Ronnie_Client_Users/_top_tracks/retrieve_the_site-wide_most_popular_tracks_/.yml +255 -0
  35. data/spec/fixtures/cassettes/Ronnie_Client_Users/_unfollow/{Unfollow_a_User → Unfollow_a_user_}/.yml +15 -9
  36. data/spec/fixtures/cassettes/Ronnie_Client_Users/{_followers/Retrieve_Followers_of_a_User → _user/Retrieve_authorized_user_}/.yml +21 -15
  37. data/spec/fixtures/cassettes/Ronnie_Client_Users/_user/Retrieve_user_/.yml +64 -0
  38. data/spec/ronnie/client/activities_spec.rb +32 -0
  39. data/spec/ronnie/client/albums_spec.rb +26 -2
  40. data/spec/ronnie/client/artists_spec.rb +17 -1
  41. data/spec/ronnie/client/collections_spec.rb +1 -1
  42. data/spec/ronnie/client/playlists_spec.rb +9 -1
  43. data/spec/ronnie/client/tokens_spec.rb +22 -0
  44. data/spec/ronnie/client/tracks_spec.rb +10 -2
  45. data/spec/ronnie/client/users_spec.rb +17 -17
  46. metadata +63 -10
@@ -0,0 +1,165 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.rdio.com/1/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: method=getHeavyRotation&type=albums&friends=false
9
+ headers:
10
+ Authorization:
11
+ - OAuth oauth_consumer_key="ub9ebmvf7aee3pxcms9e5mh3", oauth_nonce="2e358306301d3200cf796f38dea84d8b",
12
+ oauth_signature="sKqnnuqhHmzT%2FXgjpUO6gU1XpIk%3D", oauth_signature_method="HMAC-SHA1",
13
+ oauth_timestamp="1351730099", oauth_token="ute6gf7jk4y5734hx42uxspfnhdkt42qt8habah6tkyvx4ay2xvhpt5faa2ddqc6",
14
+ oauth_version="1.0"
15
+ Content-Type:
16
+ - application/x-www-form-urlencoded
17
+ Accept:
18
+ - ! '*/*'
19
+ User-Agent:
20
+ - Ruby
21
+ response:
22
+ status:
23
+ code: 200
24
+ message: OK
25
+ headers:
26
+ X-Mashery-Responder:
27
+ - mashery-web3-lax.mashery.com
28
+ Content-Type:
29
+ - application/json
30
+ Vary:
31
+ - Accept-Encoding
32
+ - Accept-Language, Cookie
33
+ Content-Language:
34
+ - en
35
+ Cache-Control:
36
+ - no-cache
37
+ Access-Control-Allow-Origin:
38
+ - ! '*'
39
+ X-Version:
40
+ - '720'
41
+ Accept-Ranges:
42
+ - bytes
43
+ Date:
44
+ - Thu, 01 Nov 2012 00:34:57 GMT
45
+ Server:
46
+ - Mashery Proxy
47
+ Content-Length:
48
+ - '8641'
49
+ X-Cache:
50
+ - MISS from 172.19.134.2
51
+ X-Cache-Lookup:
52
+ - MISS from 172.19.134.2:3128
53
+ Via:
54
+ - 1.0 172.19.134.2:3128 (squid/2.6.STABLE14)
55
+ Connection:
56
+ - close
57
+ body:
58
+ encoding: US-ASCII
59
+ string: ! '{"status": "ok", "result": [{"baseIcon": "album/0/b/f/00000000001eafb0/4/square-200.jpg",
60
+ "releaseDate": "2012-10-22", "artistUrl": "/artist/Kendrick_Lamar/", "duration":
61
+ 4983, "isClean": false, "shortUrl": "http://rd.io/x/QV76fCJB_fE", "canStream":
62
+ true, "embedUrl": "https://rd.io/e/QV76fCJB_fE", "type": "a", "price": "12.99",
63
+ "key": "a2011056", "icon": "http://cdn3.rd.io/album/0/b/f/00000000001eafb0/4/square-200.jpg",
64
+ "canSample": true, "hits": 185279, "name": "good kid, m.A.A.d city (Deluxe)",
65
+ "isExplicit": true, "artist": "Kendrick Lamar", "url": "/artist/Kendrick_Lamar/album/good_kid%2C_m.A.A.d_city_(Deluxe)/",
66
+ "artistKey": "r619646", "length": 15, "trackKeys": ["t21652258", "t21652263",
67
+ "t21652273", "t21652278", "t21652285", "t21652296", "t21652304", "t21652310",
68
+ "t21652320", "t21652326", "t21652338", "t21652347", "t21652353", "t21652358",
69
+ "t21652363"], "canTether": true, "displayDate": "Oct 22, 2012"}, {"baseIcon":
70
+ "album/1/6/e/00000000001b5e61/4/square-200.jpg", "releaseDate": "2012-08-14",
71
+ "artistUrl": "/artist/2_Chainz/", "duration": 4035, "isClean": false, "shortUrl":
72
+ "http://rd.io/x/QV76fCJEDCA", "canStream": true, "embedUrl": "https://rd.io/e/QV76fCJEDCA",
73
+ "type": "a", "price": "12.99", "key": "a1793633", "icon": "http://cdn3.rd.io/album/1/6/e/00000000001b5e61/4/square-200.jpg",
74
+ "canSample": true, "hits": 100970, "name": "Based On A T.R.U. Story (Deluxe
75
+ Version)", "isExplicit": true, "artist": "2 Chainz", "url": "/artist/2_Chainz/album/Based_On_A_T.R.U._Story_(Deluxe_Version)/",
76
+ "artistKey": "r964657", "length": 17, "trackKeys": ["t19445738", "t19445857",
77
+ "t19445939", "t19446007", "t19446080", "t19446179", "t19446257", "t19446347",
78
+ "t19446442", "t19446544", "t19446651", "t19446735", "t19446818", "t19446903",
79
+ "t19446995", "t19447081", "t19447140"], "canTether": true, "displayDate":
80
+ "Aug 14, 2012"}, {"baseIcon": "album/0/1/c/000000000018ac10/4/square-200.jpg",
81
+ "releaseDate": "2012-06-19", "artistUrl": "/artist/Justin_Bieber/", "duration":
82
+ 3597, "isClean": true, "shortUrl": "http://rd.io/x/QV76fCJH_lE", "canStream":
83
+ true, "embedUrl": "https://rd.io/e/QV76fCJH_lE", "type": "a", "price": "14.99",
84
+ "key": "a1616912", "icon": "http://cdn3.rd.io/album/0/1/c/000000000018ac10/4/square-200.jpg",
85
+ "canSample": true, "hits": 89188, "name": "Believe (Deluxe Edition)", "isExplicit":
86
+ false, "artist": "Justin Bieber", "url": "/artist/Justin_Bieber/album/Believe_(Deluxe_Edition)/",
87
+ "artistKey": "r184130", "length": 16, "trackKeys": ["t17846071", "t17846074",
88
+ "t17846076", "t17846078", "t17846080", "t17846082", "t17846084", "t17846086",
89
+ "t17846089", "t17846091", "t17846095", "t17846098", "t17846100", "t17846103",
90
+ "t17846104", "t17846105"], "canTether": true, "displayDate": "Jun 19, 2012"},
91
+ {"baseIcon": "album/4/1/0/00000000001d9014/2/square-200.jpg", "releaseDate":
92
+ "2012-09-25", "artistUrl": "/artist/Mumford__Sons/", "duration": 3811, "isClean":
93
+ false, "shortUrl": "http://rd.io/x/QV76fCJCwlU", "canStream": true, "embedUrl":
94
+ "https://rd.io/e/QV76fCJCwlU", "type": "a", "price": "14.99", "key": "a1937428",
95
+ "icon": "http://cdn3.rd.io/album/4/1/0/00000000001d9014/2/square-200.jpg",
96
+ "canSample": true, "hits": 84046, "name": "Babel (Deluxe Edition)", "isExplicit":
97
+ false, "artist": "Mumford & Sons", "url": "/artist/Mumford__Sons/album/Babel_(Deluxe_Edition)/",
98
+ "artistKey": "r271514", "length": 15, "trackKeys": ["t20892966", "t20892970",
99
+ "t20892975", "t20892980", "t20892983", "t20892989", "t20892993", "t20892995",
100
+ "t20892998", "t20893001", "t20893003", "t20893007", "t20893010", "t20893012",
101
+ "t20893015"], "canTether": true, "displayDate": "Sep 25, 2012"}, {"baseIcon":
102
+ "album/9/5/7/000000000019b759/2/square-200.jpg", "releaseDate": "2012-06-29",
103
+ "artistUrl": "/artist/Chris_Brown/", "duration": 3285, "isClean": false, "shortUrl":
104
+ "http://rd.io/x/QV76fCJG5Rg", "canStream": true, "embedUrl": "https://rd.io/e/QV76fCJG5Rg",
105
+ "type": "a", "price": "9.99", "key": "a1685337", "icon": "http://cdn3.rd.io/album/9/5/7/000000000019b759/2/square-200.jpg",
106
+ "canSample": true, "hits": 80044, "name": "Fortune", "isExplicit": true, "artist":
107
+ "Chris Brown", "url": "/artist/Chris_Brown/album/Fortune/", "artistKey": "r37970",
108
+ "length": 14, "trackKeys": ["t18427870", "t18427871", "t18427872", "t18427873",
109
+ "t18427874", "t18427875", "t18427876", "t18427877", "t18427878", "t18427879",
110
+ "t18427880", "t18427881", "t18427883", "t18427884"], "canTether": true, "displayDate":
111
+ "Jun 29, 2012"}, {"baseIcon": "album/9/e/c/00000000001dfce9/3/square-200.jpg",
112
+ "releaseDate": "2012-10-09", "artistUrl": "/artist/Ellie_Goulding/", "duration":
113
+ 2811, "isClean": true, "shortUrl": "http://rd.io/x/QV76fCJCrqg", "canStream":
114
+ true, "embedUrl": "https://rd.io/e/QV76fCJCrqg", "type": "a", "price": "None",
115
+ "key": "a1965289", "icon": "http://cdn3.rd.io/album/9/e/c/00000000001dfce9/3/square-200.jpg",
116
+ "canSample": true, "hits": 79364, "name": "Halcyon", "isExplicit": false,
117
+ "artist": "Ellie Goulding", "url": "/artist/Ellie_Goulding/album/Halcyon_1/",
118
+ "artistKey": "r261510", "length": 12, "trackKeys": ["t21183028", "t21183095",
119
+ "t21183166", "t21183248", "t21183313", "t21183372", "t21183449", "t21183515",
120
+ "t21183576", "t21183661", "t21183725", "t21183794"], "canTether": true, "displayDate":
121
+ "Oct 9, 2012"}, {"baseIcon": "album/e/8/f/00000000001a8f8e/4/square-200.jpg",
122
+ "releaseDate": "2012-07-17", "artistUrl": "/artist/Frank_Ocean/", "duration":
123
+ 3349, "isClean": false, "shortUrl": "http://rd.io/x/QV76fCJF3c8", "canStream":
124
+ true, "embedUrl": "https://rd.io/e/QV76fCJF3c8", "type": "a", "price": "11.99",
125
+ "key": "a1740686", "icon": "http://cdn3.rd.io/album/e/8/f/00000000001a8f8e/4/square-200.jpg",
126
+ "canSample": true, "hits": 78485, "name": "channel ORANGE", "isExplicit":
127
+ true, "artist": "Frank Ocean", "url": "/artist/Frank_Ocean/album/channel_ORANGE_1/",
128
+ "artistKey": "r1009235", "length": 17, "trackKeys": ["t18937884", "t18937885",
129
+ "t18937886", "t18937887", "t18937888", "t18937889", "t18937890", "t18937891",
130
+ "t18937892", "t18937893", "t18937894", "t18937895", "t18937896", "t18937897",
131
+ "t18937898", "t18937899", "t18937900"], "canTether": true, "displayDate":
132
+ "Jul 17, 2012"}, {"baseIcon": "album/d/d/5/00000000001e25dd/1/square-200.jpg",
133
+ "releaseDate": "2012-10-09", "artistUrl": "/artist/Macklemore__Ryan_Lewis/",
134
+ "duration": 3848, "isClean": false, "shortUrl": "http://rd.io/x/QV76fCJBd5w",
135
+ "canStream": true, "embedUrl": "https://rd.io/e/QV76fCJBd5w", "type": "a",
136
+ "price": "9.99", "key": "a1975773", "icon": "http://cdn3.rd.io/album/d/d/5/00000000001e25dd/1/square-200.jpg",
137
+ "canSample": true, "hits": 71770, "name": "The Heist", "isExplicit": true,
138
+ "artist": "Macklemore & Ryan Lewis", "url": "/artist/Macklemore__Ryan_Lewis/album/The_Heist_1/",
139
+ "artistKey": "r1314092", "length": 15, "trackKeys": ["t21288443", "t21288505",
140
+ "t21288563", "t21288607", "t21288654", "t21288699", "t21288732", "t21288772",
141
+ "t21288815", "t21288852", "t21288884", "t21288948", "t21288997", "t21289048",
142
+ "t21289098"], "canTether": true, "displayDate": "Oct 9, 2012"}, {"baseIcon":
143
+ "album/1/c/e/0000000000114ec1/square-200.jpg", "releaseDate": "2011-10-24",
144
+ "artistUrl": "/artist/Drake/", "duration": 4816, "isClean": false, "shortUrl":
145
+ "http://rd.io/x/QV76fCJOHIA", "canStream": true, "embedUrl": "https://rd.io/e/QV76fCJOHIA",
146
+ "type": "a", "price": "None", "key": "a1134273", "icon": "http://cdn3.rd.io/album/1/c/e/0000000000114ec1/square-200.jpg",
147
+ "canSample": true, "hits": 71741, "name": "Take Care (Deluxe Version)", "isExplicit":
148
+ true, "artist": "Drake", "url": "/artist/Drake/album/Take_Care_(Deluxe_Version)/",
149
+ "artistKey": "r188975", "length": 18, "trackKeys": ["t13007074", "t13007075",
150
+ "t13007076", "t13007077", "t13007078", "t13007079", "t13007081", "t13007082",
151
+ "t13007083", "t13007084", "t13007085", "t13007086", "t13007087", "t13007089",
152
+ "t13007092", "t13007095", "t13007097", "t13007099"], "canTether": true, "displayDate":
153
+ "Oct 24, 2011"}, {"baseIcon": "album/f/0/b/0000000000152b0f/7/square-200.jpg",
154
+ "releaseDate": "2012-02-14", "artistUrl": "/artist/fun./", "duration": 2749,
155
+ "isClean": false, "shortUrl": "http://rd.io/x/QV76fCJKeU4", "canStream": true,
156
+ "embedUrl": "https://rd.io/e/QV76fCJKeU4", "type": "a", "price": "9.99", "key":
157
+ "a1387279", "icon": "http://cdn3.rd.io/album/f/0/b/0000000000152b0f/7/square-200.jpg",
158
+ "canSample": true, "hits": 66937, "name": "Some Nights", "isExplicit": false,
159
+ "artist": "fun.", "url": "/artist/fun./album/Some_Nights/", "artistKey": "r500780",
160
+ "length": 11, "trackKeys": ["t15625844", "t15625863", "t15625903", "t15625941",
161
+ "t15625983", "t15626015", "t15626055", "t15626080", "t15626114", "t15626145",
162
+ "t15626197"], "canTether": true, "displayDate": "Feb 14, 2012"}]}'
163
+ http_version:
164
+ recorded_at: Thu, 01 Nov 2012 00:35:00 GMT
165
+ recorded_with: VCR 2.2.5
@@ -0,0 +1,274 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.rdio.com/1/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: method=getNewReleases
9
+ headers:
10
+ Authorization:
11
+ - OAuth oauth_consumer_key="ub9ebmvf7aee3pxcms9e5mh3", oauth_nonce="1ca17b25d8742aebcae9a80ef8128c27",
12
+ oauth_signature="QlHTuwkMdQIa%2FhZF46f118P4d1k%3D", oauth_signature_method="HMAC-SHA1",
13
+ oauth_timestamp="1351730456", oauth_token="ute6gf7jk4y5734hx42uxspfnhdkt42qt8habah6tkyvx4ay2xvhpt5faa2ddqc6",
14
+ oauth_version="1.0"
15
+ Content-Type:
16
+ - application/x-www-form-urlencoded
17
+ Accept:
18
+ - ! '*/*'
19
+ User-Agent:
20
+ - Ruby
21
+ response:
22
+ status:
23
+ code: 200
24
+ message: OK
25
+ headers:
26
+ X-Mashery-Responder:
27
+ - mashery-web1-lax.mashery.com
28
+ Content-Type:
29
+ - application/json
30
+ Vary:
31
+ - Accept-Encoding
32
+ - Accept-Language, Cookie
33
+ Content-Language:
34
+ - en
35
+ Cache-Control:
36
+ - no-cache
37
+ Access-Control-Allow-Origin:
38
+ - ! '*'
39
+ X-Version:
40
+ - '720'
41
+ Accept-Ranges:
42
+ - bytes
43
+ Date:
44
+ - Thu, 01 Nov 2012 00:40:54 GMT
45
+ Server:
46
+ - Mashery Proxy
47
+ Content-Length:
48
+ - '17372'
49
+ X-Cache:
50
+ - MISS from 172.19.134.2
51
+ X-Cache-Lookup:
52
+ - MISS from 172.19.134.2:3128
53
+ Via:
54
+ - 1.0 172.19.134.2:3128 (squid/2.6.STABLE14)
55
+ Connection:
56
+ - close
57
+ body:
58
+ encoding: US-ASCII
59
+ string: ! '{"status": "ok", "result": [{"baseIcon": "album/1/6/f/00000000001eef61/4/square-200.jpg",
60
+ "releaseDate": "2012-10-30", "artistUrl": "/artist/Calvin_Harris/", "duration":
61
+ 2982, "isClean": false, "shortUrl": "http://rd.io/x/QV76fCJBvSA", "canStream":
62
+ true, "embedUrl": "https://rd.io/e/QV76fCJBvSA", "type": "a", "price": "9.99",
63
+ "key": "a2027361", "icon": "http://cdn3.rd.io/album/1/6/f/00000000001eef61/4/square-200.jpg",
64
+ "canSample": true, "name": "18 Months", "isExplicit": true, "artist": "Calvin
65
+ Harris", "url": "/artist/Calvin_Harris/album/18_Months/", "artistKey": "r88543",
66
+ "length": 15, "trackKeys": ["t21817730", "t21817737", "t21817759", "t21817775",
67
+ "t21817793", "t21817821", "t21817834", "t21817855", "t21817881", "t21817909",
68
+ "t21817936", "t21817952", "t21817973", "t21817999", "t21818024"], "canTether":
69
+ true, "displayDate": "Oct 30, 2012"}, {"baseIcon": "album/8/7/6/00000000001f1678/4/square-200.jpg",
70
+ "releaseDate": "2012-10-30", "artistUrl": "/artist/Andrew_Bird/", "duration":
71
+ 2118, "isClean": false, "shortUrl": "http://rd.io/x/QV76fCJARDk", "canStream":
72
+ true, "embedUrl": "https://rd.io/e/QV76fCJARDk", "type": "a", "price": "6.99",
73
+ "key": "a2037368", "icon": "http://cdn3.rd.io/album/8/7/6/00000000001f1678/4/square-200.jpg",
74
+ "canSample": true, "name": "Hands Of Glory", "isExplicit": false, "artist":
75
+ "Andrew Bird", "url": "/artist/Andrew_Bird/album/Hands_Of_Glory/", "artistKey":
76
+ "r170683", "length": 8, "trackKeys": ["t21925406", "t21925463", "t21925515",
77
+ "t21925587", "t21925657", "t21925739", "t21925798", "t21925876"], "canTether":
78
+ true, "displayDate": "Oct 30, 2012"}, {"baseIcon": "album/e/0/6/000000000020860e/2/square-200.jpg",
79
+ "releaseDate": "2012-10-30", "artistUrl": "/artist/Calvin_Harris/", "duration":
80
+ 3637, "isClean": false, "shortUrl": "http://rd.io/x/QV76fCJ_1E8", "canStream":
81
+ true, "embedUrl": "https://rd.io/e/QV76fCJ_1E8", "type": "a", "price": "12.99",
82
+ "key": "a2131470", "icon": "http://cdn3.rd.io/album/e/0/6/000000000020860e/2/square-200.jpg",
83
+ "canSample": true, "name": "18 Months", "isExplicit": true, "artist": "Calvin
84
+ Harris", "url": "/artist/Calvin_Harris/album/18_Months_2/", "artistKey": "r88543",
85
+ "length": 17, "trackKeys": ["t22895282", "t22895308", "t22895366", "t22895419",
86
+ "t22895474", "t22895545", "t22895582", "t22895639", "t22895703", "t22895771",
87
+ "t22895834", "t22895867", "t22895918", "t22895977", "t22896031", "t22896100",
88
+ "t22896185"], "canTether": true, "displayDate": "Oct 30, 2012"}, {"baseIcon":
89
+ "album/3/3/4/00000000001f5433/1/square-200.jpg", "releaseDate": "2012-10-26",
90
+ "artistUrl": "/artist/Meek_Mill/", "duration": 3812, "isClean": false, "shortUrl":
91
+ "http://rd.io/x/QV76fCJABnI", "canStream": false, "embedUrl": "https://rd.io/e/QV76fCJABnI",
92
+ "type": "a", "price": "11.99", "key": "a2053171", "icon": "http://cdn3.rd.io/album/3/3/4/00000000001f5433/1/square-200.jpg",
93
+ "canSample": true, "name": "Dreams and Nightmares (Deluxe Version)", "isExplicit":
94
+ true, "artist": "Meek Mill", "url": "/artist/Meek_Mill/album/Dreams_and_Nightmares_(Deluxe_Version)/",
95
+ "artistKey": "r365321", "length": 16, "trackKeys": ["t22090842", "t22090900",
96
+ "t22090965", "t22091008", "t22091068", "t22091131", "t22091200", "t22091275",
97
+ "t22091328", "t22091383", "t22091450", "t22091499", "t22091558", "t22091626",
98
+ "t22091683", "t22091738"], "canTether": false, "displayDate": "Oct 26, 2012"},
99
+ {"baseIcon": "album/0/6/6/00000000001f1660/1/square-200.jpg", "releaseDate":
100
+ "2012-10-30", "artistUrl": "/artist/Andrew_Bird/", "duration": 5732, "isClean":
101
+ false, "shortUrl": "http://rd.io/x/QV76fCJARCE", "canStream": true, "embedUrl":
102
+ "https://rd.io/e/QV76fCJARCE", "type": "a", "price": "17.99", "key": "a2037344",
103
+ "icon": "http://cdn3.rd.io/album/0/6/6/00000000001f1660/1/square-200.jpg",
104
+ "canSample": true, "name": "Break It Yourself / Hands of Glory (Deluxe)",
105
+ "isExplicit": false, "artist": "Andrew Bird", "url": "/artist/Andrew_Bird/album/Break_It_Yourself_/_Hands_of_Glory_(Deluxe)/",
106
+ "artistKey": "r170683", "length": 22, "trackKeys": ["t21925162", "t21925262",
107
+ "t21925276", "t21925362", "t21925449", "t21925519", "t21925604", "t21925682",
108
+ "t21925704", "t21925773", "t21925852", "t21925915", "t21925999", "t21926138",
109
+ "t21926194", "t21926253", "t21926292", "t21926345", "t21926388", "t21926436",
110
+ "t21926472", "t21926519"], "canTether": true, "displayDate": "Oct 30, 2012"},
111
+ {"baseIcon": "album/d/b/f/00000000001f1fbd/3/square-200.jpg", "releaseDate":
112
+ "2012-08-21", "artistUrl": "/artist/Flyleaf/", "duration": 2176, "isClean":
113
+ true, "shortUrl": "http://rd.io/x/QV76fCJATfw", "canStream": true, "embedUrl":
114
+ "https://rd.io/e/QV76fCJATfw", "type": "a", "price": "9.99", "key": "a2039741",
115
+ "icon": "http://cdn3.rd.io/album/d/b/f/00000000001f1fbd/3/square-200.jpg",
116
+ "canSample": true, "name": "New Horizons", "isExplicit": false, "artist":
117
+ "Flyleaf", "url": "/artist/Flyleaf/album/New_Horizons_1/", "artistKey": "r214328",
118
+ "length": 11, "trackKeys": ["t21948373", "t21948392", "t21948418", "t21948431",
119
+ "t21948451", "t21948472", "t21948497", "t21948513", "t21948536", "t21948558",
120
+ "t21948572"], "canTether": true, "displayDate": "Aug 21, 2012"}, {"baseIcon":
121
+ "album/b/8/4/00000000001f548b/3/square-200.jpg", "releaseDate": "2012-10-15",
122
+ "artistUrl": "/artist/Neil_Young__Crazy_Horse/", "duration": 5248, "isClean":
123
+ false, "shortUrl": "http://rd.io/x/QV76fCJABso", "canStream": true, "embedUrl":
124
+ "https://rd.io/e/QV76fCJABso", "type": "a", "price": "10.99", "key": "a2053259",
125
+ "icon": "http://cdn3.rd.io/album/b/8/4/00000000001f548b/3/square-200.jpg",
126
+ "canSample": true, "name": "Psychedelic Pill", "isExplicit": false, "artist":
127
+ "Neil Young & Crazy Horse", "url": "/artist/Neil_Young__Crazy_Horse/album/Psychedelic_Pill/",
128
+ "artistKey": "r393502", "length": 9, "trackKeys": ["t22091841", "t22092393",
129
+ "t22092461", "t22092843", "t22092936", "t22093001", "t22093127", "t22093204",
130
+ "t22093448"], "canTether": true, "displayDate": "Oct 15, 2012"}, {"baseIcon":
131
+ "album/f/6/7/00000000001e476f/4/square-200.jpg", "releaseDate": "2012-10-30",
132
+ "artistUrl": "/artist/Thrice/", "duration": 6181, "isClean": false, "shortUrl":
133
+ "http://rd.io/x/QV76fCJBFS4", "canStream": true, "embedUrl": "https://rd.io/e/QV76fCJBFS4",
134
+ "type": "a", "price": "9.99", "key": "a1984367", "icon": "http://cdn3.rd.io/album/f/6/7/00000000001e476f/4/square-200.jpg",
135
+ "canSample": true, "name": "Anthology", "isExplicit": false, "artist": "Thrice",
136
+ "url": "/artist/Thrice/album/Anthology/", "artistKey": "r163389", "length":
137
+ 24, "trackKeys": ["t21373446", "t21373528", "t21373600", "t21373671", "t21373722",
138
+ "t21373766", "t21373839", "t21373904", "t21373986", "t21374062", "t21374181",
139
+ "t21374265", "t21374353", "t21374435", "t21374532", "t21374578", "t21374647",
140
+ "t21374707", "t21374783", "t21374861", "t21374977", "t21375056", "t21375124",
141
+ "t21375216"], "canTether": true, "displayDate": "Oct 30, 2012"}, {"baseIcon":
142
+ "album/8/0/0/00000000001ea008/1/square-200.jpg", "releaseDate": "2012-10-26",
143
+ "artistUrl": "/artist/dubstep/", "duration": 5073, "isClean": false, "shortUrl":
144
+ "http://rd.io/x/QV76fCJB8kk", "canStream": true, "embedUrl": "https://rd.io/e/QV76fCJB8kk",
145
+ "type": "a", "price": "None", "key": "a2007048", "icon": "http://cdn3.rd.io/album/8/0/0/00000000001ea008/1/square-200.jpg",
146
+ "canSample": true, "name": "Best Of Dubstep 2012", "isExplicit": false, "artist":
147
+ "dubstep", "url": "/artist/dubstep/album/Best_Of_Dubstep_2012/", "artistKey":
148
+ "r760423", "length": 18, "trackKeys": ["t21613151", "t21613288", "t21613354",
149
+ "t21613437", "t21613523", "t21613601", "t21613685", "t21613795", "t21613904",
150
+ "t21614004", "t21614088", "t21614130", "t21614184", "t21614225", "t21614282",
151
+ "t21614339", "t21614402", "t21614478"], "canTether": true, "displayDate":
152
+ "Oct 26, 2012"}, {"baseIcon": "album/0/4/4/00000000001f5440/2/square-200.jpg",
153
+ "releaseDate": "2012-10-26", "artistUrl": "/artist/The_Coup/", "duration":
154
+ 2771, "isClean": false, "shortUrl": "http://rd.io/x/QV76fCJABgE", "canStream":
155
+ true, "embedUrl": "https://rd.io/e/QV76fCJABgE", "type": "a", "price": "9.99",
156
+ "key": "a2053184", "icon": "http://cdn3.rd.io/album/0/4/4/00000000001f5440/2/square-200.jpg",
157
+ "canSample": true, "name": "Sorry To Bother You", "isExplicit": false, "artist":
158
+ "The Coup", "url": "/artist/The_Coup/album/Sorry_To_Bother_You/", "artistKey":
159
+ "r87865", "length": 13, "trackKeys": ["t22090960", "t22091019", "t22091084",
160
+ "t22091127", "t22091204", "t22091263", "t22091335", "t22091406", "t22091523",
161
+ "t22091625", "t22091731", "t22091762", "t22091846"], "canTether": true, "displayDate":
162
+ "Oct 26, 2012"}, {"baseIcon": "album/a/6/e/00000000001fce6a/2/square-200.jpg",
163
+ "releaseDate": "2012-10-30", "artistUrl": "/artist/Toby_Keith/", "duration":
164
+ 1893, "isClean": true, "shortUrl": "http://rd.io/x/QV76fCJAnCs", "canStream":
165
+ true, "embedUrl": "https://rd.io/e/QV76fCJAnCs", "type": "a", "price": "7.99",
166
+ "key": "a2084458", "icon": "http://cdn3.rd.io/album/a/6/e/00000000001fce6a/2/square-200.jpg",
167
+ "canSample": true, "name": "Hope On The Rocks", "isExplicit": false, "artist":
168
+ "Toby Keith", "url": "/artist/Toby_Keith/album/Hope_On_The_Rocks_1/", "artistKey":
169
+ "r68017", "length": 10, "trackKeys": ["t22410468", "t22410475", "t22410492",
170
+ "t22410499", "t22410505", "t22410518", "t22410525", "t22410536", "t22410547",
171
+ "t22410557"], "canTether": true, "displayDate": "Oct 30, 2012"}, {"baseIcon":
172
+ "album/d/9/2/00000000001da29d/2/square-200.jpg", "releaseDate": "2012-10-30",
173
+ "artistUrl": "/artist/Chad_Valley/", "duration": 2562, "isClean": false, "shortUrl":
174
+ "http://rd.io/x/QV76fCJC8Nw", "canStream": true, "embedUrl": "https://rd.io/e/QV76fCJC8Nw",
175
+ "type": "a", "price": "None", "key": "a1942173", "icon": "http://cdn3.rd.io/album/d/9/2/00000000001da29d/2/square-200.jpg",
176
+ "canSample": true, "name": "Young Hunger", "isExplicit": false, "artist":
177
+ "Chad Valley", "url": "/artist/Chad_Valley/album/Young_Hunger/", "artistKey":
178
+ "r691357", "length": 11, "trackKeys": ["t20943575", "t20943586", "t20943599",
179
+ "t20943612", "t20943624", "t20943636", "t20943643", "t20943654", "t20943662",
180
+ "t20943668", "t20943676"], "canTether": true, "displayDate": "Oct 30, 2012"},
181
+ {"baseIcon": "album/e/e/7/00000000001f47ee/1/square-200.jpg", "releaseDate":
182
+ "2012-10-26", "artistUrl": "/artist/Moullinex/", "duration": 3188, "isClean":
183
+ false, "shortUrl": "http://rd.io/x/QV76fCJAFa8", "canStream": true, "embedUrl":
184
+ "https://rd.io/e/QV76fCJAFa8", "type": "a", "price": "9.27", "key": "a2050030",
185
+ "icon": "http://cdn3.rd.io/album/e/e/7/00000000001f47ee/1/square-200.jpg",
186
+ "canSample": true, "name": "Flora", "isExplicit": false, "artist": "Moullinex",
187
+ "url": "/artist/Moullinex/album/Flora/", "artistKey": "r1007316", "length":
188
+ 13, "trackKeys": ["t22058464", "t22058478", "t22058491", "t22058503", "t22058512",
189
+ "t22058524", "t22058537", "t22058548", "t22058561", "t22058569", "t22058580",
190
+ "t22058588", "t22058595"], "canTether": true, "displayDate": "Oct 26, 2012"},
191
+ {"baseIcon": "album/4/0/1/00000000001f2104/9/square-200.jpg", "releaseDate":
192
+ "2012-10-28", "artistUrl": "/artist/Macy_Gray/", "duration": 2350, "isClean":
193
+ true, "shortUrl": "http://rd.io/x/QV76fCJAc0U", "canStream": true, "embedUrl":
194
+ "https://rd.io/e/QV76fCJAc0U", "type": "a", "price": "9.90", "key": "a2040068",
195
+ "icon": "http://cdn3.rd.io/album/4/0/1/00000000001f2104/9/square-200.jpg",
196
+ "canSample": true, "name": "Talking Book", "isExplicit": false, "artist":
197
+ "Macy Gray", "url": "/artist/Macy_Gray/album/Talking_Book/", "artistKey":
198
+ "r214299", "length": 10, "trackKeys": ["t21950827", "t21950863", "t21950919",
199
+ "t21950947", "t21950988", "t21951027", "t21951055", "t21951100", "t21951149",
200
+ "t21951192"], "canTether": true, "displayDate": "Oct 28, 2012"}, {"baseIcon":
201
+ "album/e/5/5/00000000001f255e/5/square-200.jpg", "releaseDate": "2012-10-30",
202
+ "artistUrl": "/artist/Various_Artists/", "duration": 3380, "isClean": true,
203
+ "shortUrl": "http://rd.io/x/QV76fCJAdx8", "canStream": true, "embedUrl": "https://rd.io/e/QV76fCJAdx8",
204
+ "type": "a", "price": "7.99", "key": "a2041182", "icon": "http://cdn3.rd.io/album/e/5/5/00000000001f255e/5/square-200.jpg",
205
+ "canSample": true, "name": "Wreck-It Ralph", "isExplicit": false, "artist":
206
+ "Various Artists", "url": "/artist/Various_Artists/album/Wreck-It_Ralph/",
207
+ "artistKey": "r62", "length": 25, "trackKeys": ["t21963529", "t21963595",
208
+ "t21963659", "t21963721", "t21963762", "t21963874", "t21963933", "t21963969",
209
+ "t21963979", "t21964001", "t21964096", "t21964158", "t21964219", "t21964233",
210
+ "t21964273", "t21964304", "t21964339", "t21964371", "t21964416", "t21964446",
211
+ "t21964482", "t21964532", "t21964589", "t21964655", "t21964734"], "canTether":
212
+ true, "displayDate": "Oct 30, 2012"}, {"baseIcon": "album/2/c/0/00000000001f50c2/2/square-200.jpg",
213
+ "releaseDate": "2012-10-26", "artistUrl": "/artist/Parkway_Drive/", "duration":
214
+ 2880, "isClean": false, "shortUrl": "http://rd.io/x/QV76fCJAAoM", "canStream":
215
+ true, "embedUrl": "https://rd.io/e/QV76fCJAAoM", "type": "a", "price": "9.99",
216
+ "key": "a2052290", "icon": "http://cdn3.rd.io/album/2/c/0/00000000001f50c2/2/square-200.jpg",
217
+ "canSample": true, "name": "Atlas", "isExplicit": false, "artist": "Parkway
218
+ Drive", "url": "/artist/Parkway_Drive/album/Atlas/", "artistKey": "r86848",
219
+ "length": 12, "trackKeys": ["t22084668", "t22084693", "t22084727", "t22084774",
220
+ "t22084828", "t22084870", "t22084926", "t22084966", "t22085016", "t22085067",
221
+ "t22085108", "t22085128"], "canTether": true, "displayDate": "Oct 26, 2012"},
222
+ {"baseIcon": "album/2/9/e/00000000001f8e92/2/square-200.jpg", "releaseDate":
223
+ "2012-10-30", "artistUrl": "/artist/The_Velvet_Underground/", "duration":
224
+ 21054, "isClean": true, "shortUrl": "http://rd.io/x/QV76fCJA3NM", "canStream":
225
+ true, "embedUrl": "https://rd.io/e/QV76fCJA3NM", "type": "a", "price": "29.99",
226
+ "key": "a2068114", "icon": "http://cdn3.rd.io/album/2/9/e/00000000001f8e92/2/square-200.jpg",
227
+ "canSample": true, "name": "The Velvet Underground & Nico 45th Anniversary
228
+ (Super Deluxe Edition)", "isExplicit": false, "artist": "The Velvet Underground",
229
+ "url": "/artist/The_Velvet_Underground/album/The_Velvet_Underground__Nico_45th_Anniversary_(Super_Deluxe_Edition)_1/",
230
+ "artistKey": "r87605", "length": 65, "trackKeys": ["t22240781", "t22240785",
231
+ "t22240805", "t22240812", "t22240823", "t22240846", "t22240862", "t22240875",
232
+ "t22240892", "t22240897", "t22240917", "t22240933", "t22240939", "t22240957",
233
+ "t22240969", "t22240981", "t22240986", "t22240990", "t22240999", "t22241000",
234
+ "t22241019", "t22241024", "t22241032", "t22241051", "t22241053", "t22241057",
235
+ "t22241079", "t22241085", "t22241088", "t22241094", "t22241097", "t22241102",
236
+ "t22241104", "t22241125", "t22241129", "t22241211", "t22241219", "t22241243",
237
+ "t22241247", "t22241256", "t22241261", "t22241266", "t22241284", "t22241299",
238
+ "t22241305", "t22241327", "t22241332", "t22241345", "t22241361", "t22241364",
239
+ "t22241371", "t22241374", "t22241382", "t22241395", "t22241420", "t22241432",
240
+ "t22241436", "t22241505", "t22241507", "t22241526", "t22241547", "t22241552",
241
+ "t22241649", "t22241654", "t22241664"], "canTether": true, "displayDate":
242
+ "Oct 30, 2012"}, {"baseIcon": "album/a/9/2/00000000001da29a/3/square-200.jpg",
243
+ "releaseDate": "2012-10-30", "artistUrl": "/artist/Cody_Chesnutt/", "duration":
244
+ 3191, "isClean": false, "shortUrl": "http://rd.io/x/QV76fCJC8Ns", "canStream":
245
+ true, "embedUrl": "https://rd.io/e/QV76fCJC8Ns", "type": "a", "price": "None",
246
+ "key": "a1942170", "icon": "http://cdn3.rd.io/album/a/9/2/00000000001da29a/3/square-200.jpg",
247
+ "canSample": true, "name": "Landing On A Hundred", "isExplicit": false, "artist":
248
+ "Cody Chesnutt", "url": "/artist/Cody_Chesnutt/album/Landing_On_A_Hundred/",
249
+ "artistKey": "r313067", "length": 12, "trackKeys": ["t20943572", "t20943591",
250
+ "t20943605", "t20943617", "t20943631", "t20943641", "t20943650", "t20943663",
251
+ "t20943670", "t20943677", "t20943688", "t20943692"], "canTether": true, "displayDate":
252
+ "Oct 30, 2012"}, {"baseIcon": "album/8/7/a/00000000001fca78/2/square-200.jpg",
253
+ "releaseDate": "2012-10-30", "artistUrl": "/artist/Sean_Price/", "duration":
254
+ 2461, "isClean": false, "shortUrl": "http://rd.io/x/QV76fCJAmDk", "canStream":
255
+ true, "embedUrl": "https://rd.io/e/QV76fCJAmDk", "type": "a", "price": "9.99",
256
+ "key": "a2083448", "icon": "http://cdn3.rd.io/album/8/7/a/00000000001fca78/2/square-200.jpg",
257
+ "canSample": true, "name": "Mic Tyson", "isExplicit": true, "artist": "Sean
258
+ Price", "url": "/artist/Sean_Price/album/Mic_Tyson/", "artistKey": "r32120",
259
+ "length": 15, "trackKeys": ["t22403947", "t22403966", "t22403995", "t22404024",
260
+ "t22404055", "t22404079", "t22404098", "t22404131", "t22404151", "t22404182",
261
+ "t22404200", "t22404223", "t22404246", "t22404262", "t22404280"], "canTether":
262
+ true, "displayDate": "Oct 30, 2012"}, {"baseIcon": "album/f/5/b/00000000001eeb5f/1/square-200.jpg",
263
+ "releaseDate": "2012-10-30", "artistUrl": "/artist/Photek/", "duration": 3944,
264
+ "isClean": false, "shortUrl": "http://rd.io/x/QV76fCJBuR4", "canStream": true,
265
+ "embedUrl": "https://rd.io/e/QV76fCJBuR4", "type": "a", "price": "9.99", "key":
266
+ "a2026335", "icon": "http://cdn3.rd.io/album/f/5/b/00000000001eeb5f/1/square-200.jpg",
267
+ "canSample": true, "name": "KU:PALM", "isExplicit": false, "artist": "Photek",
268
+ "url": "/artist/Photek/album/KUPALM/", "artistKey": "r232400", "length": 12,
269
+ "trackKeys": ["t21809578", "t21809597", "t21809610", "t21809627", "t21809638",
270
+ "t21809645", "t21809650", "t21809655", "t21809657", "t21809659", "t21809661",
271
+ "t21809663"], "canTether": true, "displayDate": "Oct 30, 2012"}]}'
272
+ http_version:
273
+ recorded_at: Thu, 01 Nov 2012 00:40:57 GMT
274
+ recorded_with: VCR 2.2.5
@@ -0,0 +1,66 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.rdio.com/1/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: method=search&query=Allen+Goodman&types=User
9
+ headers:
10
+ Authorization:
11
+ - OAuth oauth_consumer_key="ub9ebmvf7aee3pxcms9e5mh3", oauth_nonce="5480598589e3b6196bd099aef629a47e",
12
+ oauth_signature="GHSSu5YwL9H6PwZN8L2%2BOhZQ%2FyM%3D", oauth_signature_method="HMAC-SHA1",
13
+ oauth_timestamp="1351729830", oauth_token="ute6gf7jk4y5734hx42uxspfnhdkt42qt8habah6tkyvx4ay2xvhpt5faa2ddqc6",
14
+ oauth_version="1.0"
15
+ Content-Type:
16
+ - application/x-www-form-urlencoded
17
+ Accept:
18
+ - ! '*/*'
19
+ User-Agent:
20
+ - Ruby
21
+ response:
22
+ status:
23
+ code: 200
24
+ message: OK
25
+ headers:
26
+ X-Mashery-Responder:
27
+ - mashery-web2-lax.mashery.com
28
+ Content-Type:
29
+ - application/json
30
+ Content-Language:
31
+ - en
32
+ Vary:
33
+ - Accept-Language, Cookie
34
+ Cache-Control:
35
+ - no-cache
36
+ Access-Control-Allow-Origin:
37
+ - ! '*'
38
+ X-Version:
39
+ - '720'
40
+ Accept-Ranges:
41
+ - bytes
42
+ Date:
43
+ - Thu, 01 Nov 2012 00:30:28 GMT
44
+ Server:
45
+ - Mashery Proxy
46
+ Content-Length:
47
+ - '463'
48
+ X-Cache:
49
+ - MISS from 172.19.134.2
50
+ X-Cache-Lookup:
51
+ - MISS from 172.19.134.2:3128
52
+ Via:
53
+ - 1.0 172.19.134.2:3128 (squid/2.6.STABLE14)
54
+ Connection:
55
+ - close
56
+ body:
57
+ encoding: US-ASCII
58
+ string: ! '{"status": "ok", "result": {"person_count": 1, "track_count": 7,
59
+ "playlist_count": 106, "number_results": 1, "results": [{"firstName": "Allen",
60
+ "baseIcon": "user/3/2/8/000000000001b823/1/square-100.jpg", "gender": "m",
61
+ "url": "/people/allengoodman/", "key": "s112675", "lastName": "Goodman", "libraryVersion":
62
+ 297, "isProtected": false, "type": "s", "icon": "http://cdn3.rd.io/user/3/2/8/000000000001b823/1/square-100.jpg"}],
63
+ "artist_count": 1, "album_count": 1}}'
64
+ http_version:
65
+ recorded_at: Thu, 01 Nov 2012 00:30:30 GMT
66
+ recorded_with: VCR 2.2.5