lolesports-api 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.rubocop.yml +11 -0
- data/Gemfile +4 -0
- data/Guardfile +25 -0
- data/LICENSE.txt +22 -0
- data/README.md +78 -0
- data/Rakefile +1 -0
- data/lib/lolesports-api.rb +14 -0
- data/lib/lolesports-api/base.rb +23 -0
- data/lib/lolesports-api/game.rb +50 -0
- data/lib/lolesports-api/league.rb +66 -0
- data/lib/lolesports-api/match.rb +52 -0
- data/lib/lolesports-api/play.rb +47 -0
- data/lib/lolesports-api/player.rb +31 -0
- data/lib/lolesports-api/series.rb +35 -0
- data/lib/lolesports-api/team.rb +31 -0
- data/lib/lolesports-api/tournament.rb +46 -0
- data/lib/lolesports-api/version.rb +3 -0
- data/lolesports-api.gemspec +33 -0
- data/spec/fixtures/vcr/cassettes/LolesportsApi_Game/_find/.yml +66 -0
- data/spec/fixtures/vcr/cassettes/LolesportsApi_League/_all/.yml +226 -0
- data/spec/fixtures/vcr/cassettes/LolesportsApi_League/_find/.yml +92 -0
- data/spec/fixtures/vcr/cassettes/LolesportsApi_Match/_find/.yml +66 -0
- data/spec/fixtures/vcr/cassettes/LolesportsApi_Player/_find/.yml +69 -0
- data/spec/fixtures/vcr/cassettes/LolesportsApi_Player/_reload/.yml +69 -0
- data/spec/fixtures/vcr/cassettes/LolesportsApi_Series/_all/.yml +87 -0
- data/spec/fixtures/vcr/cassettes/LolesportsApi_Series/_find/.yml +63 -0
- data/spec/fixtures/vcr/cassettes/LolesportsApi_Team/_find/.yml +68 -0
- data/spec/fixtures/vcr/cassettes/LolesportsApi_Tournament/_find/.yml +68 -0
- data/spec/fixtures/vcr/cassettes/LolesportsApi_Tournament/_find_matches/.yml +84 -0
- data/spec/lolesports-api/game_spec.rb +14 -0
- data/spec/lolesports-api/league_spec.rb +20 -0
- data/spec/lolesports-api/match_spec.rb +14 -0
- data/spec/lolesports-api/play_spec.rb +33 -0
- data/spec/lolesports-api/player_spec.rb +25 -0
- data/spec/lolesports-api/series_spec.rb +17 -0
- data/spec/lolesports-api/team_spec.rb +12 -0
- data/spec/lolesports-api/tournament_spec.rb +17 -0
- data/spec/spec_helper.rb +108 -0
- metadata +258 -0
@@ -0,0 +1,92 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://na.lolesports.com/api/league/1.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 10 Aug 2015 23:44:15 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Content-Length:
|
26
|
+
- '1611'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Set-Cookie:
|
30
|
+
- __cfduid=dd1af06488daed4dc3645e5c1ffd9f65f1439250254; expires=Tue, 09-Aug-16
|
31
|
+
23:44:14 GMT; path=/; domain=.lolesports.com; HttpOnly
|
32
|
+
Cache-Control:
|
33
|
+
- public, max-age=1800
|
34
|
+
Etag:
|
35
|
+
- '"1439250254-1"'
|
36
|
+
Expires:
|
37
|
+
- Tue, 11 Aug 2015 00:14:15 GMT
|
38
|
+
Last-Modified:
|
39
|
+
- Mon, 10 Aug 2015 23:44:14 GMT
|
40
|
+
Vary:
|
41
|
+
- Accept-Encoding
|
42
|
+
Via:
|
43
|
+
- 1.1 varnish
|
44
|
+
X-Drupal-Cache:
|
45
|
+
- MISS
|
46
|
+
X-Varnish:
|
47
|
+
- '1385824085'
|
48
|
+
X-Varnish-Cache:
|
49
|
+
- MISS
|
50
|
+
Cf-Cache-Status:
|
51
|
+
- EXPIRED
|
52
|
+
Accept-Ranges:
|
53
|
+
- bytes
|
54
|
+
Server:
|
55
|
+
- cloudflare-nginx
|
56
|
+
Cf-Ray:
|
57
|
+
- 213f914b2e1b071f-SJC
|
58
|
+
body:
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: '{"color":"#1376A4","leagueImage":"http://riot-web-cdn.s3-us-west-1.amazonaws.com/lolesports/s3fs-public/NA_LCS_Logo_RGB_72dpi.png","defaultTournamentId":"241","defaultSeriesId":0,"internationalLiveStream":[{"language":"English","display_language":"English","streams":[{"title":"Twitch","url":"http://twitch.tv/riotgames","randomize":"33"},{"title":"YouTube","url":"https://www.youtube.com/watch?v=2HGnYUu8Rio","randomize":"33"},{"title":"Azubu","url":"<html>\r\n<head>\r\n<title>Embed</title>\r\n</head>\r\n<body>\r\n\r\n<!--
|
61
|
+
Start of Brightcove Player -->\r\n\r\n<div style=\"display:none\">\r\nRiot_Games\r\n</div>\r\n\r\n<!--\r\nBy
|
62
|
+
use of this code snippet, I agree to the Brightcove Publisher T and C \r\nfound
|
63
|
+
at https://accounts.brightcove.com/en/terms-and-conditions/. \r\n-->\r\n\r\n<script
|
64
|
+
language=\"JavaScript\" type=\"text/javascript\" src=\"http://admin.brightcove.com/js/BrightcoveExperiences.js\"></script>\r\n\r\n<object
|
65
|
+
id=\"myExperience\" class=\"BrightcoveExperience\">\r\n <param name=\"bgcolor\"
|
66
|
+
value=\"#000000\" />\r\n <param name=\"width\" value=\"960\" />\r\n <param
|
67
|
+
name=\"height\" value=\"540\" />\r\n <param name=\"playerID\" value=\"3565671771001\"
|
68
|
+
/>\r\n <param name=\"playerKey\" value=\"AQ~~,AAADDsF76gk~,aeB-sfIIuRjTwkTLK4hQFoRop4lztqKf\"
|
69
|
+
/>\r\n <param name=\"isVid\" value=\"true\" />\r\n <param name=\"isUI\"
|
70
|
+
value=\"true\" />\r\n <param name=\"dynamicStreaming\" value=\"true\" />\r\n <param
|
71
|
+
name=\"quality\" value=\"high\" />\r\n <param name=\"includeAPI\" value=\"true\"
|
72
|
+
/>\r\n <param name=\"htmlFallback\" value=\"true\" />\r\n <param name=\"wmode\"
|
73
|
+
value=\"transparent\" />\r\n <param name=\"@playlistTabs\" value=\"ref:Riot_GamesPlaylist\"
|
74
|
+
/>\r\n <param name=\"@playlistCombo\" value=\"ref:Riot_GamesPlaylist\"/>\r\n <param
|
75
|
+
name=\"@videoList\" value=\"ref:Riot_GamesPlaylist\"/>\r\n <param name=\"adServerURL\"
|
76
|
+
value=\"http://pubads.g.doubleclick.net/gampad/ads?sz=480x270&iu=/7085766/AzubuProdBrowser/EmbedLive/Riot_Games&ciu_szs&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&min_ad_duration=0&max_ad_duration=30000&url=[referrer_url]&correlator=[timestamp]&sdmax=120000&cust_params=channelname%3DRiot_Games%26teamname%3DRiot%26eventname%3D\"
|
77
|
+
/>\r\n\r\n\r\n</object>\r\n\r\n<!-- \r\nThis script tag will cause the Brightcove
|
78
|
+
Players defined above it to be created as soon\r\nas the line is read by the
|
79
|
+
browser. If you wish to have the player instantiated only after\r\nthe rest
|
80
|
+
of the HTML is processed and the page load is complete, remove the line.\r\n-->\r\n<script
|
81
|
+
type=\"text/javascript\">brightcove.createExperiences();</script>\r\n\r\n<!--
|
82
|
+
End of Brightcove Player -->\r\n</body>\r\n</html>","randomize":"33"}]},{"language":"Spanish","display_language":"Spanish","streams":[{"title":"Twitch","url":"http://twitch.tv/eslspain","randomize":"0"}]},{"language":"Russian","display_language":"Russian","streams":[{"title":"Twitch","url":"http://twitch.tv/lolstarladder","randomize":"0"}]},{"language":"French","display_language":"French","streams":[{"title":"Millenium","url":"<iframe
|
83
|
+
src=\"http://millenium-tv2.nexus.mnium.org:44302/player.html?volume=1&autoplay=1&quality=480\"
|
84
|
+
width=\"960\" height=\"540\" allowfullscreen=\"allowfullscreen\" frameborder=\"0\"></iframe>
|
85
|
+
","randomize":"100"}]},{"language":"Swedish","display_language":"Swedish","streams":[{"title":"viagame","url":"<iframe
|
86
|
+
width=''832px'' height=''509px'' class=''viagame'' src=''http://www.viagame.com/embed/410087''
|
87
|
+
frameborder=''0'' allowfullscreen></iframe>","randomize":0}]}],"shortName":"NA
|
88
|
+
LCS","leagueTournaments":[7,11,13,19,23,28,33,77,95,104,124,168,181,184,185,197,211,220,226,241,248],"leagueSeries":[20],"noVods":0,"menuWeight":"10","published":true,"url":"http://na.lolesports.com/na-lcs","label":"NA
|
89
|
+
LCS","id":"1"}'
|
90
|
+
http_version:
|
91
|
+
recorded_at: Mon, 10 Aug 2015 23:44:14 GMT
|
92
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,66 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://na.lolesports.com/api/match/2299.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Sun, 09 Aug 2015 21:09:52 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Content-Length:
|
26
|
+
- '459'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Set-Cookie:
|
30
|
+
- __cfduid=d0fb25ef920ff4d58e48f1e7f692eedd41439154592; expires=Mon, 08-Aug-16
|
31
|
+
21:09:52 GMT; path=/; domain=.lolesports.com; HttpOnly
|
32
|
+
Cache-Control:
|
33
|
+
- public, max-age=1800
|
34
|
+
Etag:
|
35
|
+
- '"1439150774-1"'
|
36
|
+
Expires:
|
37
|
+
- Sun, 09 Aug 2015 21:39:52 GMT
|
38
|
+
Last-Modified:
|
39
|
+
- Sun, 09 Aug 2015 20:06:14 GMT
|
40
|
+
Vary:
|
41
|
+
- Accept-Encoding
|
42
|
+
Via:
|
43
|
+
- 1.1 varnish
|
44
|
+
X-Drupal-Cache:
|
45
|
+
- MISS
|
46
|
+
X-Varnish:
|
47
|
+
- '975429665'
|
48
|
+
X-Varnish-Cache:
|
49
|
+
- MISS
|
50
|
+
Cf-Cache-Status:
|
51
|
+
- STALE
|
52
|
+
Accept-Ranges:
|
53
|
+
- bytes
|
54
|
+
Server:
|
55
|
+
- cloudflare-nginx
|
56
|
+
Cf-Ray:
|
57
|
+
- 213671cbcd782822-SJC
|
58
|
+
body:
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: '{"tournament":{"id":"102","name":"EU LCS Summer Split","round":"1"},"url":"/tourney/match/2299","dateTime":"2014-05-21T18:00Z","winnerId":"67","matchId":"2299","maxGames":"1","isLive":false,"isFinished":"1","contestants":{"blue":{"id":"67","name":"SK
|
61
|
+
Gaming","logoURL":"http://riot-web-cdn.s3-us-west-1.amazonaws.com/lolesports/s3fs-public/styles/grid_medium_square/public/sk-white.png?itok=TN9fYC_w","acronym":"SK","wins":15,"losses":13},"red":{"id":"1100","name":"Copenhagen
|
62
|
+
Wolves","logoURL":"http://riot-web-cdn.s3-us-west-1.amazonaws.com/lolesports/s3fs-public/styles/grid_medium_square/public/Wolveslogobund.png?itok=VBpWLfFw","acronym":"CW","wins":8,"losses":20}},"liveStreams":false,"polldaddyId":"8011372:36412099:36412100","games":{"game0":{"id":"2782","winnerId":"67","noVods":0,"hasVod":1}},"name":"SK
|
63
|
+
Gaming vs Copenhagen Wolves"}'
|
64
|
+
http_version:
|
65
|
+
recorded_at: Sun, 09 Aug 2015 21:09:52 GMT
|
66
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,69 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://na.lolesports.com/api/player/330.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Wed, 05 Aug 2015 05:13:05 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Content-Length:
|
26
|
+
- '551'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Set-Cookie:
|
30
|
+
- __cfduid=d6c7a2a8fea8000df4acb00054c00bbc71438751584; expires=Thu, 04-Aug-16
|
31
|
+
05:13:04 GMT; path=/; domain=.lolesports.com; HttpOnly
|
32
|
+
Cache-Control:
|
33
|
+
- public, max-age=1800
|
34
|
+
Etag:
|
35
|
+
- '"1438751583-1"'
|
36
|
+
Expires:
|
37
|
+
- Wed, 05 Aug 2015 05:43:05 GMT
|
38
|
+
Last-Modified:
|
39
|
+
- Wed, 05 Aug 2015 05:13:03 GMT
|
40
|
+
Vary:
|
41
|
+
- Accept-Encoding
|
42
|
+
Via:
|
43
|
+
- 1.1 varnish
|
44
|
+
X-Drupal-Cache:
|
45
|
+
- MISS
|
46
|
+
X-Varnish:
|
47
|
+
- '377422892'
|
48
|
+
X-Varnish-Cache:
|
49
|
+
- MISS
|
50
|
+
Cf-Cache-Status:
|
51
|
+
- EXPIRED
|
52
|
+
Accept-Ranges:
|
53
|
+
- bytes
|
54
|
+
Server:
|
55
|
+
- cloudflare-nginx
|
56
|
+
Cf-Ray:
|
57
|
+
- 211002bcc40e287c-SJC
|
58
|
+
body:
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: '{"name":"Hai","bio":"Hai \u201cHai\u201d Lam is a veteran mid laner.
|
61
|
+
Preferring assassin champs, Hai is happiest when he can explode the enemy
|
62
|
+
carry instantly to turn team fights in Cloud9\u2019s favor. After suffering
|
63
|
+
a collapsed lung in 2014 Hai was forced to take a brief recovery apart from
|
64
|
+
Cloud9, but he returned with a vengeance to lead Cloud9 to victory in IEM
|
65
|
+
San Jose 2015. Hai has continued to push the Cloud9 organization forward both
|
66
|
+
on and off The Rift since he retired from competitive play in 2015.","firstname":"Hai","lastName":"Lam","hometown":"USA","facebookUrl":null,"twitterUrl":null,"teamId":304,"profileUrl":"http://na.lolesports.com/node/330","role":"Jungler","roleId":"1","photoUrl":"http://riot-web-cdn.s3-us-west-1.amazonaws.com/lolesports/s3fs-public/C9-Hai-2015.jpg","isStarter":1,"residency":null,"contractExpiration":"2015-10-07T00:00:00+00:00"}'
|
67
|
+
http_version:
|
68
|
+
recorded_at: Wed, 05 Aug 2015 05:13:04 GMT
|
69
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,69 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://na.lolesports.com/api/player/329.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Sat, 08 Aug 2015 16:22:06 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Content-Length:
|
26
|
+
- '553'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Set-Cookie:
|
30
|
+
- __cfduid=d30df35434609acd8a45ff5d1e317805b1439050925; expires=Sun, 07-Aug-16
|
31
|
+
16:22:05 GMT; path=/; domain=.lolesports.com; HttpOnly
|
32
|
+
Cache-Control:
|
33
|
+
- public, max-age=1800
|
34
|
+
Etag:
|
35
|
+
- '"1439050926-1"'
|
36
|
+
Expires:
|
37
|
+
- Sat, 08 Aug 2015 16:52:06 GMT
|
38
|
+
Last-Modified:
|
39
|
+
- Sat, 08 Aug 2015 16:22:06 GMT
|
40
|
+
Vary:
|
41
|
+
- Accept-Encoding
|
42
|
+
Via:
|
43
|
+
- 1.1 varnish
|
44
|
+
X-Drupal-Cache:
|
45
|
+
- MISS
|
46
|
+
X-Varnish:
|
47
|
+
- '962092722'
|
48
|
+
X-Varnish-Cache:
|
49
|
+
- MISS
|
50
|
+
Cf-Cache-Status:
|
51
|
+
- EXPIRED
|
52
|
+
Accept-Ranges:
|
53
|
+
- bytes
|
54
|
+
Server:
|
55
|
+
- cloudflare-nginx
|
56
|
+
Cf-Ray:
|
57
|
+
- 212c8ede878928c4-SJC
|
58
|
+
body:
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: '{"name":"Meteos","bio":"William \u201cMeteos\u201d Hartman is the jungler
|
61
|
+
for Cloud9. A purveyor of experimental jungle champions, Meteos has helped
|
62
|
+
popularize a farm-heavy jungle style that relies on out-scaling his opponent
|
63
|
+
in the mid and late game. By combining that with an uncanny intuition for
|
64
|
+
countering his opposing jungler\u2019s ganks, Meteos quickly rose to MVP status
|
65
|
+
in the LCS. However, the NA LCS has become more competitive than ever, and
|
66
|
+
C9 is no longer guaranteed their spot at the top. ","firstname":"William","lastName":"Hartman","hometown":"USA","facebookUrl":null,"twitterUrl":null,"teamId":304,"profileUrl":"http://na.lolesports.com/node/329","role":"Jungler","roleId":"1","photoUrl":"http://riot-web-cdn.s3-us-west-1.amazonaws.com/lolesports/s3fs-public/C9-Meteos-2015Summer.jpg","isStarter":0,"residency":null,"contractExpiration":"2016-11-21T00:00:00+00:00"}'
|
67
|
+
http_version:
|
68
|
+
recorded_at: Sat, 08 Aug 2015 16:22:07 GMT
|
69
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,87 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://na.lolesports.com/api/series.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Wed, 12 Aug 2015 09:00:27 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Content-Length:
|
26
|
+
- '825'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Set-Cookie:
|
30
|
+
- __cfduid=de82aaf2bac8fc9df08dda6f8fd5723e21439370027; expires=Thu, 11-Aug-16
|
31
|
+
09:00:27 GMT; path=/; domain=.lolesports.com; HttpOnly
|
32
|
+
Cache-Control:
|
33
|
+
- public, max-age=1800
|
34
|
+
Etag:
|
35
|
+
- '"1439369629-1"'
|
36
|
+
Expires:
|
37
|
+
- Wed, 12 Aug 2015 09:30:27 GMT
|
38
|
+
Last-Modified:
|
39
|
+
- Wed, 12 Aug 2015 08:53:49 GMT
|
40
|
+
Vary:
|
41
|
+
- Accept-Encoding
|
42
|
+
Via:
|
43
|
+
- 1.1 varnish
|
44
|
+
X-Drupal-Cache:
|
45
|
+
- MISS
|
46
|
+
X-Varnish:
|
47
|
+
- '643094643'
|
48
|
+
X-Varnish-Cache:
|
49
|
+
- MISS
|
50
|
+
Cf-Cache-Status:
|
51
|
+
- HIT
|
52
|
+
Accept-Ranges:
|
53
|
+
- bytes
|
54
|
+
Server:
|
55
|
+
- cloudflare-nginx
|
56
|
+
Cf-Ray:
|
57
|
+
- 214afd70727011d7-SJC
|
58
|
+
body:
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: '[{"labelPublic":"Season 3 World Championship","season":"Season 3","label":"World
|
61
|
+
Championship","id":"1","url":"http://na.lolesports.com/tourney/series/1","tournaments":["24","25","26"]},{"labelPublic":"NA
|
62
|
+
Spring 1","season":"2014","label":"NA Spring 1","id":"2","url":"http://na.lolesports.com/tourney/series/2","tournaments":["31","32","34","35","36","49"]},{"labelPublic":"EU
|
63
|
+
Spring 1","season":"2014","label":"EU Spring 1","id":"3","url":"http://na.lolesports.com/tourney/series/3","tournaments":["38","40","41","42","43","48","50"]},{"labelPublic":"GPL
|
64
|
+
Spring","season":"2014","label":"GPL Spring","id":"4","url":"http://na.lolesports.com/tourney/series/4","tournaments":["51","54","53"]},{"labelPublic":"NA
|
65
|
+
Spring 2","season":"2014","label":"NA Spring 2","id":"5","url":"http://na.lolesports.com/tourney/series/5","tournaments":["56","57","58","59","60","68"]},{"labelPublic":"EU
|
66
|
+
Spring 2","season":"2014","label":"EU Spring 2","id":"6","url":"http://na.lolesports.com/tourney/series/6","tournaments":["62","63","64","65","66","67"]},{"labelPublic":"LPL
|
67
|
+
Spring","season":"2014","label":"LPL Spring","id":"7","url":"http://na.lolesports.com/tourney/series/7","tournaments":["72","117"]},{"labelPublic":"OGN
|
68
|
+
Spring","season":"2014","label":"OGN Spring","id":"8","url":"http://na.lolesports.com/tourney/series/8","tournaments":["79","80","81","82","83"]},{"labelPublic":"All-Star
|
69
|
+
2014 Paris","season":"2014","label":"All-Star 2014 Paris","id":"9","url":"http://na.lolesports.com/tourney/series/9","tournaments":["100","101"]},{"labelPublic":"NA
|
70
|
+
Summer 1","season":"2014","label":"NA Summer 1","id":"10","url":"http://na.lolesports.com/tourney/series/10","tournaments":["105","106","107","108","109","115"]},{"labelPublic":"EU
|
71
|
+
Summer 1","season":"2014","label":"EU Summer 1","id":"11","url":"http://na.lolesports.com/tourney/series/11","tournaments":["110","111","112","113","114","116"]},{"labelPublic":"GPL
|
72
|
+
Summer","season":"2014","label":"GPL Summer","id":"12","url":"http://na.lolesports.com/tourney/series/12","tournaments":["128","131","132"]},{"labelPublic":"LPL
|
73
|
+
Summer","season":"2014","label":"LPL Summer","id":"13","url":"http://na.lolesports.com/tourney/series/13","tournaments":["133","173"]},{"labelPublic":"OGN
|
74
|
+
Summer","season":"2014","label":"OGN Summer","id":"14","url":"http://na.lolesports.com/tourney/series/14","tournaments":["138","139","143","140","142"]},{"labelPublic":"EU
|
75
|
+
Summer 2","season":"2014","label":"EU Summer 2","id":"15","url":"http://na.lolesports.com/tourney/series/15","tournaments":["144","145","146","147","148","149"]},{"labelPublic":"NA
|
76
|
+
Summer 2","season":"2014","label":"NA Summer 2","id":"16","url":"http://na.lolesports.com/tourney/series/16","tournaments":["150","151","152","153","154","155"]},{"labelPublic":"China
|
77
|
+
Regional Qualifier","season":"2014","label":"LPL Regional Qualifier","id":"17","url":"http://na.lolesports.com/tourney/series/17","tournaments":["163","164","165"]},{"labelPublic":"IWC
|
78
|
+
Gamescom","season":"2014","label":"IWC Gamescom","id":"18","url":"http://na.lolesports.com/tourney/series/18","tournaments":["170","171"]},{"labelPublic":"World
|
79
|
+
Championship","season":"2014","label":"World Championship","id":"19","url":"http://na.lolesports.com/tourney/series/19","tournaments":["175","177","178","179","176"]},{"labelPublic":"NA
|
80
|
+
LCS Expansion","season":"2015","label":"NA LCS Expansion","id":"20","url":"http://na.lolesports.com/tourney/series/20","tournaments":["181","184","185"]},{"labelPublic":"EU
|
81
|
+
LCS Expansion","season":"2015","label":"EU LCS Expansion","id":"22","url":"http://na.lolesports.com/tourney/series/22","tournaments":["186","187","188"]},{"labelPublic":"MSI
|
82
|
+
2015","season":"2015","label":"2015 Mid-Season Invitational","id":"25","url":"http://na.lolesports.com/tourney/series/25","tournaments":["221","222"]},{"labelPublic":"Summer
|
83
|
+
Promotion","season":"2015","label":"2015 LCK Summer Promotion","id":"26","url":"http://na.lolesports.com/tourney/series/26","tournaments":["223","224"]},{"labelPublic":"Summer
|
84
|
+
Playoffs","season":"2015","label":"2015 LPL Summer Playoffs","id":"27","url":"http://na.lolesports.com/tourney/series/27","tournaments":["249","250"]}]'
|
85
|
+
http_version:
|
86
|
+
recorded_at: Wed, 12 Aug 2015 09:00:27 GMT
|
87
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://na.lolesports.com/api/series/20.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Tue, 11 Aug 2015 17:19:59 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Content-Length:
|
26
|
+
- '146'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Set-Cookie:
|
30
|
+
- __cfduid=dbe429976f4b780cf0eee3e685c273be01439313599; expires=Wed, 10-Aug-16
|
31
|
+
17:19:59 GMT; path=/; domain=.lolesports.com; HttpOnly
|
32
|
+
Cache-Control:
|
33
|
+
- public, max-age=1800
|
34
|
+
Etag:
|
35
|
+
- '"1439313414-1"'
|
36
|
+
Expires:
|
37
|
+
- Tue, 11 Aug 2015 17:49:59 GMT
|
38
|
+
Last-Modified:
|
39
|
+
- Tue, 11 Aug 2015 17:16:54 GMT
|
40
|
+
Vary:
|
41
|
+
- Accept-Encoding
|
42
|
+
Via:
|
43
|
+
- 1.1 varnish
|
44
|
+
X-Drupal-Cache:
|
45
|
+
- MISS
|
46
|
+
X-Varnish:
|
47
|
+
- '1386219066'
|
48
|
+
X-Varnish-Cache:
|
49
|
+
- MISS
|
50
|
+
Cf-Cache-Status:
|
51
|
+
- HIT
|
52
|
+
Accept-Ranges:
|
53
|
+
- bytes
|
54
|
+
Server:
|
55
|
+
- cloudflare-nginx
|
56
|
+
Cf-Ray:
|
57
|
+
- 21459bcfddf70daf-SJC
|
58
|
+
body:
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: '{"labelPublic":"NA LCS Expansion","season":"2015","label":"NA LCS Expansion","id":"20","url":"http://na.lolesports.com/tourney/series/20","tournaments":["181","184","185"]}'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Tue, 11 Aug 2015 17:20:02 GMT
|
63
|
+
recorded_with: VCR 2.9.3
|