Skip to content

Instantly share code, notes, and snippets.

@corynissen
Created September 10, 2013 14:37
Show Gist options
  • Select an option

  • Save corynissen/6510342 to your computer and use it in GitHub Desktop.

Select an option

Save corynissen/6510342 to your computer and use it in GitHub Desktop.
httr google prediction api example
library(httr)
google <- oauth_endpoint(NULL, "auth", "token", base_url = auth_url)
myapp <- oauth_app("google", client_id, secret=client_secret)
# this will open a browser window and ask permission for access
cred <- oauth2.0_token(google, myapp, scope = scope)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment