我有一个Twitter应用程序。使用消费者密钥,秘密以及Auth。钥匙,秘密集。我一直在使用这个应用程序。这些天来setup_twitter_oauth()
。然后我达到了限速问题。所以,我想切换到Stream API。我使用相同的消费者密钥,秘密&验证密钥,保密,然后提供如下的其他参数。我得到了一个被禁止的'错误:
> my_oauth <- OAuthFactory$new(consumerKey=consumerKey,consumerSecret=consumerSecret, requestURL=requestURL,accessURL=accessURL, authURL=authURL)
> my_oauth$oauthKey="<my-oauth-key>"
> my_oauth$oauthSecret="<my-oauth-secret>"
> my_oauth$handshakeComplete
[1] FALSE
Warning messages:
1: In installClassMethod(value, self, field, selfEnv, thisClass) :
method .objectPackage from class OAuth was not processed into a class method until being installed. Possible corruption of the methods in the class.
2: In installClassMethod(value, self, field, selfEnv, thisClass) :
method .objectParent from class OAuth was not processed into a class method until being installed. Possible corruption of the methods in the class.
> my_oauth$needsVerifier
[1] TRUE
Warning messages:
1: In installClassMethod(value, self, field, selfEnv, thisClass) :
method .objectPackage from class OAuth was not processed into a class method until being installed. Possible corruption of the methods in the class.
2: In installClassMethod(value, self, field, selfEnv, thisClass) :
method .objectParent from class OAuth was not processed into a class method until being installed. Possible corruption of the methods in the class.
> my_oauth$handshake(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl"))
To enable the connection, please direct your web browser to:
http://api.twitter.com/oauth/authorize?oauth_token=<oauth-token>
When complete, record the PIN given to you and provide it here: <oauth-pin>
Error: Forbidden
我无法弄清楚显示的那些警告。还有什么导致了禁忌?我是否需要特殊帐户权限才能发布流API?如果是的话,如何申请?