Skip to content

Commit

Permalink
enhance: ringcentral/examples/get_token: remove `oauth2more/ringcentr…
Browse files Browse the repository at this point in the history
…al` dependency
  • Loading branch information
grokify committed Sep 10, 2021
1 parent eafb608 commit 31b77e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ringcentral/examples/get_token/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"strings"

"github.com/grokify/oauth2more/credentials"
"github.com/grokify/oauth2more/ringcentral"
"github.com/grokify/simplego/fmt/fmtutil"
"github.com/jessevdk/go-flags"
"github.com/rs/zerolog/log"
Expand Down Expand Up @@ -49,7 +48,7 @@ func main() {
var token *oauth2.Token

if len(opts.CLI) > 0 {
token, err = ringcentral.NewTokenCli(credentials, "mystate")
token, err = credentials.NewTokenCli("mystate")
} else {
token, err = credentials.NewToken()
}
Expand Down

0 comments on commit 31b77e4

Please sign in to comment.