songkickr 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/Gemfile +6 -2
  2. data/Gemfile.lock +32 -10
  3. data/README.rdoc +7 -7
  4. data/Rakefile +1 -1
  5. data/VERSION +1 -1
  6. data/bin/autospec +16 -0
  7. data/bin/convert_to_should_syntax +16 -0
  8. data/bin/guard +16 -0
  9. data/bin/htmldiff +16 -0
  10. data/bin/httparty +16 -0
  11. data/bin/jeweler +16 -0
  12. data/bin/ldiff +16 -0
  13. data/bin/rake +16 -0
  14. data/bin/rake2thor +16 -0
  15. data/bin/rg +16 -0
  16. data/bin/ri +16 -0
  17. data/bin/rspec +16 -0
  18. data/bin/thor +16 -0
  19. data/doc/APIError.html +241 -0
  20. data/doc/APIKeyNotSet.html +164 -175
  21. data/doc/LICENSE.html +109 -109
  22. data/doc/README_rdoc.html +120 -117
  23. data/doc/ResourceNotFound.html +203 -0
  24. data/doc/Songkickr/Artist.html +210 -237
  25. data/doc/Songkickr/ArtistResult.html +228 -254
  26. data/doc/Songkickr/ConcertSetlistResult.html +205 -223
  27. data/doc/Songkickr/Event.html +344 -409
  28. data/doc/Songkickr/EventResult.html +226 -252
  29. data/doc/Songkickr/Location.html +210 -237
  30. data/doc/Songkickr/LocationResult.html +229 -255
  31. data/doc/Songkickr/Performance.html +222 -253
  32. data/doc/Songkickr/Remote.html +630 -481
  33. data/doc/Songkickr/Setlist.html +258 -296
  34. data/doc/Songkickr/SetlistItem.html +187 -206
  35. data/doc/Songkickr/Venue.html +205 -232
  36. data/doc/Songkickr.html +204 -271
  37. data/doc/created.rid +16 -16
  38. data/doc/images/add.png +0 -0
  39. data/doc/images/delete.png +0 -0
  40. data/doc/images/tag_blue.png +0 -0
  41. data/doc/images/transparent.png +0 -0
  42. data/doc/index.html +93 -127
  43. data/doc/js/darkfish.js +99 -62
  44. data/doc/js/jquery.js +15 -29
  45. data/doc/js/navigation.js +142 -0
  46. data/doc/js/search.js +94 -0
  47. data/doc/js/search_index.js +1 -0
  48. data/doc/js/searcher.js +228 -0
  49. data/doc/rdoc.css +119 -339
  50. data/doc/table_of_contents.html +185 -0
  51. data/lib/songkickr/artist.rb +3 -3
  52. data/lib/songkickr/remote.rb +36 -13
  53. data/lib/songkickr.rb +16 -2
  54. data/songkickr.gemspec +121 -4
  55. data/test/fixtures/vcr/invalid_api_key.yml +63 -0
  56. data/test/fixtures/vcr/invalid_event_id.yml +33 -0
  57. data/test/fixtures/vcr/invalid_user.yml +32 -0
  58. data/test/fixtures/vcr/invalid_venue_id.yml +33 -0
  59. data/test/fixtures/vcr/valid_event.yml +52 -0
  60. data/test/fixtures/vcr/valid_user.yml +71 -0
  61. data/test/fixtures/vcr/valid_venue.yml +53 -0
  62. data/test/helper.rb +2 -2
  63. data/test/songkickr/test_remote.rb +68 -24
  64. data/test/vcr_helper.rb +7 -0
  65. data/test.rb +2 -2
  66. metadata +626 -40
