Commit Graph

5 Commits

Author SHA1 Message Date
Thomas Bennett 38718dc289 fixed broken structs 2016-05-16 16:40:29 -07:00
Thomas Bennett 5400089684 updated EventsForMatch and MatchesForPlayer to use the new methods 2016-05-10 21:30:19 -07:00
Derek McQuay 1c339ec1a0 code reorg to leverage methods instead of function
moved all metadata.go function calls into method calls for the Halo
struct.  This will make it easier to encapsulate baseurl, apikey, blah
blah, and also makes the code a little bit more readable.  Stats.go and
profile.go are to follow.

Still need to implement http.Client interface and look over the code in
go-halo5-api.go.  Most likely needs to break out and be cleaned up
2016-05-10 21:30:18 -07:00
Derek McQuay b558a172fd adding api structs
possible errors, will need further testing
2016-05-10 21:30:09 -07:00
Thomas Bennett a6028a69aa Started work on returning structs instead of json strings
Lots of tests have been added to the main.go file.  Several of the functions return structs now instead of json strings.  I've added the initial structs for the remaining functions.
2016-05-10 13:31:32 -07:00