I'm trying to register OAuth from R in order to analyze tweets (using twitteR and ROAuth packages), but I don't know how to get consumers key and secret key. What should I do?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
The project vignette for twitteR discusses this to some degree. It's in section 6 (page 7).
Syntax examples are even given:
> cred <- OAuthFactory$new(consumerKey = YOURKEY, consumerSecret = YOURSECRET,
+ requestURL = requestURL, accessURL = accessURL, authURL = authURL)
> cred$handshake()