@@ -0,0 +1,33 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.songkick.com/api/3.0/events/123123123123123123123123.json?apikey=hFYxiInE4DBpH5KL
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 404
13
+ message: Not Found
14
+ headers:
15
+ date:
16
+ - Mon, 20 Aug 2012 17:27:42 GMT
17
+ server:
18
+ - thin 1.2.4 codename Flaming Astroboy
19
+ content-type:
20
+ - application/json
21
+ vary:
22
+ - Accept-Encoding
23
+ connection:
24
+ - close
25
+ transfer-encoding:
26
+ - chunked
27
+ body:
28
+ encoding: US-ASCII
29
+ string: ! '{"resultsPage":{"status":"error","error":{"message":"Resource not
30
+ found"}}}'
31
+ http_version: '1.1'
32
+ recorded_at: Mon, 20 Aug 2012 17:27:42 GMT
33
+ recorded_with: VCR 2.2.4
@@ -0,0 +1,32 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.songkick.com/api/3.0/users/fffffffbbbbbbbbaaaarrrrrrrr/artists/tracked.json?apikey=hFYxiInE4DBpH5KL
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 404
13
+ message: Not Found
14
+ headers:
15
+ date:
16
+ - Mon, 20 Aug 2012 17:27:42 GMT
17
+ server:
18
+ - thin 1.2.4 codename Flaming Astroboy
19
+ content-type:
20
+ - application/json
21
+ vary:
22
+ - Accept-Encoding
23
+ connection:
24
+ - close
25
+ transfer-encoding:
26
+ - chunked
27
+ body:
28
+ encoding: US-ASCII
29
+ string: ! '{"resultsPage":{"status":"error","error":{"message":"User not found"}}}'
30
+ http_version: '1.1'
31
+ recorded_at: Mon, 20 Aug 2012 17:27:42 GMT
32
+ recorded_with: VCR 2.2.4
@@ -0,0 +1,33 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.songkick.com/api/3.0/venues/123123123123123123123123.json?apikey=hFYxiInE4DBpH5KL
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 404
13
+ message: Not Found
14
+ headers:
15
+ date:
16
+ - Mon, 20 Aug 2012 17:27:42 GMT
17
+ server:
18
+ - thin 1.2.4 codename Flaming Astroboy
19
+ content-type:
20
+ - application/json
21
+ vary:
22
+ - Accept-Encoding
23
+ connection:
24
+ - close
25
+ transfer-encoding:
26
+ - chunked
27
+ body:
28
+ encoding: US-ASCII
29
+ string: ! '{"resultsPage":{"status":"error","error":{"message":"Resource not
30
+ found"}}}'
31
+ http_version: '1.1'
32
+ recorded_at: Mon, 20 Aug 2012 17:27:42 GMT
33
+ recorded_with: VCR 2.2.4
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.songkick.com/api/3.0/events/17522.json?apikey=hFYxiInE4DBpH5KL
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ date:
16
+ - Mon, 20 Aug 2012 17:39:30 GMT
17
+ server:
18
+ - thin 1.2.4 codename Flaming Astroboy
19
+ content-type:
20
+ - application/json
21
+ expires:
22
+ - Mon, 20 Aug 2012 18:39:30 GMT
23
+ cache-control:
24
+ - private, max-age=3600
25
+ vary:
26
+ - Accept-Encoding
27
+ connection:
28
+ - close
29
+ transfer-encoding:
30
+ - chunked
31
+ body:
32
+ encoding: US-ASCII
33
+ string: ! '{"resultsPage":{"results":{"event":{"location":{"city":"Chicago,
34
+ IL, US","lng":-87.7137611,"lat":41.9501484},"popularity":0.008473,"uri":"http:\/\/www.songkick.com\/concerts\/17522-bang-bang-at-abbey-pub?utm_source=4791&utm_medium=partner","displayName":"Bang
35
+ Bang with Imperial Teen at Abbey Pub (October 4, 2007)","id":17522,"type":"Concert","start":{"time":"21:00:00","date":"2007-10-04","datetime":"2007-10-04T21:00:00-0600"},"performance":[{"artist":{"uri":"http:\/\/www.songkick.com\/artists\/495332-bang-bang?utm_source=4791&utm_medium=partner","displayName":"Bang
36
+ Bang","id":495332,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:c888d780-565c-4719-ab20-a1da73796228.json","mbid":"c888d780-565c-4719-ab20-a1da73796228"},{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:4f4d6d1e-dd8f-4b4b-a4a5-4a324c7512ec.json","mbid":"4f4d6d1e-dd8f-4b4b-a4a5-4a324c7512ec"},{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:a7f8b3ad-d0e0-4f95-85e1-9e73dd55bd49.json","mbid":"a7f8b3ad-d0e0-4f95-85e1-9e73dd55bd49"},{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:4cba75fd-de31-4a38-aa50-9b1f5bacdd4d.json","mbid":"4cba75fd-de31-4a38-aa50-9b1f5bacdd4d"},{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:a5b03e5e-4eb3-44cd-b0c0-cb93d5acf107.json","mbid":"a5b03e5e-4eb3-44cd-b0c0-cb93d5acf107"}]},"displayName":"Bang
37
+ Bang","billingIndex":1,"id":5768921,"billing":"headline"},{"artist":{"uri":"http:\/\/www.songkick.com\/artists\/397631-imperial-teen?utm_source=4791&utm_medium=partner","displayName":"Imperial
38
+ Teen","id":397631,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:7d478bd2-d228-46a8-8a7c-ef68a61fd339.json","mbid":"7d478bd2-d228-46a8-8a7c-ef68a61fd339"}]},"displayName":"Imperial
39
+ Teen","billingIndex":2,"id":22526,"billing":"support"}],"venue":{"city":{"uri":"http:\/\/www.songkick.com\/metro_areas\/9426-us-chicago?utm_source=4791&utm_medium=partner","displayName":"Chicago","country":{"displayName":"US"},"id":9426,"state":{"displayName":"IL"}},"zip":"60618","uri":"http:\/\/www.songkick.com\/venues\/546756-abbey-pub?utm_source=4791&utm_medium=partner","displayName":"Abbey
40
+ Pub","street":"3420 W. Grace St.","lng":-87.7137611,"id":546756,"website":"http:\/\/www.abbeypub.com","phone":"773
41
+ 478 4408","capacity":550,"description":"Since 1973, The Abbey has been Chicago\u2019s
42
+ home for live music, good food and great times. The Abbey has live music
43
+ most nights, featuring local, regional and national acts from indie rock to
44
+ traditional Irish music. The Abbey serves dinner nightly and brunch on Saturday
45
+ and Sunday featuring Irish and American food. Make a dinner reservation before
46
+ any show and get preferred VIP seating! Watch all major sporting events on
47
+ our 15-foot projector and on 14 flat screens. We feature live international
48
+ sports telecasts (rugby, soccer, Gaelic) as well as all major American sporting
49
+ events.\r\n\r\nCall 773.478.4408 today to make your reservation!","metroArea":{"uri":"http:\/\/www.songkick.com\/metro_areas\/9426-us-chicago?utm_source=4791&utm_medium=partner","displayName":"Chicago","country":{"displayName":"US"},"id":9426,"state":{"displayName":"IL"}},"lat":41.9501484},"status":"ok"}},"status":"ok"}}'
50
+ http_version: '1.1'
51
+ recorded_at: Mon, 20 Aug 2012 17:39:30 GMT
52
+ recorded_with: VCR 2.2.4
@@ -0,0 +1,71 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.songkick.com/api/3.0/users/nigelpurves/artists/tracked.json?apikey=hFYxiInE4DBpH5KL
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ date:
16
+ - Mon, 20 Aug 2012 17:47:21 GMT
17
+ server:
18
+ - thin 1.2.4 codename Flaming Astroboy
19
+ content-type:
20
+ - application/json
21
+ cache-control:
22
+ - private, max-age=600
23
+ expires:
24
+ - Mon, 20 Aug 2012 17:57:21 GMT
25
+ vary:
26
+ - Accept-Encoding
27
+ connection:
28
+ - close
29
+ transfer-encoding:
30
+ - chunked
31
+ body:
32
+ encoding: US-ASCII
33
+ string: ! '{"resultsPage":{"results":{"artist":[{"uri":"http:\/\/www.songkick.com\/artists\/3532791-254?utm_source=4791&utm_medium=partner","displayName":"2:54","id":3532791,"onTourUntil":"2012-11-07","identifier":[]},{"uri":"http:\/\/www.songkick.com\/artists\/2129659-academy-of-london?utm_source=4791&utm_medium=partner","displayName":"Academy
34
+ of London","id":2129659,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:34bbf6b0-19dd-4417-b8b1-90f4fa9a1c34.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:34bbf6b0-19dd-4417-b8b1-90f4fa9a1c34\/calendar.json","mbid":"34bbf6b0-19dd-4417-b8b1-90f4fa9a1c34","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:34bbf6b0-19dd-4417-b8b1-90f4fa9a1c34\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/2874581-active-child?utm_source=4791&utm_medium=partner","displayName":"Active
35
+ Child","id":2874581,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:979437d4-9514-4078-89cd-0b87907ddf86.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:979437d4-9514-4078-89cd-0b87907ddf86\/calendar.json","mbid":"979437d4-9514-4078-89cd-0b87907ddf86","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:979437d4-9514-4078-89cd-0b87907ddf86\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/3065666-admiral-fallow?utm_source=4791&utm_medium=partner","displayName":"Admiral
36
+ Fallow","id":3065666,"onTourUntil":"2012-12-14","identifier":[]},{"uri":"http:\/\/www.songkick.com\/artists\/246395-aeroplane?utm_source=4791&utm_medium=partner","displayName":"Aeroplane","id":246395,"onTourUntil":"2012-10-09","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:118c5949-3023-4262-a646-dda45e02f49d.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:118c5949-3023-4262-a646-dda45e02f49d\/calendar.json","mbid":"118c5949-3023-4262-a646-dda45e02f49d","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:118c5949-3023-4262-a646-dda45e02f49d\/setlists.json"},{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:7afb5bed-29b4-405c-9c09-ab1114a2c3fc.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:7afb5bed-29b4-405c-9c09-ab1114a2c3fc\/calendar.json","mbid":"7afb5bed-29b4-405c-9c09-ab1114a2c3fc","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:7afb5bed-29b4-405c-9c09-ab1114a2c3fc\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/224919-aerosmith?utm_source=4791&utm_medium=partner","displayName":"Aerosmith","id":224919,"onTourUntil":"2012-09-21","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:3d2b98e5-556f-4451-a3ff-c50ea18d57cb.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:3d2b98e5-556f-4451-a3ff-c50ea18d57cb\/calendar.json","mbid":"3d2b98e5-556f-4451-a3ff-c50ea18d57cb","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:3d2b98e5-556f-4451-a3ff-c50ea18d57cb\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/2479031-afrojack?utm_source=4791&utm_medium=partner","displayName":"Afrojack","id":2479031,"onTourUntil":"2013-03-23","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:a3ee920f-4e7f-4993-8aca-4b8538cfaa4a.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:a3ee920f-4e7f-4993-8aca-4b8538cfaa4a\/calendar.json","mbid":"a3ee920f-4e7f-4993-8aca-4b8538cfaa4a","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:a3ee920f-4e7f-4993-8aca-4b8538cfaa4a\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/582621-alex-barck?utm_source=4791&utm_medium=partner","displayName":"Alex
37
+ Barck","id":582621,"onTourUntil":null,"identifier":[]},{"uri":"http:\/\/www.songkick.com\/artists\/208386-alexander-tucker?utm_source=4791&utm_medium=partner","displayName":"Alexander
38
+ Tucker","id":208386,"onTourUntil":"2012-09-01","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:8d3314cc-f970-4de2-b658-198006ab0b48.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:8d3314cc-f970-4de2-b658-198006ab0b48\/calendar.json","mbid":"8d3314cc-f970-4de2-b658-198006ab0b48","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:8d3314cc-f970-4de2-b658-198006ab0b48\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/886112-alpines?utm_source=4791&utm_medium=partner","displayName":"Alpines","id":886112,"onTourUntil":"2012-10-11","identifier":[]},{"uri":"http:\/\/www.songkick.com\/artists\/4555533-altj?utm_source=4791&utm_medium=partner","displayName":"Alt-J","id":4555533,"onTourUntil":"2013-01-19","identifier":[]},{"uri":"http:\/\/www.songkick.com\/artists\/3110801-ameritz?utm_source=4791&utm_medium=partner","displayName":"Ameritz","id":3110801,"onTourUntil":null,"identifier":[]},{"uri":"http:\/\/www.songkick.com\/artists\/272434-andre-previn?utm_source=4791&utm_medium=partner","displayName":"Andre
39
+ Previn","id":272434,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:06538137-47eb-4dd6-bb78-5c8afa1a1885.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:06538137-47eb-4dd6-bb78-5c8afa1a1885\/calendar.json","mbid":"06538137-47eb-4dd6-bb78-5c8afa1a1885","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:06538137-47eb-4dd6-bb78-5c8afa1a1885\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/87034-angus-and-julia-stone?utm_source=4791&utm_medium=partner","displayName":"Angus
40
+ & Julia Stone","id":87034,"onTourUntil":"2012-09-22","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:69837400-8e31-4949-aac2-00b46b4df126.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:69837400-8e31-4949-aac2-00b46b4df126\/calendar.json","mbid":"69837400-8e31-4949-aac2-00b46b4df126","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:69837400-8e31-4949-aac2-00b46b4df126\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/137427-animal-collective?utm_source=4791&utm_medium=partner","displayName":"Animal
41
+ Collective","id":137427,"onTourUntil":"2013-01-28","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:0c751690-c784-4a4f-b1e4-c1de27d47581.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:0c751690-c784-4a4f-b1e4-c1de27d47581\/calendar.json","mbid":"0c751690-c784-4a4f-b1e4-c1de27d47581","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:0c751690-c784-4a4f-b1e4-c1de27d47581\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/2361324-anna-calvi?utm_source=4791&utm_medium=partner","displayName":"Anna
42
+ Calvi","id":2361324,"onTourUntil":"2012-08-31","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:462a9ce0-e1f3-4cbc-a21e-0998003d9386.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:462a9ce0-e1f3-4cbc-a21e-0998003d9386\/calendar.json","mbid":"462a9ce0-e1f3-4cbc-a21e-0998003d9386","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:462a9ce0-e1f3-4cbc-a21e-0998003d9386\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/384310-anton-nel?utm_source=4791&utm_medium=partner","displayName":"Anton
43
+ Nel","id":384310,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:e5fd2bd8-e0e0-47c3-8383-e2dc3ec01098.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:e5fd2bd8-e0e0-47c3-8383-e2dc3ec01098\/calendar.json","mbid":"e5fd2bd8-e0e0-47c3-8383-e2dc3ec01098","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:e5fd2bd8-e0e0-47c3-8383-e2dc3ec01098\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/70582-antony-and-the-johnsons?utm_source=4791&utm_medium=partner","displayName":"Antony
44
+ & The Johnsons","id":70582,"onTourUntil":"2013-03-06","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:90cc2464-234e-4da0-b39b-576f36e633bc.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:90cc2464-234e-4da0-b39b-576f36e633bc\/calendar.json","mbid":"90cc2464-234e-4da0-b39b-576f36e633bc","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:90cc2464-234e-4da0-b39b-576f36e633bc\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/95583-april-march?utm_source=4791&utm_medium=partner","displayName":"April
45
+ March","id":95583,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:e77b7ecf-c417-4124-b255-a3a927bb604e.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:e77b7ecf-c417-4124-b255-a3a927bb604e\/calendar.json","mbid":"e77b7ecf-c417-4124-b255-a3a927bb604e","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:e77b7ecf-c417-4124-b255-a3a927bb604e\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/66758-arcade-fire?utm_source=4791&utm_medium=partner","displayName":"Arcade
46
+ Fire","id":66758,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:52074ba6-e495-4ef3-9bb4-0703888a9f68.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:52074ba6-e495-4ef3-9bb4-0703888a9f68\/calendar.json","mbid":"52074ba6-e495-4ef3-9bb4-0703888a9f68","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:52074ba6-e495-4ef3-9bb4-0703888a9f68\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/520117-arctic-monkeys?utm_source=4791&utm_medium=partner","displayName":"Arctic
47
+ Monkeys","id":520117,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:ada7a83c-e3e1-40f1-93f9-3e73dbc9298a.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:ada7a83c-e3e1-40f1-93f9-3e73dbc9298a\/calendar.json","mbid":"ada7a83c-e3e1-40f1-93f9-3e73dbc9298a","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:ada7a83c-e3e1-40f1-93f9-3e73dbc9298a\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/284114-ariel-pink?utm_source=4791&utm_medium=partner","displayName":"Ariel
48
+ Pink","id":284114,"onTourUntil":"2012-11-14","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:5882e375-503f-4bd2-89b1-967e0bfcb199.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:5882e375-503f-4bd2-89b1-967e0bfcb199\/calendar.json","mbid":"5882e375-503f-4bd2-89b1-967e0bfcb199","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:5882e375-503f-4bd2-89b1-967e0bfcb199\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/205866-ariel-pinks-haunted-graffiti?utm_source=4791&utm_medium=partner","displayName":"Ariel
49
+ Pink''s Haunted Graffiti","id":205866,"onTourUntil":"2012-11-28","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:4ac6c2fd-daad-4c31-b266-017c79d2e9a9.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:4ac6c2fd-daad-4c31-b266-017c79d2e9a9\/calendar.json","mbid":"4ac6c2fd-daad-4c31-b266-017c79d2e9a9","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:4ac6c2fd-daad-4c31-b266-017c79d2e9a9\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/133572-armand-van-helden?utm_source=4791&utm_medium=partner","displayName":"Armand
50
+ Van Helden","id":133572,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:b09b5127-c62e-4bb2-b790-1e4aa18749ed.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:b09b5127-c62e-4bb2-b790-1e4aa18749ed\/calendar.json","mbid":"b09b5127-c62e-4bb2-b790-1e4aa18749ed","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:b09b5127-c62e-4bb2-b790-1e4aa18749ed\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/3678466-austra?utm_source=4791&utm_medium=partner","displayName":"Austra","id":3678466,"onTourUntil":"2012-12-03","identifier":[]},{"uri":"http:\/\/www.songkick.com\/artists\/278452-axwell?utm_source=4791&utm_medium=partner","displayName":"Axwell","id":278452,"onTourUntil":"2012-09-29","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:4539050e-e355-4c39-bdfa-e74cb67ce365.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:4539050e-e355-4c39-bdfa-e74cb67ce365\/calendar.json","mbid":"4539050e-e355-4c39-bdfa-e74cb67ce365","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:4539050e-e355-4c39-bdfa-e74cb67ce365\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/231953-bbc?utm_source=4791&utm_medium=partner","displayName":"B.B.C.","id":231953,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:9cd3f276-cfee-4aef-813f-81a7b779b052.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:9cd3f276-cfee-4aef-813f-81a7b779b052\/calendar.json","mbid":"9cd3f276-cfee-4aef-813f-81a7b779b052","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:9cd3f276-cfee-4aef-813f-81a7b779b052\/setlists.json"},{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:e156312c-face-4d3c-a7c8-c6882a113476.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:e156312c-face-4d3c-a7c8-c6882a113476\/calendar.json","mbid":"e156312c-face-4d3c-a7c8-c6882a113476","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:e156312c-face-4d3c-a7c8-c6882a113476\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/366272-babyshambles?utm_source=4791&utm_medium=partner","displayName":"Babyshambles","id":366272,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:8e1e03fe-ebbc-467a-b541-857144db10fb.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:8e1e03fe-ebbc-467a-b541-857144db10fb\/calendar.json","mbid":"8e1e03fe-ebbc-467a-b541-857144db10fb","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:8e1e03fe-ebbc-467a-b541-857144db10fb\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/326158-badawi?utm_source=4791&utm_medium=partner","displayName":"Badawi","id":326158,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:618fd098-6fe8-45a3-9501-9ff81f8d6662.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:618fd098-6fe8-45a3-9501-9ff81f8d6662\/calendar.json","mbid":"618fd098-6fe8-45a3-9501-9ff81f8d6662","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:618fd098-6fe8-45a3-9501-9ff81f8d6662\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/3220131-balam-acab?utm_source=4791&utm_medium=partner","displayName":"Balam
51
+ Acab","id":3220131,"onTourUntil":"2012-10-17","identifier":[]},{"uri":"http:\/\/www.songkick.com\/artists\/354376-band-of-horses?utm_source=4791&utm_medium=partner","displayName":"Band
52
+ of Horses","id":354376,"onTourUntil":"2013-01-28","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:07b6020a-c539-4d68-aeef-f159f3befc76.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:07b6020a-c539-4d68-aeef-f159f3befc76\/calendar.json","mbid":"07b6020a-c539-4d68-aeef-f159f3befc76","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:07b6020a-c539-4d68-aeef-f159f3befc76\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/595023-banjo-or-freakout?utm_source=4791&utm_medium=partner","displayName":"Banjo
53
+ Or Freakout","id":595023,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:79b4aa91-81ea-4522-80d8-9b28e1869695.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:79b4aa91-81ea-4522-80d8-9b28e1869695\/calendar.json","mbid":"79b4aa91-81ea-4522-80d8-9b28e1869695","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:79b4aa91-81ea-4522-80d8-9b28e1869695\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/44913-basement-jaxx?utm_source=4791&utm_medium=partner","displayName":"Basement
54
+ Jaxx","id":44913,"onTourUntil":"2012-10-13","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:28cbf94d-0700-4095-a188-37e373b069a7.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:28cbf94d-0700-4095-a188-37e373b069a7\/calendar.json","mbid":"28cbf94d-0700-4095-a188-37e373b069a7","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:28cbf94d-0700-4095-a188-37e373b069a7\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/130039-bat-for-lashes?utm_source=4791&utm_medium=partner","displayName":"Bat
55
+ For Lashes","id":130039,"onTourUntil":"2012-12-03","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:10000730-525f-4ed5-aaa8-92888f060f5f.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:10000730-525f-4ed5-aaa8-92888f060f5f\/calendar.json","mbid":"10000730-525f-4ed5-aaa8-92888f060f5f","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:10000730-525f-4ed5-aaa8-92888f060f5f\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/2420306-beach-fossils?utm_source=4791&utm_medium=partner","displayName":"Beach
56
+ Fossils","id":2420306,"onTourUntil":"2012-10-14","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:3df3818e-7984-4c62-bee3-81f95f8c6651.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:3df3818e-7984-4c62-bee3-81f95f8c6651\/calendar.json","mbid":"3df3818e-7984-4c62-bee3-81f95f8c6651","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:3df3818e-7984-4c62-bee3-81f95f8c6651\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/273059-beach-house?utm_source=4791&utm_medium=partner","displayName":"Beach
57
+ House","id":273059,"onTourUntil":"2012-11-19","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:d5cc67b8-1cc4-453b-96e8-44487acdebea.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:d5cc67b8-1cc4-453b-96e8-44487acdebea\/calendar.json","mbid":"d5cc67b8-1cc4-453b-96e8-44487acdebea","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:d5cc67b8-1cc4-453b-96e8-44487acdebea\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/62414-bearsuit?utm_source=4791&utm_medium=partner","displayName":"Bearsuit","id":62414,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:30bb645e-7b3c-412c-8310-a117c5769f5a.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:30bb645e-7b3c-412c-8310-a117c5769f5a\/calendar.json","mbid":"30bb645e-7b3c-412c-8310-a117c5769f5a","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:30bb645e-7b3c-412c-8310-a117c5769f5a\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/3459011-beat-connection?utm_source=4791&utm_medium=partner","displayName":"Beat
58
+ Connection","id":3459011,"onTourUntil":null,"identifier":[]},{"uri":"http:\/\/www.songkick.com\/artists\/2885031-beaty-heart?utm_source=4791&utm_medium=partner","displayName":"Beaty
59
+ Heart","id":2885031,"onTourUntil":null,"identifier":[]},{"uri":"http:\/\/www.songkick.com\/artists\/140046-belle-and-sebastian?utm_source=4791&utm_medium=partner","displayName":"Belle
60
+ and Sebastian","id":140046,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:e5c7b94f-e264-473c-bb0f-37c85d4d5c70.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:e5c7b94f-e264-473c-bb0f-37c85d4d5c70\/calendar.json","mbid":"e5c7b94f-e264-473c-bb0f-37c85d4d5c70","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:e5c7b94f-e264-473c-bb0f-37c85d4d5c70\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/1212276-ben-howard?utm_source=4791&utm_medium=partner","displayName":"Ben
61
+ Howard","id":1212276,"onTourUntil":"2012-12-18","identifier":[]},{"uri":"http:\/\/www.songkick.com\/artists\/3050976-benjamin-francis-leftwich?utm_source=4791&utm_medium=partner","displayName":"Benjamin
62
+ Francis Leftwich","id":3050976,"onTourUntil":"2012-12-19","identifier":[]},{"uri":"http:\/\/www.songkick.com\/artists\/325199-berlin?utm_source=4791&utm_medium=partner","displayName":"Berlin","id":325199,"onTourUntil":"2012-11-30","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:c7cb9a2e-ff57-4bb8-bd2c-83524e18e369.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:c7cb9a2e-ff57-4bb8-bd2c-83524e18e369\/calendar.json","mbid":"c7cb9a2e-ff57-4bb8-bd2c-83524e18e369","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:c7cb9a2e-ff57-4bb8-bd2c-83524e18e369\/setlists.json"},{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:08d94fc8-c9cf-465f-b15f-f3f9378fcbf7.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:08d94fc8-c9cf-465f-b15f-f3f9378fcbf7\/calendar.json","mbid":"08d94fc8-c9cf-465f-b15f-f3f9378fcbf7","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:08d94fc8-c9cf-465f-b15f-f3f9378fcbf7\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/2482266-best-coast?utm_source=4791&utm_medium=partner","displayName":"Best
63
+ Coast","id":2482266,"onTourUntil":"2012-10-20","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:5ab8835e-ac44-4055-9c11-7878199606b5.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:5ab8835e-ac44-4055-9c11-7878199606b5\/calendar.json","mbid":"5ab8835e-ac44-4055-9c11-7878199606b5","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:5ab8835e-ac44-4055-9c11-7878199606b5\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/584089-beth-jeans-houghton?utm_source=4791&utm_medium=partner","displayName":"Beth
64
+ Jeans Houghton","id":584089,"onTourUntil":"2012-10-01","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:ce172f8b-4904-45ad-9a03-a61eacbae676.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:ce172f8b-4904-45ad-9a03-a61eacbae676\/calendar.json","mbid":"ce172f8b-4904-45ad-9a03-a61eacbae676","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:ce172f8b-4904-45ad-9a03-a61eacbae676\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/7903-bette-midler?utm_source=4791&utm_medium=partner","displayName":"Bette
65
+ Midler","id":7903,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:ed333e8b-d18a-49fc-b361-4ec9731dfdba.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:ed333e8b-d18a-49fc-b361-4ec9731dfdba\/calendar.json","mbid":"ed333e8b-d18a-49fc-b361-4ec9731dfdba","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:ed333e8b-d18a-49fc-b361-4ec9731dfdba\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/295965-bill-withers?utm_source=4791&utm_medium=partner","displayName":"Bill
66
+ Withers","id":295965,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:fd1a2d9d-9bb6-44de-83a3-41560658aba9.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:fd1a2d9d-9bb6-44de-83a3-41560658aba9\/calendar.json","mbid":"fd1a2d9d-9bb6-44de-83a3-41560658aba9","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:fd1a2d9d-9bb6-44de-83a3-41560658aba9\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/487395-billie-the-vision-and-the-dancers?utm_source=4791&utm_medium=partner","displayName":"Billie
67
+ The Vision And The Dancers","id":487395,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:18c2200e-0acf-4ef9-95c9-ff797a23214b.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:18c2200e-0acf-4ef9-95c9-ff797a23214b\/calendar.json","mbid":"18c2200e-0acf-4ef9-95c9-ff797a23214b","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:18c2200e-0acf-4ef9-95c9-ff797a23214b\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/347869-billy-idol?utm_source=4791&utm_medium=partner","displayName":"Billy
68
+ Idol","id":347869,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:47c8f88b-987a-4b64-9175-2b1b57809727.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:47c8f88b-987a-4b64-9175-2b1b57809727\/calendar.json","mbid":"47c8f88b-987a-4b64-9175-2b1b57809727","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:47c8f88b-987a-4b64-9175-2b1b57809727\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/492728-bjork?utm_source=4791&utm_medium=partner","displayName":"Bj\u00f6rk","id":492728,"onTourUntil":null,"identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:87c5dedd-371d-4a53-9f7f-80522fb7f3cb.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:87c5dedd-371d-4a53-9f7f-80522fb7f3cb\/calendar.json","mbid":"87c5dedd-371d-4a53-9f7f-80522fb7f3cb","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:87c5dedd-371d-4a53-9f7f-80522fb7f3cb\/setlists.json"}]}]},"totalEntries":601,"perPage":50,"page":1,"status":"ok"}}'
69
+ http_version: '1.1'
70
+ recorded_at: Mon, 20 Aug 2012 17:47:21 GMT
71
+ recorded_with: VCR 2.2.4
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.songkick.com/api/3.0/venues/17522.json?apikey=hFYxiInE4DBpH5KL
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ date:
16
+ - Mon, 20 Aug 2012 17:47:22 GMT
17
+ server:
18
+ - thin 1.2.4 codename Flaming Astroboy
19
+ content-type:
20
+ - application/json
21
+ expires:
22
+ - Mon, 20 Aug 2012 18:47:22 GMT
23
+ cache-control:
24
+ - private, max-age=3600
25
+ vary:
26
+ - Accept-Encoding
27
+ connection:
28
+ - close
29
+ transfer-encoding:
30
+ - chunked
31
+ body:
32
+ encoding: US-ASCII
33
+ string: ! '{"resultsPage":{"results":{"venue":{"city":{"uri":"http:\/\/www.songkick.com\/metro_areas\/24426-uk-london?utm_source=4791&utm_medium=partner","country":{"displayName":"UK"},"displayName":"London","id":24426},"uri":"http:\/\/www.songkick.com\/venues\/17522-o2-academy-brixton?utm_source=4791&utm_medium=partner","zip":"SW9
34
+ 9SL","displayName":"O2 Academy Brixton","id":17522,"street":"211 Stockwell
35
+ Road","lng":-0.1148897,"phone":"020 7771 3000","website":"http:\/\/www.brixton-academy.co.uk\/","capacity":4921,"metroArea":{"uri":"http:\/\/www.songkick.com\/metro_areas\/24426-uk-london?utm_source=4791&utm_medium=partner","country":{"displayName":"UK"},"displayName":"London","id":24426},"description":"Brixton
36
+ Academy is an award winning music venue situated in the heart of Brixton,
37
+ South London. The venue has played host to many notable shows and reunions,
38
+ welcoming a wide variety of artists, from Bob Dylan to Eminem, to the stage.
39
+ It attracts over half a million visitors per year, accommodating over one
40
+ hundred events.\n\nBuilt in 1929, the site started life as one of the four
41
+ state of the art\n Astoria Theaters, screening a variety of motion pictures
42
+ and shows. In 1972 the venue was transformed into a rock venue and re-branded
43
+ as The Sundown Centre. With limited success the venue closed it''s doors in
44
+ 1974 and was not re-opened as a music venue again until 1983, when it became
45
+ The Brixton Academy.\n\nFeaturing a beautiful Art Deco interior, the venue
46
+ is now known as the 02 Academy Brixton, and hosts a diverse range of club
47
+ nights and live performances, as well as seated events. The venue has an upstairs
48
+ balcony as well as the main floor downstairs. There is disabled access and
49
+ facilities, a bar and a cloakroom. Club night events are for over 18s, for
50
+ live music under 14s must be accompanied by an adult.","lat":51.4651204}},"status":"ok"}}'
51
+ http_version: '1.1'
52
+ recorded_at: Mon, 20 Aug 2012 17:47:22 GMT
53
+ recorded_with: VCR 2.2.4
data/test/helper.rb CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'test/unit'
3
3
  require 'shoulda'
