Commit Graph

23 Commits (883bfcf113d7654ddd832c2155b0036ebeff99dc)

Author SHA1 Message Date
Icedream 883bfcf113
Update examples to use Competition instead of SoccerSeason. 2016-07-09 21:06:13 +02:00
Icedream d0afff06fc
Deprecate Soccerseason methods and structs in favor of the Competition model.
Deprecated structs and methods will be removed before tagging v1 of the implementation.
2016-07-09 20:59:24 +02:00
Icedream 782a1683b3
Add missing states POSTPONED, CANCELED and SCHEDULED for FixtureStatus. 2016-07-09 20:57:58 +02:00
Icedream c3d9a59b0d
Fix typo in SoccerSeason definition. 2016-07-09 20:50:13 +02:00
Icedream cb21cdb829 Provide fluent-style configuration methods as alternatives to the Set methods.
- Allows for quick and easy one-liners and also allows for temporarily changing configuration for a few requests.
- Update example codes to promote usage of fluent-style configuration.
2016-06-26 13:04:04 +02:00
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