beatport 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. data/Gemfile +7 -5
  2. data/Gemfile.lock +22 -20
  3. data/Rakefile +7 -7
  4. data/VERSION +1 -1
  5. data/beatport.gemspec +56 -20
  6. data/lib/beatport/catalog.rb +2 -0
  7. data/lib/beatport/catalog/djprofile.rb +7 -0
  8. data/lib/beatport/catalog/part.rb +7 -0
  9. data/lib/beatport/support/query_builder.rb +1 -1
  10. data/spec/catalog/account_type_spec.rb +18 -5
  11. data/spec/catalog/artist_spec.rb +61 -41
  12. data/spec/catalog/audio_format_spec.rb +12 -4
  13. data/spec/catalog/autocomplete_spec.rb +9 -3
  14. data/spec/catalog/chart_spec.rb +11 -5
  15. data/spec/catalog/country_spec.rb +4 -2
  16. data/spec/catalog/currency_spec.rb +3 -1
  17. data/spec/catalog/genre_spec.rb +30 -12
  18. data/spec/catalog/home_spec.rb +7 -5
  19. data/spec/catalog/label_spec.rb +21 -10
  20. data/spec/catalog/release_spec.rb +11 -7
  21. data/spec/catalog/search_spec.rb +22 -8
  22. data/spec/catalog/slide_spec.rb +4 -0
  23. data/spec/catalog/source_type_spec.rb +3 -1
  24. data/spec/catalog/track_spec.rb +9 -7
  25. data/spec/fixtures/account_type_all.yml +40 -0
  26. data/spec/fixtures/account_type_visa.yml +38 -0
  27. data/spec/fixtures/artist_7181.yml +43 -0
  28. data/spec/fixtures/artist_7181_7182.yml +44 -0
  29. data/spec/fixtures/artist_7181_top_downloads.yml +105 -0
  30. data/spec/fixtures/artist_all.yml +64 -0
  31. data/spec/fixtures/artist_all_5_per_page.yml +53 -0
  32. data/spec/fixtures/artist_all_for_facets.yml +38 -0
  33. data/spec/fixtures/artist_all_return_facets.yml +144 -0
  34. data/spec/fixtures/artist_all_sorted.yml +44 -0
  35. data/spec/fixtures/audio_format_2.yml +38 -0
  36. data/spec/fixtures/audio_format_all.yml +44 -0
  37. data/spec/fixtures/audio_format_wav.yml +38 -0
  38. data/spec/fixtures/autocomplete_lutzen.yml +41 -0
  39. data/spec/fixtures/autocomplete_lutzen_page_3.yml +39 -0
  40. data/spec/fixtures/chart_15722.yml +39 -0
  41. data/spec/fixtures/country_au.yml +43 -0
  42. data/spec/fixtures/currency_all.yml +127 -0
  43. data/spec/fixtures/genre_7.yml +38 -0
  44. data/spec/fixtures/genre_all.yml +47 -0
  45. data/spec/fixtures/genre_all_with_subgenres.yml +62 -0
  46. data/spec/fixtures/genre_invalid.yml +38 -0
  47. data/spec/fixtures/label_1390.yml +43 -0
  48. data/spec/fixtures/label_all.yml +76 -0
  49. data/spec/fixtures/release_164808.yml +55 -0
  50. data/spec/fixtures/search_ANJCDCO011D.yml +38 -0
  51. data/spec/fixtures/search_anjunadeep_genre_trance.yml +101 -0
  52. data/spec/fixtures/search_archipel.yml +102 -0
  53. data/spec/fixtures/search_believe_2004.yml +220 -0
  54. data/spec/fixtures/source_type_all.yml +38 -0
  55. data/spec/fixtures/track_1217790.yml +45 -0
  56. data/spec/spec_helper.rb +7 -0
  57. metadata +179 -134
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.beatport.com/catalog/3/artists?sortBy=publishDate%20asc%2CartistId%20asc&genreId=5&perPage=5&page=1
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
+ - Wed, 10 Oct 2012 00:31:41 GMT
17
+ server:
18
+ - Apache
19
+ expires:
20
+ - Wed, 10 Oct 2012 01:01:41 GMT
21
+ pragma:
22
+ - public
23
+ cache-control:
24
+ - public, max-age=1800
25
+ access-control-allow-origin:
26
+ - ! '*'
27
+ connection:
28
+ - close
29
+ transfer-encoding:
30
+ - chunked
31
+ content-type:
32
+ - application/json
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"metadata":{"host":"api.beatport.com","path":"\/catalog\/artists","query":"sortBy=publishDate+asc%2CartistId+asc&genreId=5&perPage=5","page":1,"perPage":5,"count":257551,"totalPages":51511,"nextQuery":"sortBy=publishDate+asc%2CartistId+asc&genreId=5&perPage=5&page=2","perPageOptions":[{"value":50,"applyQuery":"sortBy=publishDate+asc%2CartistId+asc&genreId=5&perPage=50"},{"value":100,"applyQuery":"sortBy=publishDate+asc%2CartistId+asc&genreId=5&perPage=100"},{"value":150,"applyQuery":"sortBy=publishDate+asc%2CartistId+asc&genreId=5&perPage=150"}],"facets":{"fields":[]},"appliedFacets":[],"spellcheck":{"suggestions":[]}},"results":[{"id":210376,"type":"artist","name":"The
36
+ Disco Express","slug":"the-disco-express","active":true,"lastPublishDate":"1976-01-01","biography":"","genres":[{"id":5,"name":"House","slug":"house","type":"genre"}],"subGenres":[{"id":18,"name":"Disco","slug":"disco","type":"subgenre"}],"images":{"small":{"width":30,"height":30,"url":"http:\/\/geo-media.beatport.com\/image\/491527.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/491527.jpg"},"medium":{"width":88,"height":60,"url":"http:\/\/geo-media.beatport.com\/image\/491530.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/491530.jpg"},"large":{"width":590,"height":404,"url":"http:\/\/geo-media.beatport.com\/image\/5539565.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/5539565.jpg"}},"dynamicImages":{"main":{"url":"\/\/geo-media.beatport.com\/image_size{hq}\/{w}x{h}\/5539565.jpg"}},"imageTextPosition":"left","imageTextBrightness":"light","displayLevel":1},{"id":202864,"type":"artist","name":"Amber
37
+ Route","slug":"amber-route","active":true,"lastPublishDate":"1980-05-05","biography":"","genres":[{"id":3,"name":"Electronica","slug":"electronica","type":"genre"}],"subGenres":[],"images":{"small":{"width":30,"height":30,"url":"http:\/\/geo-media.beatport.com\/image\/491527.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/491527.jpg"},"medium":{"width":88,"height":60,"url":"http:\/\/geo-media.beatport.com\/image\/491530.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/491530.jpg"},"large":{"width":590,"height":404,"url":"http:\/\/geo-media.beatport.com\/image\/5539565.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/5539565.jpg"}},"dynamicImages":{"main":{"url":"\/\/geo-media.beatport.com\/image_size{hq}\/{w}x{h}\/5539565.jpg"}},"imageTextPosition":"left","imageTextBrightness":"light","displayLevel":1},{"id":197163,"type":"artist","name":"Winston
38
+ Edwards","slug":"winston-edwards","active":true,"lastPublishDate":"1980-10-31","biography":"","genres":[{"id":41,"name":"Reggae
39
+ \/ Dub","slug":"reggae-dub","type":"genre"}],"subGenres":[],"images":{"small":{"width":30,"height":30,"url":"http:\/\/geo-media.beatport.com\/image\/491527.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/491527.jpg"},"medium":{"width":88,"height":60,"url":"http:\/\/geo-media.beatport.com\/image\/491530.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/491530.jpg"},"large":{"width":590,"height":404,"url":"http:\/\/geo-media.beatport.com\/image\/5539565.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/5539565.jpg"}},"dynamicImages":{"main":{"url":"\/\/geo-media.beatport.com\/image_size{hq}\/{w}x{h}\/5539565.jpg"}},"imageTextPosition":"left","imageTextBrightness":"light","displayLevel":1},{"id":202928,"type":"artist","name":"George
40
+ Higton","slug":"george-higton","active":true,"lastPublishDate":"1983-05-25","biography":"","genres":[{"id":3,"name":"Electronica","slug":"electronica","type":"genre"}],"subGenres":[{"id":13,"name":"IDM","slug":"idm","type":"subgenre"}],"images":{"small":{"width":30,"height":30,"url":"http:\/\/geo-media.beatport.com\/image\/491527.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/491527.jpg"},"medium":{"width":88,"height":60,"url":"http:\/\/geo-media.beatport.com\/image\/491530.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/491530.jpg"},"large":{"width":590,"height":404,"url":"http:\/\/geo-media.beatport.com\/image\/5539565.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/5539565.jpg"}},"dynamicImages":{"main":{"url":"\/\/geo-media.beatport.com\/image_size{hq}\/{w}x{h}\/5539565.jpg"}},"imageTextPosition":"left","imageTextBrightness":"light","displayLevel":1},{"id":202867,"type":"artist","name":"Amber
41
+ Route (with Walter Holland)","slug":"amber-route-with-walter-holland","active":true,"lastPublishDate":"1983-08-03","biography":"","genres":[{"id":3,"name":"Electronica","slug":"electronica","type":"genre"}],"subGenres":[],"images":{"small":{"width":30,"height":30,"url":"http:\/\/geo-media.beatport.com\/image\/491527.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/491527.jpg"},"medium":{"width":88,"height":60,"url":"http:\/\/geo-media.beatport.com\/image\/491530.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/491530.jpg"},"large":{"width":590,"height":404,"url":"http:\/\/geo-media.beatport.com\/image\/5539565.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/5539565.jpg"}},"dynamicImages":{"main":{"url":"\/\/geo-media.beatport.com\/image_size{hq}\/{w}x{h}\/5539565.jpg"}},"imageTextPosition":"left","imageTextBrightness":"light","displayLevel":1}]}'
42
+ http_version: '1.1'
43
+ recorded_at: Wed, 10 Oct 2012 00:31:42 GMT
44
+ recorded_with: VCR 2.2.5
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.beatport.com/catalog/3/audio-formats?id=2
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
+ - Wed, 10 Oct 2012 00:36:25 GMT
17
+ server:
18
+ - Apache
19
+ expires:
20
+ - Wed, 10 Oct 2012 01:06:25 GMT
21
+ pragma:
22
+ - public
23
+ cache-control:
24
+ - public, max-age=1800
25
+ access-control-allow-origin:
26
+ - ! '*'
27
+ connection:
28
+ - close
29
+ transfer-encoding:
30
+ - chunked
31
+ content-type:
32
+ - application/json
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"metadata":{"page":1,"perPage":10,"count":1},"results":[{"id":2,"name":"m4a","personPreferenceVisibility":false,"isLossless":false}]}'
36
+ http_version: '1.1'
37
+ recorded_at: Wed, 10 Oct 2012 00:36:25 GMT
38
+ recorded_with: VCR 2.2.5
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.beatport.com/catalog/3/audio-formats?
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
+ - Wed, 10 Oct 2012 00:36:24 GMT
17
+ server:
18
+ - Apache
19
+ expires:
20
+ - Wed, 10 Oct 2012 01:06:24 GMT
21
+ pragma:
22
+ - public
23
+ cache-control:
24
+ - public, max-age=1800
25
+ access-control-allow-origin:
26
+ - ! '*'
27
+ connection:
28
+ - close
29
+ transfer-encoding:
30
+ - chunked
31
+ content-type:
32
+ - application/json
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"metadata":{"page":1,"perPage":10,"count":15},"results":[{"id":1,"name":"mp3","personPreferenceVisibility":true,"isLossless":false},{"id":2,"name":"m4a","personPreferenceVisibility":false,"isLossless":false},{"id":3,"name":"wav","personPreferenceVisibility":true,"isLossless":true},{"id":4,"name":"zip","personPreferenceVisibility":false,"isLossless":false},{"id":5,"name":"full
36
+ download","personPreferenceVisibility":false,"isLossless":false},{"id":6,"name":"apple
37
+ loops","personPreferenceVisibility":false,"isLossless":false},{"id":7,"name":"rex","personPreferenceVisibility":false,"isLossless":false},{"id":8,"name":"synth
38
+ presets","personPreferenceVisibility":false,"isLossless":false},{"id":9,"name":"sampler
39
+ patches","personPreferenceVisibility":false,"isLossless":false},{"id":10,"name":"reason
40
+ refill","personPreferenceVisibility":false,"isLossless":false},{"id":11,"name":"elements","personPreferenceVisibility":false,"isLossless":false},{"id":12,"name":"s4","personPreferenceVisibility":false,"isLossless":false},{"id":13,"name":"ableton
41
+ live racks","personPreferenceVisibility":false,"isLossless":false},{"id":14,"name":"aiff","personPreferenceVisibility":true,"isLossless":true},{"id":15,"name":"mp4","personPreferenceVisibility":false,"isLossless":false}]}'
42
+ http_version: '1.1'
43
+ recorded_at: Wed, 10 Oct 2012 00:36:25 GMT
44
+ recorded_with: VCR 2.2.5
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.beatport.com/catalog/3/audio-formats?name=wav
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
+ - Wed, 10 Oct 2012 00:36:25 GMT
17
+ server:
18
+ - Apache
19
+ expires:
20
+ - Wed, 10 Oct 2012 01:06:25 GMT
21
+ pragma:
22
+ - public
23
+ cache-control:
24
+ - public, max-age=1800
25
+ access-control-allow-origin:
26
+ - ! '*'
27
+ connection:
28
+ - close
29
+ transfer-encoding:
30
+ - chunked
31
+ content-type:
32
+ - application/json
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"metadata":{"page":1,"perPage":10,"count":1},"results":[{"id":3,"name":"wav","personPreferenceVisibility":true,"isLossless":true}]}'
36
+ http_version: '1.1'
37
+ recorded_at: Wed, 10 Oct 2012 00:36:25 GMT
38
+ recorded_with: VCR 2.2.5
@@ -0,0 +1,41 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.beatport.com/catalog/3/autocomplete?query=lutzen
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
+ - Wed, 10 Oct 2012 00:37:39 GMT
17
+ server:
18
+ - Apache
19
+ expires:
20
+ - Wed, 10 Oct 2012 01:07:39 GMT
21
+ pragma:
22
+ - public
23
+ cache-control:
24
+ - public, max-age=1800
25
+ access-control-allow-origin:
26
+ - ! '*'
27
+ connection:
28
+ - close
29
+ transfer-encoding:
30
+ - chunked
31
+ content-type:
32
+ - application/json
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"metadata":{"host":"api.beatport.com","path":"\/catalog\/autocomplete","query":"query=lutzen","page":1,"perPage":10,"count":36,"totalPages":4,"nextQuery":"query=lutzen&page=2","perPageOptions":[{"value":50,"applyQuery":"query=lutzen&perPage=50"},{"value":100,"applyQuery":"query=lutzen&perPage=100"},{"value":150,"applyQuery":"query=lutzen&perPage=150"}],"facets":{"fields":[]},"spellcheck":{"suggestions":[]}},"results":[{"name":"Lutzencraft"},{"name":"Lutzenfierht"},{"name":"Lutzenkirchen"},{"name":"LXR
36
+ aka Lutzenkirchen"},{"name":"Tobias Lutzenkirchen"},{"name":"Lutzenkirchen
37
+ Top 10"},{"name":"Lutzenkirchen Best Of"},{"name":"Lutzenkirchen Charts"},{"name":"Lutzenkirchen
38
+ Chart"},{"name":"Lutzenkirchen Top 10 5\/07"}]}'
39
+ http_version: '1.1'
40
+ recorded_at: Wed, 10 Oct 2012 00:37:39 GMT
41
+ recorded_with: VCR 2.2.5
@@ -0,0 +1,39 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.beatport.com/catalog/3/autocomplete?page=3&perPage=2&query=lutzen
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
+ - Wed, 10 Oct 2012 00:37:39 GMT
17
+ server:
18
+ - Apache
19
+ expires:
20
+ - Wed, 10 Oct 2012 01:07:39 GMT
21
+ pragma:
22
+ - public
23
+ cache-control:
24
+ - public, max-age=1800
25
+ access-control-allow-origin:
26
+ - ! '*'
27
+ connection:
28
+ - close
29
+ transfer-encoding:
30
+ - chunked
31
+ content-type:
32
+ - application/json
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"metadata":{"host":"api.beatport.com","path":"\/catalog\/autocomplete","query":"perPage=2&query=lutzen","page":3,"perPage":2,"count":36,"totalPages":18,"nextQuery":"perPage=2&query=lutzen&page=4","prevQuery":"perPage=2&query=lutzen&page=2","perPageOptions":[{"value":50,"applyQuery":"perPage=50&query=lutzen"},{"value":100,"applyQuery":"perPage=100&query=lutzen"},{"value":150,"applyQuery":"perPage=150&query=lutzen"}],"facets":{"fields":[]},"spellcheck":{"suggestions":[]}},"results":[{"name":"Tobias
36
+ Lutzenkirchen"},{"name":"Lutzenkirchen Top 10"}]}'
37
+ http_version: '1.1'
38
+ recorded_at: Wed, 10 Oct 2012 00:37:39 GMT
39
+ recorded_with: VCR 2.2.5
@@ -0,0 +1,39 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.beatport.com/catalog/3/charts?id=15722
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
+ - Wed, 10 Oct 2012 00:40:52 GMT
17
+ server:
18
+ - Apache
19
+ expires:
20
+ - Wed, 10 Oct 2012 01:10:52 GMT
21
+ pragma:
22
+ - public
23
+ cache-control:
24
+ - public, max-age=1800
25
+ access-control-allow-origin:
26
+ - ! '*'
27
+ connection:
28
+ - close
29
+ transfer-encoding:
30
+ - chunked
31
+ content-type:
32
+ - application/json
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"metadata":{"host":"api.beatport.com","path":"\/catalog\/charts","query":"id=15722","page":1,"perPage":10,"count":1,"totalPages":1,"perPageOptions":[{"value":50,"applyQuery":"id=15722&perPage=50"},{"value":100,"applyQuery":"id=15722&perPage=100"},{"value":150,"applyQuery":"id=15722&perPage=150"}],"facets":{"fields":[]},"appliedFacets":[],"dateFilters":[{"name":"today","startDate":"2012-10-09","endDate":"2012-10-09","applyQuery":"id=15722&publishDateStart=2012-10-09&publishDateEnd=2012-10-09","applied":false},{"name":"yesterday","startDate":"2012-10-08","endDate":"2012-10-09","applyQuery":"id=15722&publishDateStart=2012-10-08&publishDateEnd=2012-10-09","applied":false},{"name":"weekToDate","startDate":"2012-10-02","endDate":"2012-10-09","applyQuery":"id=15722&publishDateStart=2012-10-02&publishDateEnd=2012-10-09","applied":false},{"name":"monthToDate","startDate":"2012-09-09","endDate":"2012-10-09","applyQuery":"id=15722&publishDateStart=2012-09-09&publishDateEnd=2012-10-09","applied":false},{"name":"yearToDate","startDate":"2011-10-09","endDate":"2012-10-09","applyQuery":"id=15722&publishDateStart=2011-10-09&publishDateEnd=2012-10-09","applied":false},{"custom":true,"name":"customRange","applied":false,"applyQuery":"id=15722"}],"spellcheck":{"suggestions":[]}},"results":[{"id":15722,"type":"chart","sku":"chart-15722","name":"Nitrous
36
+ Oxide \u2013 April Top 10","slug":"nitrous-oxide-april-top-10","description":"","active":true,"publishDate":"2009-05-12","price":{"code":"usd","symbol":"$","value":1391},"audioFormatFee":{"wav":{"code":"usd","symbol":"$","value":900},"aiff":{"code":"usd","symbol":"$","value":900}},"genres":[{"id":7,"name":"Trance","slug":"trance","type":"genre"}],"images":{"small":{"width":30,"height":30,"url":"http:\/\/geo-media.beatport.com\/image\/491534.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/491534.jpg"},"medium":{"width":60,"height":60,"url":"http:\/\/geo-media.beatport.com\/image\/412921.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/412921.jpg"},"large":{"width":130,"height":130,"url":"http:\/\/geo-media.beatport.com\/image\/412922.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/412922.jpg"},"xlarge":{"width":500,"height":500,"url":"http:\/\/geo-media.beatport.com\/image\/5245821.jpg","secureUrl":"https:\/\/media.beatport.com\/image\/5245821.jpg"}},"dynamicImages":{"main":{"url":"\/\/geo-media.beatport.com\/image_size{hq}\/{w}x{h}\/5245821.jpg"}},"chartOwner":null}]}'
37
+ http_version: '1.1'
38
+ recorded_at: Wed, 10 Oct 2012 00:40:52 GMT
39
+ recorded_with: VCR 2.2.5
@@ -0,0 +1,43 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.beatport.com/catalog/3/countries?codeShort=au
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
+ - Wed, 10 Oct 2012 00:43:13 GMT
17
+ server:
18
+ - Apache
19
+ expires:
20
+ - Wed, 10 Oct 2012 01:13:13 GMT
21
+ pragma:
22
+ - public
23
+ cache-control:
24
+ - public, max-age=1800
25
+ access-control-allow-origin:
26
+ - ! '*'
27
+ connection:
28
+ - close
29
+ transfer-encoding:
30
+ - chunked
31
+ content-type:
32
+ - application/json
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"metadata":{"page":1,"perPage":10,"count":1},"results":[{"id":5,"code":"AUS","codeShort":"AU","name":"Australia","vatEnabled":"0","vatRate":0,"iso3166-3":"AUS","iso3166-2":"AU","currency":{"code":"USD","name":"Dollar"},"states":[{"id":"111","code":"ACT","name":"Australian
36
+ Capital Territory","type":"territory"},{"id":"112","code":"NSW","name":"New
37
+ South Wales","type":"territory"},{"id":"113","code":"NT","name":"Northern
38
+ Territory","type":"territory"},{"id":"114","code":"QLD","name":"Queensland","type":"territory"},{"id":"115","code":"SA","name":"South
39
+ Australia","type":"territory"},{"id":"116","code":"TAS","name":"Tasmania","type":"territory"},{"id":"117","code":"VIC","name":"Victoria","type":"territory"},{"id":"118","code":"WA","name":"Western
40
+ Australia","type":"territory"}]}]}'
41
+ http_version: '1.1'
42
+ recorded_at: Wed, 10 Oct 2012 00:43:13 GMT
43
+ recorded_with: VCR 2.2.5
@@ -0,0 +1,127 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.beatport.com/catalog/3/currencies?
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
+ - Wed, 10 Oct 2012 01:04:11 GMT
17
+ server:
18
+ - Apache
19
+ expires:
20
+ - Wed, 10 Oct 2012 01:34:11 GMT
21
+ pragma:
22
+ - public
23
+ cache-control:
24
+ - public, max-age=1800
25
+ access-control-allow-origin:
26
+ - ! '*'
27
+ connection:
28
+ - close
29
+ transfer-encoding:
30
+ - chunked
31
+ content-type:
32
+ - application/json
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"metadata":{"page":1,"perPage":10,"count":171},"results":[{"id":1,"name":"Dollar","code":"USD"},{"id":2,"name":"Pound","code":"GBP"},{"id":3,"name":"Euro","code":"EUR"},{"id":4,"name":"Australian
36
+ Dollar","code":"AUD"},{"id":5,"name":"Canadian Dollar","code":"CAD"},{"id":119,"name":"Mauritania
37
+ Ouguiyas","code":"MRO"},{"id":118,"name":"Cuba Convertible","code":"CUC"},{"id":117,"name":"Turkmenistan
38
+ Manats - Replaced by TMT","code":"TMM"},{"id":116,"name":"Maldives (Maldive
39
+ Islands) Rufiyaa","code":"MVR"},{"id":115,"name":"Croatia Kuna","code":"HRK"},{"id":114,"name":"Turkey
40
+ Lira","code":"TRY"},{"id":113,"name":"Malaysia Ringgits","code":"MYR"},{"id":112,"name":"Costa
41
+ Rica Colones","code":"CRC"},{"id":111,"name":"Tunisia Dinars","code":"TND"},{"id":110,"name":"Malawi
42
+ Kwachas","code":"MWK"},{"id":109,"name":"Congo\/Kinshasa Congolese Francs","code":"CDF"},{"id":108,"name":"Trinidad
43
+ and Tobago Dollars","code":"TTD"},{"id":107,"name":"Madagascar Ariary","code":"MGA"},{"id":106,"name":"Comptoirs
44
+ Fran\u00c3\u00a7ais du Pacifique Francs","code":"XPF"},{"id":105,"name":"Tonga
45
+ Paanga","code":"TOP"},{"id":104,"name":"Macedonia Denars","code":"MKD"},{"id":103,"name":"Comoros
46
+ Francs","code":"KMF"},{"id":102,"name":"Thailand Baht","code":"THB"},{"id":101,"name":"Macau
47
+ Patacas","code":"MOP"},{"id":100,"name":"Communaut\u00c3\u00a9 Financi\u00c3\u00a8re
48
+ Africaine BEAC Francs - BEAC","code":"XAF"},{"id":99,"name":"Tanzania Shillings","code":"TZS"},{"id":98,"name":"Lithuania
49
+ Litai","code":"LTL"},{"id":97,"name":"Communaut\u00c3\u00a9 Financi\u00c3\u00a8re
50
+ Africaine BCEAO Francs - BCEAO","code":"XOF"},{"id":96,"name":"Tajikistan
51
+ Somoni","code":"TJS"},{"id":95,"name":"Libya Dinars","code":"LYD"},{"id":94,"name":"Colombia
52
+ Pesos","code":"COP"},{"id":93,"name":"Taiwan New Dollars","code":"TWD"},{"id":92,"name":"Liberia
53
+ Dollars","code":"LRD"},{"id":91,"name":"China Yuan Renminbi","code":"CNY"},{"id":90,"name":"Syria
54
+ Pounds","code":"SYP"},{"id":89,"name":"Lesotho Maloti","code":"LSL"},{"id":88,"name":"Chile
55
+ Pesos","code":"CLP"},{"id":87,"name":"Switzerland Francs","code":"CHF"},{"id":86,"name":"Lebanon
56
+ Pounds","code":"LBP"},{"id":85,"name":"Cayman Islands Dollars","code":"KYD"},{"id":84,"name":"Sweden
57
+ Kronor","code":"SEK"},{"id":83,"name":"Latvia Lati","code":"LVL"},{"id":82,"name":"Cape
58
+ Verde Escudos","code":"CVE"},{"id":81,"name":"Swaziland Emalangeni","code":"SZL"},{"id":80,"name":"Laos
59
+ Kips","code":"LAK"},{"id":79,"name":"Suriname Dollars","code":"SRD"},{"id":78,"name":"Kyrgyzstan
60
+ Soms","code":"KGS"},{"id":77,"name":"Cambodia Riels","code":"KHR"},{"id":76,"name":"Sudan
61
+ Pounds - From 1pm EDT April 11th 2007","code":"SDG"},{"id":75,"name":"Kuwait
62
+ Dinars","code":"KWD"},{"id":74,"name":"Burundi Francs","code":"BIF"},{"id":73,"name":"Sri
63
+ Lanka Rupees","code":"LKR"},{"id":72,"name":"Korea (South) Won","code":"KRW"},{"id":71,"name":"Bulgaria
64
+ Leva","code":"BGN"},{"id":70,"name":"South Africa Rand","code":"ZAR"},{"id":69,"name":"Korea
65
+ (North) Won","code":"KPW"},{"id":68,"name":"Brunei Darussalam Dollars","code":"BND"},{"id":67,"name":"Somalia
66
+ Shillings","code":"SOS"},{"id":66,"name":"Kenya Shillings","code":"KES"},{"id":65,"name":"Brazil
67
+ Real","code":"BRL"},{"id":64,"name":"Solomon Islands Dollars","code":"SBD"},{"id":63,"name":"Kazakstan
68
+ Tenge","code":"KZT"},{"id":62,"name":"Botswana Pulas","code":"BWP"},{"id":61,"name":"Singapore
69
+ Dollars","code":"SGD"},{"id":60,"name":"Jordan Dinars","code":"JOD"},{"id":59,"name":"Bosnia
70
+ and Herzegovina Convertible Marka","code":"BAM"},{"id":58,"name":"Silver Ounces","code":"XAG"},{"id":57,"name":"Jersey
71
+ Pounds","code":"JEP"},{"id":56,"name":"Bolivia Bolivianos","code":"BOB"},{"id":55,"name":"Sierra
72
+ Leone Leones","code":"SLL"},{"id":54,"name":"Japan Yen","code":"JPY"},{"id":53,"name":"Bhutan
73
+ Ngultrum","code":"BTN"},{"id":52,"name":"Seychelles Rupees","code":"SCR"},{"id":51,"name":"Jamaica
74
+ Dollars","code":"JMD"},{"id":50,"name":"Bermuda Dollars","code":"BMD"},{"id":49,"name":"Serbia
75
+ Dinars","code":"RSD"},{"id":48,"name":"Israel New Shekels","code":"ILS"},{"id":47,"name":"Belize
76
+ Dollars","code":"BZD"},{"id":46,"name":"Seborga Luigini","code":"SPL"},{"id":45,"name":"Isle
77
+ of Man Pounds","code":"IMP"},{"id":44,"name":"Belarus Rubles","code":"BYR"},{"id":43,"name":"Saudi
78
+ Arabia Riyals","code":"SAR"},{"id":42,"name":"Iraq Dinars","code":"IQD"},{"id":41,"name":"Barbados
79
+ Dollars","code":"BBD"},{"id":40,"name":"S\u00c3\u00a3o Tome and Principe Dobras","code":"STD"},{"id":39,"name":"Iran
80
+ Rials","code":"IRR"},{"id":38,"name":"Bangladesh Taka","code":"BDT"},{"id":37,"name":"Samoa
81
+ Tala","code":"WST"},{"id":36,"name":"International Monetary Fund Special Drawing
82
+ Rights","code":"XDR"},{"id":35,"name":"Bahrain Dinars","code":"BHD"},{"id":34,"name":"Saint
83
+ Helena Pounds","code":"SHP"},{"id":33,"name":"Indonesia Rupiahs","code":"IDR"},{"id":32,"name":"Bahamas
84
+ Dollars","code":"BSD"},{"id":31,"name":"Rwanda Francs","code":"RWF"},{"id":30,"name":"India
85
+ Rupees","code":"INR"},{"id":29,"name":"Azerbaijan New Manats","code":"AZN"},{"id":28,"name":"Russia
86
+ Rubles","code":"RUB"},{"id":27,"name":"Iceland Kronur","code":"ISK"},{"id":25,"name":"Hungary
87
+ Forint","code":"HUF"},{"id":26,"name":"Romania Lei","code":"RON"},{"id":24,"name":"Aruba
88
+ Guilders","code":"AWG"},{"id":23,"name":"Qatar Rials","code":"QAR"},{"id":22,"name":"Hong
89
+ Kong Dollars","code":"HKD"},{"id":21,"name":"Armenia Drams","code":"AMD"},{"id":20,"name":"Poland
90
+ Zlotych","code":"PLN"},{"id":19,"name":"Honduras Lempiras","code":"HNL"},{"id":18,"name":"Argentina
91
+ Pesos","code":"ARS"},{"id":17,"name":"Platinum Ounces","code":"XPT"},{"id":16,"name":"Haiti
92
+ Gourdes","code":"HTG"},{"id":15,"name":"Angola Kwanza","code":"AOA"},{"id":14,"name":"Philippines
93
+ Pesos","code":"PHP"},{"id":13,"name":"Guyana Dollars","code":"GYD"},{"id":12,"name":"Algeria
94
+ Dinars","code":"DZD"},{"id":11,"name":"Peru Nuevos Soles","code":"PEN"},{"id":10,"name":"Guinea
95
+ Francs","code":"GNF"},{"id":9,"name":"Albania Leke","code":"ALL"},{"id":8,"name":"Paraguay
96
+ Guarani","code":"PYG"},{"id":7,"name":"Guernsey Pounds","code":"GGP"},{"id":6,"name":"Afghanistan
97
+ Afghanis","code":"AFN"},{"id":120,"name":"Turkmenistan New Manats - Replaces
98
+ TMM","code":"TMT"},{"id":121,"name":"Cuba Pesos","code":"CUP"},{"id":122,"name":"Mauritius
99
+ Rupees","code":"MUR"},{"id":123,"name":"Tuvalu Dollars","code":"TVD"},{"id":124,"name":"Czech
100
+ Republic Koruny","code":"CZK"},{"id":125,"name":"Mexico Pesos","code":"MXN"},{"id":126,"name":"Uganda
101
+ Shillings","code":"UGX"},{"id":127,"name":"Denmark Kroner","code":"DKK"},{"id":128,"name":"Moldova
102
+ Lei","code":"MDL"},{"id":129,"name":"Ukraine Hryvnia","code":"UAH"},{"id":130,"name":"Djibouti
103
+ Francs","code":"DJF"},{"id":131,"name":"Mongolia Tugriks","code":"MNT"},{"id":132,"name":"United
104
+ Arab Emirates Dirhams","code":"AED"},{"id":133,"name":"Dominican Republic
105
+ Pesos","code":"DOP"},{"id":134,"name":"Morocco Dirhams","code":"MAD"},{"id":135,"name":"East
106
+ Caribbean Dollars","code":"XCD"},{"id":136,"name":"Mozambique Meticais","code":"MZN"},{"id":137,"name":"Egypt
107
+ Pounds","code":"EGP"},{"id":138,"name":"Uruguay Pesos","code":"UYU"},{"id":139,"name":"El
108
+ Salvador Colones","code":"SVC"},{"id":140,"name":"Myanmar (Burma) Kyats","code":"MMK"},{"id":141,"name":"Uzbekistan
109
+ Sums","code":"UZS"},{"id":142,"name":"Eritrea Nakfa","code":"ERN"},{"id":143,"name":"Namibia
110
+ Dollars","code":"NAD"},{"id":144,"name":"Vanuatu Vatu","code":"VUV"},{"id":145,"name":"Estonia
111
+ Krooni","code":"EEK"},{"id":146,"name":"Nepal Rupees","code":"NPR"},{"id":147,"name":"Venezuela
112
+ Bolivares - Obsolete June 30th 2008 - replaced by VEF","code":"VEB"},{"id":148,"name":"Ethiopia
113
+ Birr","code":"ETB"},{"id":149,"name":"Netherlands Antilles Guilders","code":"ANG"},{"id":150,"name":"Venezuela
114
+ Bolivares Fuerte","code":"VEF"},{"id":151,"name":"New Zealand Dollars","code":"NZD"},{"id":152,"name":"Viet
115
+ Nam Dong","code":"VND"},{"id":153,"name":"Falkland Islands (Malvinas) Pounds","code":"FKP"},{"id":154,"name":"Nicaragua
116
+ Cordobas","code":"NIO"},{"id":155,"name":"Yemen Rials","code":"YER"},{"id":156,"name":"Fiji
117
+ Dollars","code":"FJD"},{"id":157,"name":"Nigeria Nairas","code":"NGN"},{"id":158,"name":"Zambia
118
+ Kwacha","code":"ZMK"},{"id":159,"name":"Gambia Dalasi","code":"GMD"},{"id":160,"name":"Norway
119
+ Krone","code":"NOK"},{"id":161,"name":"Zimbabwe Dollars","code":"ZWD"},{"id":162,"name":"Georgia
120
+ Lari","code":"GEL"},{"id":163,"name":"Oman Rials","code":"OMR"},{"id":164,"name":"Ghana
121
+ Cedis","code":"GHS"},{"id":165,"name":"Pakistan Rupees","code":"PKR"},{"id":166,"name":"Gibraltar
122
+ Pounds","code":"GIP"},{"id":167,"name":"Palladium Ounces","code":"XPD"},{"id":168,"name":"Gold
123
+ Ounces","code":"XAU"},{"id":169,"name":"Panama Balboa","code":"PAB"},{"id":170,"name":"Guatemala
124
+ Quetzales","code":"GTQ"},{"id":171,"name":"Papua New Guinea Kina","code":"PGK"}]}'
125
+ http_version: '1.1'
126
+ recorded_at: Wed, 10 Oct 2012 01:04:11 GMT
127
+ recorded_with: VCR 2.2.5