2014-09-10 69 views
0

我試圖使用Oauth gem來訪問Twitter API,因此我可以製作一個twitter bot,按照以下教程:http://tutorials.jumpstartlab.com/projects/microblogger.html 我從Twitter獲得一個PIN碼並輸入它。但它以某種方式失敗了。 這裏是我得到的錯誤,當我運行程序:錯誤:oauth_token_secret已棄用

Initializing MicroBlogger 
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jumpstart_auth-0.4.0/lib/ju 
mpstart_auth.rb:44:in `block in twitter': [DEPRECATION] #oauth_token= is depreca 
ted. Use #access_token= instead. 
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jumpstart_auth-0.4.0/lib/ju 
mpstart_auth.rb:45:in `block in twitter': [DEPRECATION] #oauth_token_secret= is 
deprecated. Use #access_token_secret= instead. 

我使用Windows 7,使用Ruby版本1.9.3。

回答

1

更新的JumpStart-auth的當前版本0.6.0

https://rubygems.org/gems/jumpstart_auth

在這個版本0.6.0它ACCESS_TOKEN並且不再的oauth_token。

+0

謝謝先生,那個錯誤讓我很煩,現在它已經沒了:) – Moltas 2014-09-10 18:34:42