4
4
  require 'fakeweb'
5
- require 'redgreen'
5
+ #require 'redgreen'
6
6
  require 'crack'
7
7
 
8
8
  FakeWeb.allow_net_connect = false
@@ -45,4 +45,4 @@ end
45
45
 
46
46
  def stub_delete(url, filename)
47
47
  FakeWeb.register_uri(:delete, songkick_url(url), :body => fixture_file(filename))
48
- end
48
+ end
@@ -1,4 +1,5 @@
1
1
  require 'helper'
2
+ require 'vcr_helper'
2
3
 
3
4
  class TestRemote < Test::Unit::TestCase
4
5
  context "Given a remote with no api key" do
@@ -11,45 +12,88 @@ class TestRemote < Test::Unit::TestCase
11
12
 
12
13
  context "Given an invalid Resource" do
13
14
  setup do
14
- FakeWeb.register_uri(:get, 'http://api.songkick.com/api/3.0/events/123.json?apikey=omgwtfbbq_fake_key', :body => fixture_file('resource_not_found.json'))
15
- FakeWeb.register_uri(:get, 'http://api.songkick.com/api/3.0/venues/123.json?apikey=omgwtfbbq_fake_key', :body => fixture_file('resource_not_found.json'))
16
- @remote = Songkickr::Remote.new 'omgwtfbbq_fake_key'
15
+ @remote = Songkickr::Remote.new api_key
16
+ end
17
+
18
+ should "raise a ResourceNotFound exception when search a songkick event id doesn't exist" do
19
+ VCR.use_cassette('invalid_event_id') do
20
+ assert_raise ResourceNotFound do
21
+ @remote.event(123123123123123123123123)
22
+ end
23
+ end
17
24
  end
