ronnie 0.7.6 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +28 -134
- data/banner.txt +79 -0
- data/lib/ronnie/client.rb +4 -0
- data/lib/ronnie/client/activities.rb +17 -0
- data/lib/ronnie/client/albums.rb +35 -1
- data/lib/ronnie/client/artists.rb +27 -1
- data/lib/ronnie/client/playlists.rb +8 -0
- data/lib/ronnie/client/tokens.rb +13 -0
- data/lib/ronnie/client/tracks.rb +8 -0
- data/lib/ronnie/version.rb +1 -1
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_activities/Retrieve_everyone_Activity_Stream/.yml +562 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_activities/Retrieve_friends_Activity_Stream/.yml +242 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_activities/Retrieve_user_Activity_Stream/.yml +339 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/{_user/Retrieve_User → _create_token/create_playback_token_}/.yml +18 -15
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_find_user/Find_user_by_e-mail_address_/.yml +64 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_follow/{Follow_a_User → Follow_a_user_}/.yml +16 -10
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_followers/Retrieve_followers_of_a_user_/.yml +95 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_following/Retrieve_users_following_another_user_/.yml +95 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_following/Retrieve_users_following_authorized_user_/.yml +156 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_follows_/Authorized_user_is_following_a_user_/.yml +156 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_heavily_rotated_albums/retrieve_heavily_rotated_albums_/.yml +165 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_heavily_rotated_artists/retrieve_heavily_rotated_artists_/.yml +101 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_heavy_rotation/Retrieve_the_most_popular_albums_for_a_user_/.yml +160 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_heavy_rotation/Retrieve_the_most_popular_albums_for_a_user_s_friends_/.yml +167 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_heavy_rotation/Retrieve_the_most_popular_albums_for_everyone_/.yml +165 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_heavy_rotation/Retrieve_the_most_popular_artists_for_a_user_/.yml +102 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_heavy_rotation/Retrieve_the_most_popular_artists_for_a_user_s_friends_/.yml +165 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_heavy_rotation/Retrieve_the_most_popular_artists_for_everyone_/.yml +165 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_new_releases/Retrieve_new_releases_/.yml +274 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_search_users/Search_users_/.yml +66 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_top_albums/retrieve_the_site-wide_most_popular_albums_/.yml +265 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_top_artists/retrieve_the_site-wide_most_popular_artists_/.yml +141 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_top_playlists/retrieve_the_site-wide_most_popular_playlists_/.yml +184 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_top_tracks/retrieve_the_site-wide_most_popular_tracks_/.yml +255 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_unfollow/{Unfollow_a_User → Unfollow_a_user_}/.yml +15 -9
- data/spec/fixtures/cassettes/Ronnie_Client_Users/{_followers/Retrieve_Followers_of_a_User → _user/Retrieve_authorized_user_}/.yml +21 -15
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_user/Retrieve_user_/.yml +64 -0
- data/spec/ronnie/client/activities_spec.rb +32 -0
- data/spec/ronnie/client/albums_spec.rb +26 -2
- data/spec/ronnie/client/artists_spec.rb +17 -1
- data/spec/ronnie/client/collections_spec.rb +1 -1
- data/spec/ronnie/client/playlists_spec.rb +9 -1
- data/spec/ronnie/client/tokens_spec.rb +22 -0
- data/spec/ronnie/client/tracks_spec.rb +10 -2
- data/spec/ronnie/client/users_spec.rb +17 -17
- metadata +63 -10
@@ -5,12 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://api.rdio.com/1/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string: method=
|
8
|
+
string: method=getPlaybackToken
|
9
9
|
headers:
|
10
10
|
Authorization:
|
11
|
-
- OAuth oauth_consumer_key="ub9ebmvf7aee3pxcms9e5mh3", oauth_nonce="
|
12
|
-
oauth_signature="
|
13
|
-
oauth_timestamp="
|
11
|
+
- OAuth oauth_consumer_key="ub9ebmvf7aee3pxcms9e5mh3", oauth_nonce="385099d594372c26e9a1dffa1b8487ea",
|
12
|
+
oauth_signature="YLaXb0ni%2BhriGyAfch20bjG6N5A%3D", oauth_signature_method="HMAC-SHA1",
|
13
|
+
oauth_timestamp="1351733032", oauth_token="ute6gf7jk4y5734hx42uxspfnhdkt42qt8habah6tkyvx4ay2xvhpt5faa2ddqc6",
|
14
14
|
oauth_version="1.0"
|
15
15
|
Content-Type:
|
16
16
|
- application/x-www-form-urlencoded
|
@@ -24,11 +24,9 @@ http_interactions:
|
|
24
24
|
message: OK
|
25
25
|
headers:
|
26
26
|
X-Mashery-Responder:
|
27
|
-
- mashery-
|
27
|
+
- mashery-web1-lax.mashery.com
|
28
28
|
Content-Type:
|
29
29
|
- application/json
|
30
|
-
Connection:
|
31
|
-
- keep-alive
|
32
30
|
Content-Language:
|
33
31
|
- en
|
34
32
|
Vary:
|
@@ -41,18 +39,23 @@ http_interactions:
|
|
41
39
|
- '720'
|
42
40
|
Accept-Ranges:
|
43
41
|
- bytes
|
44
|
-
Content-Length:
|
45
|
-
- '310'
|
46
42
|
Date:
|
47
|
-
-
|
43
|
+
- Thu, 01 Nov 2012 01:23:50 GMT
|
48
44
|
Server:
|
49
45
|
- Mashery Proxy
|
46
|
+
Content-Length:
|
47
|
+
- '98'
|
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
|
50
56
|
body:
|
51
57
|
encoding: US-ASCII
|
52
|
-
string: ! '{"status": "ok", "result":
|
53
|
-
"user/no-user-image-square.jpg", "gender": "f", "url": "/people/JillSPeters/",
|
54
|
-
"key": "s2913931", "lastName": "Peters", "libraryVersion": 64, "isProtected":
|
55
|
-
null, "type": "s", "icon": "http://cdn3.rd.io/user/no-user-image-square.jpg"}}}'
|
58
|
+
string: ! '{"status": "ok", "result": "GABQkc8mAAG4I3ViOWVibXZmN2FlZTNweGNtczllNW1oM-TndDmU616gSzA7lzmap3M="}'
|
56
59
|
http_version:
|
57
|
-
recorded_at:
|
60
|
+
recorded_at: Thu, 01 Nov 2012 01:23:53 GMT
|
58
61
|
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,64 @@
|
|
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=findUser&email=allen.goodman%40me.com
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- OAuth oauth_consumer_key="ub9ebmvf7aee3pxcms9e5mh3", oauth_nonce="98f253b37a520e1d81797b0838612dcd",
|
12
|
+
oauth_signature="W%2BXEVGzKPLDfYe4UrMhzGbQDN3I%3D", oauth_signature_method="HMAC-SHA1",
|
13
|
+
oauth_timestamp="1351729826", 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
|
+
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:24 GMT
|
44
|
+
Server:
|
45
|
+
- Mashery Proxy
|
46
|
+
Content-Length:
|
47
|
+
- '330'
|
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": {"firstName": "Allen", "baseIcon": "user/3/2/8/000000000001b823/1/square-100.jpg",
|
59
|
+
"gender": "m", "url": "/people/allengoodman/", "key": "s112675", "lastName":
|
60
|
+
"Goodman", "libraryVersion": 297, "isProtected": false, "type": "s", "icon":
|
61
|
+
"http://cdn3.rd.io/user/3/2/8/000000000001b823/1/square-100.jpg"}}'
|
62
|
+
http_version:
|
63
|
+
recorded_at: Thu, 01 Nov 2012 00:30:27 GMT
|
64
|
+
recorded_with: VCR 2.2.5
|
data/spec/fixtures/cassettes/Ronnie_Client_Users/_follow/{Follow_a_User → Follow_a_user_}/.yml
RENAMED
@@ -8,9 +8,9 @@ http_interactions:
|
|
8
8
|
string: method=addFriend&user=s2913931
|
9
9
|
headers:
|
10
10
|
Authorization:
|
11
|
-
- OAuth oauth_consumer_key="ub9ebmvf7aee3pxcms9e5mh3", oauth_nonce="
|
12
|
-
oauth_signature="
|
13
|
-
oauth_timestamp="
|
11
|
+
- OAuth oauth_consumer_key="ub9ebmvf7aee3pxcms9e5mh3", oauth_nonce="d743986c82413943f19d0e598e10701a",
|
12
|
+
oauth_signature="RkLOYJTxrWPbaPdoFoZc%2BbSIwAs%3D", oauth_signature_method="HMAC-SHA1",
|
13
|
+
oauth_timestamp="1351731380", oauth_token="ute6gf7jk4y5734hx42uxspfnhdkt42qt8habah6tkyvx4ay2xvhpt5faa2ddqc6",
|
14
14
|
oauth_version="1.0"
|
15
15
|
Content-Type:
|
16
16
|
- application/x-www-form-urlencoded
|
@@ -24,11 +24,9 @@ http_interactions:
|
|
24
24
|
message: OK
|
25
25
|
headers:
|
26
26
|
X-Mashery-Responder:
|
27
|
-
- mashery-
|
27
|
+
- mashery-web4-lax.mashery.com
|
28
28
|
Content-Type:
|
29
29
|
- application/json
|
30
|
-
Connection:
|
31
|
-
- keep-alive
|
32
30
|
Content-Language:
|
33
31
|
- en
|
34
32
|
Vary:
|
@@ -41,15 +39,23 @@ http_interactions:
|
|
41
39
|
- '720'
|
42
40
|
Accept-Ranges:
|
43
41
|
- bytes
|
44
|
-
Content-Length:
|
45
|
-
- '32'
|
46
42
|
Date:
|
47
|
-
-
|
43
|
+
- Thu, 01 Nov 2012 00:56:18 GMT
|
48
44
|
Server:
|
49
45
|
- Mashery Proxy
|
46
|
+
Content-Length:
|
47
|
+
- '32'
|
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
|
50
56
|
body:
|
51
57
|
encoding: US-ASCII
|
52
58
|
string: ! '{"status": "ok", "result": true}'
|
53
59
|
http_version:
|
54
|
-
recorded_at:
|
60
|
+
recorded_at: Thu, 01 Nov 2012 00:56:22 GMT
|
55
61
|
recorded_with: VCR 2.2.5
|
data/spec/fixtures/cassettes/Ronnie_Client_Users/_followers/Retrieve_followers_of_a_user_/.yml
ADDED
@@ -0,0 +1,95 @@
|
|
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=userFollowers&user=s112675
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- OAuth oauth_consumer_key="ub9ebmvf7aee3pxcms9e5mh3", oauth_nonce="68f8bd1d83926194f51c489536f57c6f",
|
12
|
+
oauth_signature="XRDb9YCjZCBSdz%2BdY4%2Fbj32u41M%3D", oauth_signature_method="HMAC-SHA1",
|
13
|
+
oauth_timestamp="1351731269", 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:54:26 GMT
|
45
|
+
Server:
|
46
|
+
- Mashery Proxy
|
47
|
+
Content-Length:
|
48
|
+
- '2977'
|
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": [{"firstName": "Jill", "baseIcon": "user/no-user-image-square.jpg",
|
60
|
+
"gender": "f", "url": "/people/JillSPeters/", "key": "s2913931", "lastName":
|
61
|
+
"Peters", "libraryVersion": 65, "isProtected": true, "type": "s", "icon":
|
62
|
+
"http://cdn3.rd.io/user/no-user-image-square.jpg"}, {"firstName": "Dan", "baseIcon":
|
63
|
+
"user/5/6/7/0000000000000765/square-100.jpg", "gender": "m", "url": "/people/dandean/",
|
64
|
+
"key": "s1893", "lastName": "Dean", "libraryVersion": 1428, "isProtected":
|
65
|
+
null, "type": "s", "icon": "http://cdn3.rd.io/user/5/6/7/0000000000000765/square-100.jpg"},
|
66
|
+
{"firstName": "Collin", "baseIcon": "user/a/0/3/000000000011b30a/2/square-100.jpg",
|
67
|
+
"gender": "m", "url": "/people/collin_simple/", "key": "s1159946", "lastName":
|
68
|
+
"Ruffenach", "libraryVersion": 6, "isProtected": true, "type": "s", "icon":
|
69
|
+
"http://cdn3.rd.io/user/a/0/3/000000000011b30a/2/square-100.jpg"}, {"firstName":
|
70
|
+
"Liene", "baseIcon": "user/0/f/5/000000000012e5f0/1/square-100.jpg", "gender":
|
71
|
+
"f", "url": "/people/liene/", "key": "s1238512", "lastName": "Verzemnieks",
|
72
|
+
"libraryVersion": 23, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/0/f/5/000000000012e5f0/1/square-100.jpg"},
|
73
|
+
{"firstName": "Soren", "baseIcon": "user/1/9/9/0000000000000991/square-100.jpg",
|
74
|
+
"gender": "m", "url": "/people/sorenmacbeth/", "key": "s2449", "lastName":
|
75
|
+
"Macbeth", "libraryVersion": 1705, "isProtected": null, "type": "s", "icon":
|
76
|
+
"http://cdn3.rd.io/user/1/9/9/0000000000000991/square-100.jpg"}, {"firstName":
|
77
|
+
"Brian", "baseIcon": "user/b/5/9/000000000001095b/square-100.jpg", "gender":
|
78
|
+
"m", "url": "/people/bmerritt/", "key": "s67931", "lastName": "Merritt", "libraryVersion":
|
79
|
+
5381, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/b/5/9/000000000001095b/square-100.jpg"},
|
80
|
+
{"firstName": "Cameron", "baseIcon": "user/a/d/d/0000000000184dda/2/square-100.jpg",
|
81
|
+
"gender": "m", "url": "/people/ca1-/", "key": "s1592794", "lastName": "Alexander",
|
82
|
+
"libraryVersion": 728, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/a/d/d/0000000000184dda/2/square-100.jpg"},
|
83
|
+
{"firstName": "Matt", "baseIcon": "user/c/e/c/0000000000002cec/4/square-100.jpg",
|
84
|
+
"gender": "m", "url": "/people/mattjcline/", "key": "s11500", "lastName":
|
85
|
+
"Cline", "libraryVersion": 2928, "isProtected": false, "type": "s", "icon":
|
86
|
+
"http://cdn3.rd.io/user/c/e/c/0000000000002cec/4/square-100.jpg"}, {"firstName":
|
87
|
+
"Mae", "baseIcon": "user/6/c/4/000000000028f4c6/1/square-100.jpg", "gender":
|
88
|
+
"f", "url": "/people/maesaslaw/", "key": "s2684102", "lastName": "Saslaw",
|
89
|
+
"libraryVersion": 14, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/6/c/4/000000000028f4c6/1/square-100.jpg"},
|
90
|
+
{"firstName": "Will", "baseIcon": "user/e/6/b/0000000000199b6e/1/square-100.jpg",
|
91
|
+
"gender": "m", "url": "/people/lt_kije/", "key": "s1678190", "lastName": "Maier",
|
92
|
+
"libraryVersion": 944, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/e/6/b/0000000000199b6e/1/square-100.jpg"}]}'
|
93
|
+
http_version:
|
94
|
+
recorded_at: Thu, 01 Nov 2012 00:54:29 GMT
|
95
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,95 @@
|
|
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=userFollowing&user=s112675
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- OAuth oauth_consumer_key="ub9ebmvf7aee3pxcms9e5mh3", oauth_nonce="801d7a00c4554496421c6e0e9e3fa1ea",
|
12
|
+
oauth_signature="Pw6NSCcSuIapklgt%2BdSpxa5ntlA%3D", oauth_signature_method="HMAC-SHA1",
|
13
|
+
oauth_timestamp="1351731340", 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:55:37 GMT
|
45
|
+
Server:
|
46
|
+
- Mashery Proxy
|
47
|
+
Content-Length:
|
48
|
+
- '3003'
|
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": [{"firstName": "Dan", "baseIcon": "user/5/6/7/0000000000000765/square-100.jpg",
|
60
|
+
"gender": "m", "url": "/people/dandean/", "key": "s1893", "lastName": "Dean",
|
61
|
+
"libraryVersion": 1428, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/5/6/7/0000000000000765/square-100.jpg"},
|
62
|
+
{"firstName": "Collin", "baseIcon": "user/a/0/3/000000000011b30a/2/square-100.jpg",
|
63
|
+
"gender": "m", "url": "/people/collin_simple/", "key": "s1159946", "lastName":
|
64
|
+
"Ruffenach", "libraryVersion": 6, "isProtected": true, "type": "s", "icon":
|
65
|
+
"http://cdn3.rd.io/user/a/0/3/000000000011b30a/2/square-100.jpg"}, {"firstName":
|
66
|
+
"Liene", "baseIcon": "user/0/f/5/000000000012e5f0/1/square-100.jpg", "gender":
|
67
|
+
"f", "url": "/people/liene/", "key": "s1238512", "lastName": "Verzemnieks",
|
68
|
+
"libraryVersion": 23, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/0/f/5/000000000012e5f0/1/square-100.jpg"},
|
69
|
+
{"firstName": "paigeS", "baseIcon": "user/b/a/a/0000000000000aab/square-100.jpg",
|
70
|
+
"gender": "f", "url": "/people/paiges/", "key": "s2731", "lastName": ".",
|
71
|
+
"libraryVersion": 21902, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/b/a/a/0000000000000aab/square-100.jpg"},
|
72
|
+
{"firstName": "Roman", "baseIcon": "user/6/c/e/0000000000008ec6/square-100.jpg",
|
73
|
+
"gender": "m", "url": "/people/RomanSofianos/", "key": "s36550", "lastName":
|
74
|
+
"Sofianos", "libraryVersion": 32060, "isProtected": true, "type": "s", "icon":
|
75
|
+
"http://cdn3.rd.io/user/6/c/e/0000000000008ec6/square-100.jpg"}, {"firstName":
|
76
|
+
"Jambalaya", "baseIcon": "user/0/c/2/000000000005b2c0/square-100.jpg", "gender":
|
77
|
+
"m", "url": "/people/enduser/", "key": "s373440", "lastName": "Papaya", "libraryVersion":
|
78
|
+
165, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/0/c/2/000000000005b2c0/square-100.jpg"},
|
79
|
+
{"firstName": "Soren", "baseIcon": "user/1/9/9/0000000000000991/square-100.jpg",
|
80
|
+
"gender": "m", "url": "/people/sorenmacbeth/", "key": "s2449", "lastName":
|
81
|
+
"Macbeth", "libraryVersion": 1705, "isProtected": null, "type": "s", "icon":
|
82
|
+
"http://cdn3.rd.io/user/1/9/9/0000000000000991/square-100.jpg"}, {"firstName":
|
83
|
+
"Mae", "baseIcon": "user/6/c/4/000000000028f4c6/1/square-100.jpg", "gender":
|
84
|
+
"f", "url": "/people/maesaslaw/", "key": "s2684102", "lastName": "Saslaw",
|
85
|
+
"libraryVersion": 14, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/6/c/4/000000000028f4c6/1/square-100.jpg"},
|
86
|
+
{"firstName": "Cameron", "baseIcon": "user/a/d/d/0000000000184dda/2/square-100.jpg",
|
87
|
+
"gender": "m", "url": "/people/ca1-/", "key": "s1592794", "lastName": "Alexander",
|
88
|
+
"libraryVersion": 728, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/a/d/d/0000000000184dda/2/square-100.jpg"},
|
89
|
+
{"firstName": "Matt", "baseIcon": "user/c/e/c/0000000000002cec/4/square-100.jpg",
|
90
|
+
"gender": "m", "url": "/people/mattjcline/", "key": "s11500", "lastName":
|
91
|
+
"Cline", "libraryVersion": 2928, "isProtected": false, "type": "s", "icon":
|
92
|
+
"http://cdn3.rd.io/user/c/e/c/0000000000002cec/4/square-100.jpg"}]}'
|
93
|
+
http_version:
|
94
|
+
recorded_at: Thu, 01 Nov 2012 00:55:40 GMT
|
95
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,156 @@
|
|
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=currentUser
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- OAuth oauth_consumer_key="ub9ebmvf7aee3pxcms9e5mh3", oauth_nonce="3d68f5d408abfa9195fb68c9ff6e993a",
|
12
|
+
oauth_signature="ou%2FvE9%2Fjjp6P5V8vmlPDZRbjKck%3D", oauth_signature_method="HMAC-SHA1",
|
13
|
+
oauth_timestamp="1351729828", 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
|
+
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:25 GMT
|
44
|
+
Server:
|
45
|
+
- Mashery Proxy
|
46
|
+
Content-Length:
|
47
|
+
- '330'
|
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": {"firstName": "Allen", "baseIcon": "user/3/2/8/000000000001b823/1/square-100.jpg",
|
59
|
+
"gender": "m", "url": "/people/allengoodman/", "key": "s112675", "lastName":
|
60
|
+
"Goodman", "libraryVersion": 297, "isProtected": false, "type": "s", "icon":
|
61
|
+
"http://cdn3.rd.io/user/3/2/8/000000000001b823/1/square-100.jpg"}}'
|
62
|
+
http_version:
|
63
|
+
recorded_at: Thu, 01 Nov 2012 00:30:28 GMT
|
64
|
+
- request:
|
65
|
+
method: post
|
66
|
+
uri: http://api.rdio.com/1/
|
67
|
+
body:
|
68
|
+
encoding: US-ASCII
|
69
|
+
string: method=userFollowing&user=s112675
|
70
|
+
headers:
|
71
|
+
Authorization:
|
72
|
+
- OAuth oauth_consumer_key="ub9ebmvf7aee3pxcms9e5mh3", oauth_nonce="0636a9680343192a9ab6b21cbe87b9a2",
|
73
|
+
oauth_signature="4VaXDAzZRTYCfbWhULXWDpmYrKY%3D", oauth_signature_method="HMAC-SHA1",
|
74
|
+
oauth_timestamp="1351729828", oauth_token="ute6gf7jk4y5734hx42uxspfnhdkt42qt8habah6tkyvx4ay2xvhpt5faa2ddqc6",
|
75
|
+
oauth_version="1.0"
|
76
|
+
Content-Type:
|
77
|
+
- application/x-www-form-urlencoded
|
78
|
+
Accept:
|
79
|
+
- ! '*/*'
|
80
|
+
User-Agent:
|
81
|
+
- Ruby
|
82
|
+
response:
|
83
|
+
status:
|
84
|
+
code: 200
|
85
|
+
message: OK
|
86
|
+
headers:
|
87
|
+
X-Mashery-Responder:
|
88
|
+
- mashery-web2-lax.mashery.com
|
89
|
+
Content-Type:
|
90
|
+
- application/json
|
91
|
+
Vary:
|
92
|
+
- Accept-Encoding
|
93
|
+
- Accept-Language, Cookie
|
94
|
+
Content-Language:
|
95
|
+
- en
|
96
|
+
Cache-Control:
|
97
|
+
- no-cache
|
98
|
+
Access-Control-Allow-Origin:
|
99
|
+
- ! '*'
|
100
|
+
X-Version:
|
101
|
+
- '720'
|
102
|
+
Accept-Ranges:
|
103
|
+
- bytes
|
104
|
+
Date:
|
105
|
+
- Thu, 01 Nov 2012 00:30:26 GMT
|
106
|
+
Server:
|
107
|
+
- Mashery Proxy
|
108
|
+
Content-Length:
|
109
|
+
- '3003'
|
110
|
+
X-Cache:
|
111
|
+
- MISS from 172.19.134.2
|
112
|
+
X-Cache-Lookup:
|
113
|
+
- MISS from 172.19.134.2:3128
|
114
|
+
Via:
|
115
|
+
- 1.0 172.19.134.2:3128 (squid/2.6.STABLE14)
|
116
|
+
Connection:
|
117
|
+
- close
|
118
|
+
body:
|
119
|
+
encoding: US-ASCII
|
120
|
+
string: ! '{"status": "ok", "result": [{"firstName": "Dan", "baseIcon": "user/5/6/7/0000000000000765/square-100.jpg",
|
121
|
+
"gender": "m", "url": "/people/dandean/", "key": "s1893", "lastName": "Dean",
|
122
|
+
"libraryVersion": 1428, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/5/6/7/0000000000000765/square-100.jpg"},
|
123
|
+
{"firstName": "Collin", "baseIcon": "user/a/0/3/000000000011b30a/2/square-100.jpg",
|
124
|
+
"gender": "m", "url": "/people/collin_simple/", "key": "s1159946", "lastName":
|
125
|
+
"Ruffenach", "libraryVersion": 6, "isProtected": true, "type": "s", "icon":
|
126
|
+
"http://cdn3.rd.io/user/a/0/3/000000000011b30a/2/square-100.jpg"}, {"firstName":
|
127
|
+
"Liene", "baseIcon": "user/0/f/5/000000000012e5f0/1/square-100.jpg", "gender":
|
128
|
+
"f", "url": "/people/liene/", "key": "s1238512", "lastName": "Verzemnieks",
|
129
|
+
"libraryVersion": 23, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/0/f/5/000000000012e5f0/1/square-100.jpg"},
|
130
|
+
{"firstName": "paigeS", "baseIcon": "user/b/a/a/0000000000000aab/square-100.jpg",
|
131
|
+
"gender": "f", "url": "/people/paiges/", "key": "s2731", "lastName": ".",
|
132
|
+
"libraryVersion": 21902, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/b/a/a/0000000000000aab/square-100.jpg"},
|
133
|
+
{"firstName": "Roman", "baseIcon": "user/6/c/e/0000000000008ec6/square-100.jpg",
|
134
|
+
"gender": "m", "url": "/people/RomanSofianos/", "key": "s36550", "lastName":
|
135
|
+
"Sofianos", "libraryVersion": 32060, "isProtected": true, "type": "s", "icon":
|
136
|
+
"http://cdn3.rd.io/user/6/c/e/0000000000008ec6/square-100.jpg"}, {"firstName":
|
137
|
+
"Jambalaya", "baseIcon": "user/0/c/2/000000000005b2c0/square-100.jpg", "gender":
|
138
|
+
"m", "url": "/people/enduser/", "key": "s373440", "lastName": "Papaya", "libraryVersion":
|
139
|
+
165, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/0/c/2/000000000005b2c0/square-100.jpg"},
|
140
|
+
{"firstName": "Soren", "baseIcon": "user/1/9/9/0000000000000991/square-100.jpg",
|
141
|
+
"gender": "m", "url": "/people/sorenmacbeth/", "key": "s2449", "lastName":
|
142
|
+
"Macbeth", "libraryVersion": 1705, "isProtected": null, "type": "s", "icon":
|
143
|
+
"http://cdn3.rd.io/user/1/9/9/0000000000000991/square-100.jpg"}, {"firstName":
|
144
|
+
"Mae", "baseIcon": "user/6/c/4/000000000028f4c6/1/square-100.jpg", "gender":
|
145
|
+
"f", "url": "/people/maesaslaw/", "key": "s2684102", "lastName": "Saslaw",
|
146
|
+
"libraryVersion": 14, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/6/c/4/000000000028f4c6/1/square-100.jpg"},
|
147
|
+
{"firstName": "Cameron", "baseIcon": "user/a/d/d/0000000000184dda/2/square-100.jpg",
|
148
|
+
"gender": "m", "url": "/people/ca1-/", "key": "s1592794", "lastName": "Alexander",
|
149
|
+
"libraryVersion": 728, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/a/d/d/0000000000184dda/2/square-100.jpg"},
|
150
|
+
{"firstName": "Matt", "baseIcon": "user/c/e/c/0000000000002cec/4/square-100.jpg",
|
151
|
+
"gender": "m", "url": "/people/mattjcline/", "key": "s11500", "lastName":
|
152
|
+
"Cline", "libraryVersion": 2928, "isProtected": false, "type": "s", "icon":
|
153
|
+
"http://cdn3.rd.io/user/c/e/c/0000000000002cec/4/square-100.jpg"}]}'
|
154
|
+
http_version:
|
155
|
+
recorded_at: Thu, 01 Nov 2012 00:30:29 GMT
|
156
|
+
recorded_with: VCR 2.2.5
|