我正在尝试使用ROAuth访问fitbit API,但在遇到第一个障碍时总是失败。
下面是我的代码:
library(ROAuth)
reqURL <- "https://api.fitbit.com/oauth/request_token"
accessURL <- "https://api.fitbit.com/oauth/access_token"
authURL <- "https://www.fitbit.com/oauth/authorize"
cKey <- "xxxxx"
cSecret <- "xxxxx"
credentials <- OAuthFactory$new(consumerKey=cKey,
consumerSecret=cSecret,
requestURL=reqURL,
accessURL=accessURL,
authURL=authURL)
credentials$handshake()运行此命令会出现以下相当隐秘的错误:
Error in strsplit(response, "&") : non-character argument有任何建议,非常感谢!
发布于 2013-06-05 12:14:50
按照@hadley的建议,而不是解决ROAuth问题,我转而使用httr包。this question中的代码对我来说很有效。
https://stackoverflow.com/questions/16882011
复制相似问题