Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example of an httr oauth for the yahoo APIs
# 1. Find OAuth settings for yahoo:
# Endpoints described here...
yahoo <- oauth_endpoint("get_request_token", "request_auth", "get_token",
base_url = "")
# 2. Register an application at...
# Insert your values below - if secret is omitted, it will look it up in
# the YAHOO_CONSUMER_SECRET environmental variable.
myapp <- oauth_app("yahoo", key = "consumer.key here",
secret= "consumer.secret here")
# 3. Get OAuth credentials
token <- oauth1.0_token(yahoo, myapp)
# 4. Generate signature and make requests
sig <- sign_oauth1.0(myapp, token$oauth_token, token$oauth_token_secret)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.