Типизировал ответ на запрос обмена токена
This commit is contained in:
parent
699b61ea5e
commit
f94b565c23
1 changed files with 2 additions and 2 deletions
|
@ -101,8 +101,8 @@ func (api *Client) doRequest(resourceUrl string, requestParams requestOptions, r
|
|||
return nil
|
||||
}
|
||||
|
||||
func (api *Client) RefreshToken() (*map[string]interface{}, error) {
|
||||
result := new(map[string]interface{})
|
||||
func (api *Client) RefreshToken() (*OauthTokenResponse, error) {
|
||||
result := new(OauthTokenResponse)
|
||||
request := map[string]string{
|
||||
"client_id": api.options.ClientId,
|
||||
"client_secret": api.options.ClientSecret,
|
||||
|
|
Loading…
Reference in a new issue