geoffjentry / roauth Goto Github PK
View Code? Open in Web Editor NEWOAuth implementation for R
Home Page: http://cran.r-project.org/web/packages/ROAuth/index.html
OAuth implementation for R
Home Page: http://cran.r-project.org/web/packages/ROAuth/index.html
asdf
Getting a cryptic error message on authentication, not sure why. I have the function:
ROAuth_figshare <- function(cKey = getOption("FigshareKey", stop("Missing Figshare consumer key")),
cSecret = getOption("FigsharePrivateKey", stop("Missing Figshare app secret")),
curl = getCurlHandle(), ...) {
reqURL <- "http://api.figshare.com/v1/pbl/oauth/request_token"
accessURL <- "http://api.figshare.com/v1/pbl/oauth/access_token"
authURL <- "https://api.figshare.com/v1/pbl/oauth/authorize"
cred <- OAuthFactory$new(cKey, cSecret, reqURL, accessURL, authURL)
cred$handshake()
}
I store my keys in the options as indicated, and run the function, which throws this error:
> require(ROAuth)
> cred <- ROAuth_figshare()
Error in function (value) :
invalid replacement for field 'needsVerifier', should be from class "logical" or a subclass (was class "character")
Enter a frame number, or 0 to exit
1: ROAuth_figshare()
2: #7: OAuthFactory$new(cKey, cSecret, reqURL, accessURL, authURL)
3: methods::new(def, ...)
4: initialize(value, ...)
5: initialize(value, ...)
6: .Object$initialize(...)
7: ROauth.R#17: function (value)
{
if (missing(value))
`.->needsVer
What did I miss? (I would ask on duncantl 's fork but forks don't have issues trackers)
Figshare API documentation is here: http://api.figshare.com/docs/intro.html#authentication
Unable to log in via OAuth even though I have a consumer-key, consumer-secret, oauth-key (pregenerated), and oauth-token).
I've been getting 'signature_invalid' when I attempt to connect via ROAuth (after manually setting signMethod='HMAC' and handshakeComplete=TRUE). I successfully connected to the same site using these tokens via Ruby and its 'roauth' gem.
It looks like I'm encountering this issue:
http://lists.hexdump.org/pipermail/twitter-users-hexdump.org/2012-February/000058.html
Judging by the Github timestamps on the repo, this hasn't been fixed yet.
Any chance of an update that works? Or should I just start doing my data downloading in Ruby?
There is no handshaking necessary. Here is some sample code:
library(ROAuth)
cKey<-'put your consumer key here'
cSecret<-'put your consumer secret here'
reqURL<-"http://yboss.yahooapis.com/geo/placefinder"
params<-c(q="701+first+avenue+sunnnyvale")
resp<-ROAuth:::oauthGET(url=reqURL,consumerKey=cKey,consumerSecret=cSecret,oauthKey=NULL,oauthSecret=NULL,params=params)
I'm trying to use ROAuth
on tumblr's api
Request-token URL:
POST http://www.tumblr.com/oauth/request_token
Authorize URL:
http://www.tumblr.com/oauth/authorize
Access-token URL:
POST http://www.tumblr.com/oauth/access_token
Following the directions in cran.r-project.org/web/packages/ROAuth/ROAuth.pdf:
> cred$handshake()
Error in strsplit(response, "&") : non-character argument
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.