api_football 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 +11 -0
- data/.rspec +3 -0
- data/.rubocop.yml +8 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +125 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +8 -0
- data/api_football.gemspec +43 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/fixtures/vcr_cassettes/competitions/all.yml +47 -0
- data/fixtures/vcr_cassettes/competitions/filter_by_country.yml +46 -0
- data/fixtures/vcr_cassettes/countries/all.yml +46 -0
- data/fixtures/vcr_cassettes/errors/api_key.yml +46 -0
- data/fixtures/vcr_cassettes/events/all.yml +2303 -0
- data/fixtures/vcr_cassettes/events/filter_by_league.yml +1080 -0
- data/fixtures/vcr_cassettes/h2h/all.yml +46 -0
- data/fixtures/vcr_cassettes/odds/all.yml +1149 -0
- data/fixtures/vcr_cassettes/odds/filter_by_league.yml +59 -0
- data/fixtures/vcr_cassettes/standings/all.yml +46 -0
- data/fixtures/vcr_cassettes/standings/filter_by_league.yml +66 -0
- data/lib/api_football/client.rb +39 -0
- data/lib/api_football/competition.rb +18 -0
- data/lib/api_football/country.rb +14 -0
- data/lib/api_football/error.rb +8 -0
- data/lib/api_football/event.rb +36 -0
- data/lib/api_football/h2h.rb +18 -0
- data/lib/api_football/http.rb +31 -0
- data/lib/api_football/odd.rb +35 -0
- data/lib/api_football/response.rb +14 -0
- data/lib/api_football/standing.rb +18 -0
- data/lib/api_football/version.rb +5 -0
- data/lib/api_football.rb +18 -0
- metadata +193 -0
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://apifootball.com/api/?APIkey=655309a09751b590f3ae9bcc01757eace8dcd4c29605170e6675a6044c1b3a3a&action=get_odds&firstTeam=Brentford&secondTeam=Rotherham%0A%20%20%20%20United
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.14.0
|
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 Sep 2018 01:56:01 GMT
|
23
|
+
Server:
|
24
|
+
- Apache/2.2.15 (CentOS)
|
25
|
+
X-Powered-By:
|
26
|
+
- PHP/5.3.3
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- "*"
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=2592000
|
31
|
+
Expires:
|
32
|
+
- Tue, 09 Oct 2018 01:56:01 GMT
|
33
|
+
Vary:
|
34
|
+
- Accept-Encoding,User-Agent
|
35
|
+
Content-Length:
|
36
|
+
- '84'
|
37
|
+
Connection:
|
38
|
+
- close
|
39
|
+
Content-Type:
|
40
|
+
- application/json
|
41
|
+
body:
|
42
|
+
encoding: ASCII-8BIT
|
43
|
+
string: '{"error":404,"message":"No odd found (please check your plan)!"}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 09 Sep 2018 03:56:02 GMT
|
46
|
+
recorded_with: VCR 4.0.0
|