upgrade lib usage
This commit is contained in:
parent
10bc7bb636
commit
33b08f5a9a
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ func NewClient(clientID string, clientSecret string) Client {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
resp, err := client.GetAppAccessToken([]string{})
|
||||
resp, err := client.RequestAppAccessToken([]string{})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ func (c *Client) StartRefreshTokenRoutine() {
|
|||
ticker := time.NewTicker(24 * time.Hour)
|
||||
|
||||
for range ticker.C {
|
||||
resp, err := c.client.GetAppAccessToken([]string{})
|
||||
resp, err := c.client.RequestAppAccessToken([]string{})
|
||||
if err != nil {
|
||||
log.Error(err)
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue