Merge pull request #13 from 178inaba/update_credentials

Add AccountUpdate
This commit is contained in:
mattn 2017-04-16 20:01:22 +09:00 committed by GitHub
commit 0d53c41623
6 changed files with 118 additions and 0 deletions

View file

@ -36,6 +36,9 @@ func (c *Client) doAPI(method string, uri string, params url.Values, res interfa
return err
}
req.Header.Set("Authorization", "Bearer "+c.config.AccessToken)
if params != nil {
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
}
resp, err = c.Do(req)
if err != nil {
return err