Commit Graph

7 Commits

Author SHA1 Message Date
bryanl b4e33ee3ae Don't drop existing query keys
When adding options to a path, don't drop existing keys. This will enable image pagination when there is a type key to work. The bug was trying to addOptions to an existing path with query values. Previously if a path `/path?type=alpha` was passed, key `page=2` would be appeneded, but `type=alpha` would be dropped.
2015-05-29 15:10:21 -07:00
Raphael Simon c4ca5889d2 Add optional API request completion callback to client.
This makes it possible for consumers of the package to debug API calls made to the DO APIs.

Usage:

client.OnRequestCompleted(func(req *http.Request, resp *http.Response) {
	// ... e.g. use httputil.DumpRequest / httputil.DumpResponse
})
2015-05-02 10:29:09 -07:00
Andrew Starr-Bochicchio ccc93aa250 Add support for the /v2/account endpoint. 2015-04-06 13:09:21 -04:00
bryanl 4890776cfd don't chomp existing err on close 2015-03-22 14:12:09 -04:00
bryanl f1424cedf5 Add missing error checks
Adds missing error checks to godo. Ensures calls to Client.Do and json decoding are evaluated when neccessary.
2015-03-21 15:21:49 -04:00
bryanl 96accbf5e9 Update to current API spec
* Allow requesting pages in lists by number
* Add tooling to allow examination of page links if they exist
* Add domain management CRUD
2014-09-08 20:36:11 -04:00
bryanl 4b5588d885 Services are interfaces
* Converted services to interfaces to make testing with them
in downstream projects easier to do.
* Removed testify dependency.
2014-09-04 16:22:37 -04:00
Renamed from doapi.go (Browse further)