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:
@ -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
|
||||
|
Reference in New Issue
Block a user