ronnie 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +22 -0
- data/.rspec +2 -0
- data/.travis.yml +3 -0
- data/Gemfile +3 -0
- data/LICENSE +22 -0
- data/README.md +163 -0
- data/Rakefile +23 -0
- data/lib/faraday/response/raise_dio_error.rb +46 -0
- data/lib/ronnie/authentication.rb +33 -0
- data/lib/ronnie/client/albums.rb +50 -0
- data/lib/ronnie/client/artists.rb +23 -0
- data/lib/ronnie/client/collections/albums.rb +9 -0
- data/lib/ronnie/client/collections/artists.rb +9 -0
- data/lib/ronnie/client/collections.rb +85 -0
- data/lib/ronnie/client/playlists.rb +159 -0
- data/lib/ronnie/client/tracks.rb +32 -0
- data/lib/ronnie/client/users.rb +93 -0
- data/lib/ronnie/client.rb +39 -0
- data/lib/ronnie/configuration.rb +71 -0
- data/lib/ronnie/connection.rb +24 -0
- data/lib/ronnie/error.rb +34 -0
- data/lib/ronnie/request.rb +17 -0
- data/lib/ronnie/version.rb +3 -0
- data/lib/ronnie.rb +27 -0
- data/ronnie.gemspec +35 -0
- data/spec/faraday/response_spec.rb +0 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_add_playlists_to_collection/Add_Playlists_to_Collection/.yml +55 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_add_track_to_playlist/Add_Track_to_Playlist/.yml +61 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_add_tracks_to_collection/Add_Tracks_to_Collection/.yml +55 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_add_tracks_to_playlist/Add_Tracks_to_Playlist/.yml +61 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_album/Retrieve_Album/.yml +64 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_create_playlist/Create_a_Playlist/.yml +61 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_delete_playlist/Delete_a_Playlist/.yml +55 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_disable_collaboration/Disable_Collaboration/.yml +55 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_enable_public_collaboration/Enable_Public_Collaboration/.yml +55 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_enable_restricted_collaboration/Enable_Restricted_Collaboration/.yml +55 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_find_albums_by_artist/Find_Albums_by_Artist/.yml +260 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_find_albums_by_label/Find_Albums_by_Label/.yml +245 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_find_albums_by_upc/Find_Albums_by_UPC/.yml +55 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_find_artists_by_label/Find_Artists_by_Label/.yml +96 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_find_tracks_by_artist/Find_Tracks_by_Artist/.yml +156 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_find_tracks_by_isrc/Find_Tracks_by_ISRC/.yml +145 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_find_user/Find_User_by_E-mail_Address/.yml +58 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_follow/Follow_a_User/.yml +55 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_followers/Retrieve_Followers_of_Authorized_User/.yml +144 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_followers/Retrieve_Followers_of_a_User/.yml +58 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_following/Retrieve_Users_Following_Another_User/.yml +69 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_following/Retrieve_Users_Following_Authorized_User/.yml +144 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_follows_/Authorized_User_is_Following_a_User/.yml +144 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_playlist/Retrieve_Playlist/.yml +61 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_playlists/Retrieve_Playlists_by_Authorized_User/.yml +282 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_playlists/Retrieve_Playlists_by_User/.yml +67 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_playlists/Retrieve_Playlists_by_a_User/.yml +67 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_remove_playlists_from_collection/Remove_Playlists_from_Collection/.yml +55 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_remove_tracks_from_collection/Remove_Tracks_from_Collection/.yml +55 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_remove_tracks_from_playlist/Remove_Tracks_from_Playlist/.yml +61 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_search_albums/Search_Albums/.yml +95 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_search_artists/Search_Artists/.yml +66 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_search_playlists/Search_Playlists/.yml +110 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_search_tracks/Search_Tracks/.yml +65 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_search_users/Search_Users/.yml +64 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_sync_playlists/Sync_Playlists/.yml +55 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_sync_tracks/Sync_Tracks/.yml +55 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_unfollow/Unfollow_a_User/.yml +55 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_unsync_playlists/Unsync_Playlists/.yml +55 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_unsync_tracks/Unsync_Tracks/.yml +55 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_update_playlist/Update_Playlist/.yml +55 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_user/Retrieve_Authorized_User/.yml +58 -0
- data/spec/fixtures/cassettes/Ronnie_Client_Users/_user/Retrieve_User/.yml +58 -0
- data/spec/ronnie/client/albums_spec.rb +52 -0
- data/spec/ronnie/client/artists_spec.rb +28 -0
- data/spec/ronnie/client/collections_spec.rb +76 -0
- data/spec/ronnie/client/playlists_spec.rb +120 -0
- data/spec/ronnie/client/tracks_spec.rb +38 -0
- data/spec/ronnie/client/users_spec.rb +94 -0
- data/spec/ronnie/client_spec.rb +23 -0
- data/spec/ronnie_spec.rb +20 -0
- data/spec/spec_helper.rb +19 -0
- metadata +401 -0
@@ -0,0 +1,144 @@
|
|
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="829c5f0c8944510d55fdac21d0c3acc5",
|
12
|
+
oauth_signature="75nsk%2BhpT76pCJOCSJhFiGZG1Xw%3D", oauth_signature_method="HMAC-SHA1",
|
13
|
+
oauth_timestamp="1350882192", 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
|
+
Connection:
|
31
|
+
- keep-alive
|
32
|
+
Content-Language:
|
33
|
+
- en
|
34
|
+
Vary:
|
35
|
+
- Accept-Language, Cookie
|
36
|
+
Cache-Control:
|
37
|
+
- no-cache
|
38
|
+
Access-Control-Allow-Origin:
|
39
|
+
- ! '*'
|
40
|
+
X-Version:
|
41
|
+
- '720'
|
42
|
+
Accept-Ranges:
|
43
|
+
- bytes
|
44
|
+
Content-Length:
|
45
|
+
- '330'
|
46
|
+
Date:
|
47
|
+
- Mon, 22 Oct 2012 05:03:06 GMT
|
48
|
+
Server:
|
49
|
+
- Mashery Proxy
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ! '{"status": "ok", "result": {"firstName": "Allen", "baseIcon": "user/3/2/8/000000000001b823/1/square-100.jpg",
|
53
|
+
"gender": "m", "url": "/people/allengoodman/", "key": "s112675", "lastName":
|
54
|
+
"Goodman", "libraryVersion": 280, "isProtected": false, "type": "s", "icon":
|
55
|
+
"http://cdn3.rd.io/user/3/2/8/000000000001b823/1/square-100.jpg"}}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Mon, 22 Oct 2012 05:03:12 GMT
|
58
|
+
- request:
|
59
|
+
method: post
|
60
|
+
uri: http://api.rdio.com/1/
|
61
|
+
body:
|
62
|
+
encoding: US-ASCII
|
63
|
+
string: method=userFollowing&user=s112675
|
64
|
+
headers:
|
65
|
+
Authorization:
|
66
|
+
- OAuth oauth_consumer_key="ub9ebmvf7aee3pxcms9e5mh3", oauth_nonce="da61014aa404dd776759a07289feed74",
|
67
|
+
oauth_signature="nwD%2Fg81kx3r9GzrQyKIW0jrQnM4%3D", oauth_signature_method="HMAC-SHA1",
|
68
|
+
oauth_timestamp="1350882192", oauth_token="ute6gf7jk4y5734hx42uxspfnhdkt42qt8habah6tkyvx4ay2xvhpt5faa2ddqc6",
|
69
|
+
oauth_version="1.0"
|
70
|
+
Content-Type:
|
71
|
+
- application/x-www-form-urlencoded
|
72
|
+
Accept:
|
73
|
+
- ! '*/*'
|
74
|
+
User-Agent:
|
75
|
+
- Ruby
|
76
|
+
response:
|
77
|
+
status:
|
78
|
+
code: 200
|
79
|
+
message: OK
|
80
|
+
headers:
|
81
|
+
X-Mashery-Responder:
|
82
|
+
- mashery-web1-lax.mashery.com
|
83
|
+
Content-Type:
|
84
|
+
- application/json
|
85
|
+
Connection:
|
86
|
+
- keep-alive
|
87
|
+
Vary:
|
88
|
+
- Accept-Encoding
|
89
|
+
- Accept-Language, Cookie
|
90
|
+
Content-Language:
|
91
|
+
- en
|
92
|
+
Cache-Control:
|
93
|
+
- no-cache
|
94
|
+
Access-Control-Allow-Origin:
|
95
|
+
- ! '*'
|
96
|
+
X-Version:
|
97
|
+
- '720'
|
98
|
+
Accept-Ranges:
|
99
|
+
- bytes
|
100
|
+
Content-Length:
|
101
|
+
- '3003'
|
102
|
+
Date:
|
103
|
+
- Mon, 22 Oct 2012 05:03:06 GMT
|
104
|
+
Server:
|
105
|
+
- Mashery Proxy
|
106
|
+
body:
|
107
|
+
encoding: US-ASCII
|
108
|
+
string: ! '{"status": "ok", "result": [{"firstName": "Dan", "baseIcon": "user/5/6/7/0000000000000765/square-100.jpg",
|
109
|
+
"gender": "m", "url": "/people/dandean/", "key": "s1893", "lastName": "Dean",
|
110
|
+
"libraryVersion": 1427, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/5/6/7/0000000000000765/square-100.jpg"},
|
111
|
+
{"firstName": "Collin", "baseIcon": "user/a/0/3/000000000011b30a/2/square-100.jpg",
|
112
|
+
"gender": "m", "url": "/people/collin_simple/", "key": "s1159946", "lastName":
|
113
|
+
"Ruffenach", "libraryVersion": 4, "isProtected": true, "type": "s", "icon":
|
114
|
+
"http://cdn3.rd.io/user/a/0/3/000000000011b30a/2/square-100.jpg"}, {"firstName":
|
115
|
+
"Liene", "baseIcon": "user/0/f/5/000000000012e5f0/1/square-100.jpg", "gender":
|
116
|
+
"f", "url": "/people/liene/", "key": "s1238512", "lastName": "Verzemnieks",
|
117
|
+
"libraryVersion": 14, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/0/f/5/000000000012e5f0/1/square-100.jpg"},
|
118
|
+
{"firstName": "paigeS", "baseIcon": "user/b/a/a/0000000000000aab/square-100.jpg",
|
119
|
+
"gender": "f", "url": "/people/paiges/", "key": "s2731", "lastName": ".",
|
120
|
+
"libraryVersion": 21882, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/b/a/a/0000000000000aab/square-100.jpg"},
|
121
|
+
{"firstName": "Roman", "baseIcon": "user/6/c/e/0000000000008ec6/square-100.jpg",
|
122
|
+
"gender": "m", "url": "/people/RomanSofianos/", "key": "s36550", "lastName":
|
123
|
+
"Sofianos", "libraryVersion": 31984, "isProtected": true, "type": "s", "icon":
|
124
|
+
"http://cdn3.rd.io/user/6/c/e/0000000000008ec6/square-100.jpg"}, {"firstName":
|
125
|
+
"Jambalaya", "baseIcon": "user/0/c/2/000000000005b2c0/square-100.jpg", "gender":
|
126
|
+
"m", "url": "/people/enduser/", "key": "s373440", "lastName": "Papaya", "libraryVersion":
|
127
|
+
165, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/0/c/2/000000000005b2c0/square-100.jpg"},
|
128
|
+
{"firstName": "Soren", "baseIcon": "user/1/9/9/0000000000000991/square-100.jpg",
|
129
|
+
"gender": "m", "url": "/people/sorenmacbeth/", "key": "s2449", "lastName":
|
130
|
+
"Macbeth", "libraryVersion": 1703, "isProtected": null, "type": "s", "icon":
|
131
|
+
"http://cdn3.rd.io/user/1/9/9/0000000000000991/square-100.jpg"}, {"firstName":
|
132
|
+
"Mae", "baseIcon": "user/6/c/4/000000000028f4c6/1/square-100.jpg", "gender":
|
133
|
+
"f", "url": "/people/maesaslaw/", "key": "s2684102", "lastName": "Saslaw",
|
134
|
+
"libraryVersion": 14, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/6/c/4/000000000028f4c6/1/square-100.jpg"},
|
135
|
+
{"firstName": "Cameron", "baseIcon": "user/a/d/d/0000000000184dda/2/square-100.jpg",
|
136
|
+
"gender": "m", "url": "/people/ca1-/", "key": "s1592794", "lastName": "Alexander",
|
137
|
+
"libraryVersion": 722, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/a/d/d/0000000000184dda/2/square-100.jpg"},
|
138
|
+
{"firstName": "Matt", "baseIcon": "user/c/e/c/0000000000002cec/4/square-100.jpg",
|
139
|
+
"gender": "m", "url": "/people/mattjcline/", "key": "s11500", "lastName":
|
140
|
+
"Cline", "libraryVersion": 2904, "isProtected": false, "type": "s", "icon":
|
141
|
+
"http://cdn3.rd.io/user/c/e/c/0000000000002cec/4/square-100.jpg"}]}'
|
142
|
+
http_version:
|
143
|
+
recorded_at: Mon, 22 Oct 2012 05:03:12 GMT
|
144
|
+
recorded_with: VCR 2.2.5
|
data/spec/fixtures/cassettes/Ronnie_Client_Users/_follows_/Authorized_User_is_Following_a_User/.yml
ADDED
@@ -0,0 +1,144 @@
|
|
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="0cc3a54afd94af615642750cad628147",
|
12
|
+
oauth_signature="0K5HwLLna87Yv2vWRefgJo9FWRk%3D", oauth_signature_method="HMAC-SHA1",
|
13
|
+
oauth_timestamp="1350882690", 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
|
+
Connection:
|
31
|
+
- keep-alive
|
32
|
+
Content-Language:
|
33
|
+
- en
|
34
|
+
Vary:
|
35
|
+
- Accept-Language, Cookie
|
36
|
+
Cache-Control:
|
37
|
+
- no-cache
|
38
|
+
Access-Control-Allow-Origin:
|
39
|
+
- ! '*'
|
40
|
+
X-Version:
|
41
|
+
- '720'
|
42
|
+
Accept-Ranges:
|
43
|
+
- bytes
|
44
|
+
Content-Length:
|
45
|
+
- '330'
|
46
|
+
Date:
|
47
|
+
- Mon, 22 Oct 2012 05:11:25 GMT
|
48
|
+
Server:
|
49
|
+
- Mashery Proxy
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ! '{"status": "ok", "result": {"firstName": "Allen", "baseIcon": "user/3/2/8/000000000001b823/1/square-100.jpg",
|
53
|
+
"gender": "m", "url": "/people/allengoodman/", "key": "s112675", "lastName":
|
54
|
+
"Goodman", "libraryVersion": 280, "isProtected": false, "type": "s", "icon":
|
55
|
+
"http://cdn3.rd.io/user/3/2/8/000000000001b823/1/square-100.jpg"}}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Mon, 22 Oct 2012 05:11:31 GMT
|
58
|
+
- request:
|
59
|
+
method: post
|
60
|
+
uri: http://api.rdio.com/1/
|
61
|
+
body:
|
62
|
+
encoding: US-ASCII
|
63
|
+
string: method=userFollowing&user=s112675
|
64
|
+
headers:
|
65
|
+
Authorization:
|
66
|
+
- OAuth oauth_consumer_key="ub9ebmvf7aee3pxcms9e5mh3", oauth_nonce="3b6265b9625ad5b5bb2dc9ee7e63651a",
|
67
|
+
oauth_signature="yu85Nc1BgkSVhecrXEBgyYfWnGs%3D", oauth_signature_method="HMAC-SHA1",
|
68
|
+
oauth_timestamp="1350882691", oauth_token="ute6gf7jk4y5734hx42uxspfnhdkt42qt8habah6tkyvx4ay2xvhpt5faa2ddqc6",
|
69
|
+
oauth_version="1.0"
|
70
|
+
Content-Type:
|
71
|
+
- application/x-www-form-urlencoded
|
72
|
+
Accept:
|
73
|
+
- ! '*/*'
|
74
|
+
User-Agent:
|
75
|
+
- Ruby
|
76
|
+
response:
|
77
|
+
status:
|
78
|
+
code: 200
|
79
|
+
message: OK
|
80
|
+
headers:
|
81
|
+
X-Mashery-Responder:
|
82
|
+
- mashery-web3-lax.mashery.com
|
83
|
+
Content-Type:
|
84
|
+
- application/json
|
85
|
+
Connection:
|
86
|
+
- keep-alive
|
87
|
+
Vary:
|
88
|
+
- Accept-Encoding
|
89
|
+
- Accept-Language, Cookie
|
90
|
+
Content-Language:
|
91
|
+
- en
|
92
|
+
Cache-Control:
|
93
|
+
- no-cache
|
94
|
+
Access-Control-Allow-Origin:
|
95
|
+
- ! '*'
|
96
|
+
X-Version:
|
97
|
+
- '720'
|
98
|
+
Accept-Ranges:
|
99
|
+
- bytes
|
100
|
+
Content-Length:
|
101
|
+
- '3003'
|
102
|
+
Date:
|
103
|
+
- Mon, 22 Oct 2012 05:11:26 GMT
|
104
|
+
Server:
|
105
|
+
- Mashery Proxy
|
106
|
+
body:
|
107
|
+
encoding: US-ASCII
|
108
|
+
string: ! '{"status": "ok", "result": [{"firstName": "Dan", "baseIcon": "user/5/6/7/0000000000000765/square-100.jpg",
|
109
|
+
"gender": "m", "url": "/people/dandean/", "key": "s1893", "lastName": "Dean",
|
110
|
+
"libraryVersion": 1427, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/5/6/7/0000000000000765/square-100.jpg"},
|
111
|
+
{"firstName": "Collin", "baseIcon": "user/a/0/3/000000000011b30a/2/square-100.jpg",
|
112
|
+
"gender": "m", "url": "/people/collin_simple/", "key": "s1159946", "lastName":
|
113
|
+
"Ruffenach", "libraryVersion": 4, "isProtected": true, "type": "s", "icon":
|
114
|
+
"http://cdn3.rd.io/user/a/0/3/000000000011b30a/2/square-100.jpg"}, {"firstName":
|
115
|
+
"Liene", "baseIcon": "user/0/f/5/000000000012e5f0/1/square-100.jpg", "gender":
|
116
|
+
"f", "url": "/people/liene/", "key": "s1238512", "lastName": "Verzemnieks",
|
117
|
+
"libraryVersion": 14, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/0/f/5/000000000012e5f0/1/square-100.jpg"},
|
118
|
+
{"firstName": "paigeS", "baseIcon": "user/b/a/a/0000000000000aab/square-100.jpg",
|
119
|
+
"gender": "f", "url": "/people/paiges/", "key": "s2731", "lastName": ".",
|
120
|
+
"libraryVersion": 21882, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/b/a/a/0000000000000aab/square-100.jpg"},
|
121
|
+
{"firstName": "Roman", "baseIcon": "user/6/c/e/0000000000008ec6/square-100.jpg",
|
122
|
+
"gender": "m", "url": "/people/RomanSofianos/", "key": "s36550", "lastName":
|
123
|
+
"Sofianos", "libraryVersion": 31986, "isProtected": true, "type": "s", "icon":
|
124
|
+
"http://cdn3.rd.io/user/6/c/e/0000000000008ec6/square-100.jpg"}, {"firstName":
|
125
|
+
"Jambalaya", "baseIcon": "user/0/c/2/000000000005b2c0/square-100.jpg", "gender":
|
126
|
+
"m", "url": "/people/enduser/", "key": "s373440", "lastName": "Papaya", "libraryVersion":
|
127
|
+
165, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/0/c/2/000000000005b2c0/square-100.jpg"},
|
128
|
+
{"firstName": "Soren", "baseIcon": "user/1/9/9/0000000000000991/square-100.jpg",
|
129
|
+
"gender": "m", "url": "/people/sorenmacbeth/", "key": "s2449", "lastName":
|
130
|
+
"Macbeth", "libraryVersion": 1703, "isProtected": null, "type": "s", "icon":
|
131
|
+
"http://cdn3.rd.io/user/1/9/9/0000000000000991/square-100.jpg"}, {"firstName":
|
132
|
+
"Mae", "baseIcon": "user/6/c/4/000000000028f4c6/1/square-100.jpg", "gender":
|
133
|
+
"f", "url": "/people/maesaslaw/", "key": "s2684102", "lastName": "Saslaw",
|
134
|
+
"libraryVersion": 14, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/6/c/4/000000000028f4c6/1/square-100.jpg"},
|
135
|
+
{"firstName": "Cameron", "baseIcon": "user/a/d/d/0000000000184dda/2/square-100.jpg",
|
136
|
+
"gender": "m", "url": "/people/ca1-/", "key": "s1592794", "lastName": "Alexander",
|
137
|
+
"libraryVersion": 722, "isProtected": null, "type": "s", "icon": "http://cdn3.rd.io/user/a/d/d/0000000000184dda/2/square-100.jpg"},
|
138
|
+
{"firstName": "Matt", "baseIcon": "user/c/e/c/0000000000002cec/4/square-100.jpg",
|
139
|
+
"gender": "m", "url": "/people/mattjcline/", "key": "s11500", "lastName":
|
140
|
+
"Cline", "libraryVersion": 2904, "isProtected": false, "type": "s", "icon":
|
141
|
+
"http://cdn3.rd.io/user/c/e/c/0000000000002cec/4/square-100.jpg"}]}'
|
142
|
+
http_version:
|
143
|
+
recorded_at: Mon, 22 Oct 2012 05:11:31 GMT
|
144
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,61 @@
|
|
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=get&keys=p87188
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- OAuth oauth_consumer_key="ub9ebmvf7aee3pxcms9e5mh3", oauth_nonce="5a1c18d07e2612004eabec9192c86075",
|
12
|
+
oauth_signature="SMFam7i2zoL7pp1sQTMm8uz%2BZWw%3D", oauth_signature_method="HMAC-SHA1",
|
13
|
+
oauth_timestamp="1350885864", 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
|
+
Connection:
|
31
|
+
- keep-alive
|
32
|
+
Content-Language:
|
33
|
+
- en
|
34
|
+
Vary:
|
35
|
+
- Accept-Language, Cookie
|
36
|
+
Cache-Control:
|
37
|
+
- no-cache
|
38
|
+
Access-Control-Allow-Origin:
|
39
|
+
- ! '*'
|
40
|
+
X-Version:
|
41
|
+
- '720'
|
42
|
+
Accept-Ranges:
|
43
|
+
- bytes
|
44
|
+
Content-Length:
|
45
|
+
- '628'
|
46
|
+
Date:
|
47
|
+
- Mon, 22 Oct 2012 06:04:19 GMT
|
48
|
+
Server:
|
49
|
+
- Mashery Proxy
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ! '{"status": "ok", "result": {"p87188": {"key": "p87188", "ownerKey":
|
53
|
+
"s112675", "name": "Families in Torment", "url": "/people/allengoodman/playlists/87188/Families_in_Torment/",
|
54
|
+
"ownerIcon": "user/3/2/8/000000000001b823/1/square-100.jpg", "owner": "Allen
|
55
|
+
Goodman", "lastUpdated": 1343834584.0, "shortUrl": "http://rd.io/x/QV76fDNeBtU",
|
56
|
+
"length": 204, "baseIcon": "album/d/e/9/00000000000179ed/square-200.jpg",
|
57
|
+
"ownerUrl": "/people/allengoodman/", "embedUrl": "https://rd.io/e/QV76fDNeBtU",
|
58
|
+
"type": "p", "icon": "http://m.rdio.com/_is/?aid=92666-4,93410-0,95438-1,96749-0,96873-0,96926-0,98636-0,100018-0,101084-0&w=200&h=200"}}}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Mon, 22 Oct 2012 06:04:25 GMT
|
61
|
+
recorded_with: VCR 2.2.5
|