v0.1.0 release

Updated tests and client to use the authorization token
Fixed readme and added the example to the examples folder
This commit is contained in:
densestvoid
2020-07-31 07:29:08 -04:00
parent 31885d2726
commit c6f6857cfa
15 changed files with 93 additions and 38 deletions

View File

@ -59,6 +59,11 @@ func (r response) UnmarshalJSON(bs []byte) error {
}
func (c Client) do(req *http.Request, i interface{}) error {
URL := req.URL
query := URL.Query()
query.Set("token", c.authorizationToken)
URL.RawQuery = query.Encode()
getResp, err := c.httpClient.Do(req)
if err != nil {
return err