Created
September 10, 2013 14:37
-
-
Save corynissen/6510342 to your computer and use it in GitHub Desktop.
httr google prediction api example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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