Commit Graph

18 Commits (850e9e7bbf59de09ed69ee46d6f2114cf80e3921)

Author SHA1 Message Date
Icedream 850e9e7bbf Update example code in README. 2016-06-26 12:58:50 +02:00
Icedream e6526da3e0 Remove intermediate interface and provide Set methods for HttpClient and Token.
- Make the "Client" struct construction-friendly so it can be easily initialized with "new(footballdata.Client)".
- Rewrite example_test.go to show the respective new usage. Make it clear here that the SetToken call is optional.

This would fix #2.
2016-06-26 12:57:14 +02:00
Icedream 1d952c49e9 Revert "Move commentary for client methods to the actual interface."
This reverts commit 8f5d035e92.
2016-06-26 12:24:59 +02:00
Icedream 9d3290ff36 Update example code in README
- Replaced AuthToken member assignment to SetToken call.
2016-06-26 12:11:24 +02:00
Icedream 5418ecc69e Add separate examples for Client. 2016-06-26 12:03:11 +02:00
Icedream 8f5d035e92 Move commentary for client methods to the actual interface. 2016-06-25 23:35:38 +02:00
Icedream c65cf6f06c Complements to pull request for improving comments.
- Fix casing of method commentary.
- Fix grammar and punctuation for client.SetToken.
2016-06-25 23:29:23 +02:00
Icedream 65ccba4d66 Normalize code whitespace. 2016-06-25 23:20:59 +02:00
Icedream 654ecca4c5 Merge pull request #1 from programaths/develop
Better abstraction & https://golang.org/doc/effective_go.html#commentary
2016-06-25 23:09:50 +02:00
Icedream 1078d876c9 Add additional score info in FixtureResult.
- Adds struct FixtureScore which is essentially a copy of the old FixtureResult.
- Adds fields HalfTime, ExtraTime and PenaltyShootout to FixtureResult, all containing FixtureScore instances or nil if non-existent.
2016-06-25 22:42:56 +02:00
Christian 0ae7a5f5b6 Failing test due to API divergence 2016-06-25 12:29:32 +02:00
Christian cb16d45ecb Better abstraction & https://golang.org/doc/effective_go.html#commentary 2016-06-25 12:15:58 +02:00
Icedream df54a3b11f Fix number formatting in requests. 2016-06-13 19:47:09 +02:00
Icedream 4ebf01f875 Fix nil map assignment. 2016-06-13 19:46:46 +02:00
Icedream 2e65239ca1 Return error if status code returned from the API is not 200. 2016-06-13 19:46:37 +02:00
Icedream 948c454c25 Fix return value of SoccerSeasonFixturesRequest.Do(). 2016-06-13 19:25:37 +02:00
Icedream 8f01fa1d86 travis: Remove the custom path hacks, we don't need them. 2016-06-13 00:41:28 +02:00
Icedream 055b2a4227 Initial commit. 2016-06-13 00:39:00 +02:00