June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package oauthcli import ( "context" "fmt" "os" "golang.org/x/oauth2" "golang.org/x/oauth2/github" ) // Setup return an oauth2Config configured to talk // to github, you need environment variables set // for your id and secret func Setup() *oauth2.Config { return &oauth2.Config{ ClientID: os.Getenv("GITHUB_CLIENT"), ClientSecret: os.Getenv("GITHUB_SECRET"), Scopes: []string{"repo", ...Read now
Unlock full access