Skip to content

Instantly share code, notes, and snippets.

@brunkb
Created January 11, 2016 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunkb/284bc835ebaf85276489 to your computer and use it in GitHub Desktop.
Save brunkb/284bc835ebaf85276489 to your computer and use it in GitHub Desktop.
Google Authorization Code Flow
GoogleAuthorizationCodeFlow flow =
new GoogleAuthorizationCodeFlow.Builder(
httpTransport, JSON_FACTORY, clientSecrets, SCOPES)
.setDataStoreFactory(dataStoreFactory)
.setAccessType("offline")
.build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment