upgrade lib usage

This commit is contained in:
gempir 2020-11-08 19:07:35 +01:00
parent 10bc7bb636
commit 33b08f5a9a

View file

@ -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