18
25
 
19
- should "raise an ResouceNotFound exception when search a songkick event id doesn't exist" do
20
- assert_raise ResouceNotFound do
21
- @remote.event(123)
26
+ should "raise an ResourceNotFound exception when search a songkick venue id doesn't exist" do
27
+ VCR.use_cassette('invalid_venue_id') do
28
+ assert_raise ResourceNotFound do
29
+ @remote.venue(123123123123123123123123)
30
+ end
22
31
  end
23
32
  end
24
33
 
25
- should "raise an ResouceNotFound exception when search a songkick venue id doesn't exist" do
26
- assert_raise ResouceNotFound do
27
- @remote.venue(123)
34
+ should "raise an ResourceNotFound exception when search a user doesn't exist" do
35
+ VCR.use_cassette('invalid_user') do
36
+ assert_raise ResourceNotFound do
37
+ @remote.users_tracked_artists("fffffffbbbbbbbbaaaarrrrrrrr")
38
+ end
28
39
  end
29
40
  end
41
+
30
42
  end
31
43
 
32
- # TODO: Fix this later
33
44
  context "Given a remote with an invalid api key" do
34
45
  setup do
35
- stub_get('http://api.songkick.com/api/3.0/events.json', 'events.json')
36
46
  @remote = Songkickr::Remote.new 'omgwtfbbq_fake_key'
37
47
  end
38
-
48
+
39
49
  should "generate a remote" do
40
50
  assert_not_nil @remote
41
51
  end
42
-
43
- # to make it work it needs:
44
- # 1) registering GET http://api.songkick.com/api/3.0/events.json?apikey=omgwtfbbq_fake_key
45
- # and its variants with fakeweb OR allowing real http connections
46
- # 2) checking that returned json equals fixtures/invalid_api_key.json
47
- #
48
- #should "generate nil results" do
49
- # [{}, ':artist_name => ""', ':artist_name => "Madonna"'].each do |remote_params|
50
- # assert_nil @remote.send(:events, remote_params).results
51
- # end
52
- #end
52
+
53
+ should "raise an API Error when the API key is wrong" do
54
+ VCR.use_cassette('invalid_api_key') do
55
+ assert_raise APIError do
56
+ @remote.event(17522)
57
+ end
58
+ end
59
+ end
60
+
53
61
  end
54
-
62
+
63
+
64
+ context "Given a valid resource" do
65
+ setup do
66
+ @remote = Songkickr::Remote.new api_key
67
+ end
68
+
69
+ should "return the correct event for an existing event id " do
70
+ VCR.use_cassette('valid_event') do
71
+ result = @remote.event(17522)
72
+ assert_equal 17522, result.id
73
+ end
74
+ end
75
+
76
+
77
+ should "return the correct venue for a given venue id " do
78
+ VCR.use_cassette('valid_venue') do
79
+ result = @remote.venue(17522)
80
+ assert_equal 17522, result.id
81
+ end
82
+ end
83
+
84
+ should "return the correct tracked artists for an existing user" do
85
+ VCR.use_cassette('valid_user') do
86
+ result = @remote.users_tracked_artists("nigelpurves")
87
+ assert_equal "2:54", result.results.first.display_name
88
+ end
89
+ end
90
+
91
+
92
+ end
93
+
94
+
95
+ def api_key
96
+ 'hFYxiInE4DBpH5KL'
97
+ end
98
+
55
99
  end
@@ -0,0 +1,7 @@
1
+ require 'vcr'
2
+
3
+ VCR.configure do |c|
4
+ c.hook_into :fakeweb
5
+ c.cassette_library_dir = 'test/fixtures/vcr'
6
+ c.default_cassette_options = { :record => :new_episodes }
7
+ end
data/test.rb CHANGED
@@ -8,7 +8,7 @@ require 'httparty'
8
8
 
9
9
 
10
10
  remote = Songkickr::Remote.new 'hFYxiInE4DBpH5KL'
11
- @results = remote.artist_search(:artist_name => "Muse", :per_page=>'10' ).results
11
+ @results = remote.artist_search(:query => "Muse", :per_page=>'10' ).results
12
12
  @results.each do |result|
13
13
  print result.display_name + "\n"
14
14
  end
@@ -19,4 +19,4 @@ print "\n"
19
19
 
20
20
  @gigography_results.each do |gig|
21
21
  print gig.display_name + "\n"
22
- end
22
+ end