Created
November 25, 2013 07:12
-
-
Save alea12/7637459 to your computer and use it in GitHub Desktop.
Twitter gem のバージョンをあげたら Twitter.configure ができなくなってた
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Global configuration has been removed, as it was not threadsafe. | |
| # Without this, you will face an error saying: NoMethodError: undefined method `configure' for Twitter:Module | |
| client = Twitter::REST::Client.new do |config| | |
| config.consumer_key = "YOUR_CONSUMER_KEY" | |
| config.consumer_secret = "YOUR_CONSUMER_SECRET" | |
| config.access_token = "YOUR_ACCESS_TOKEN" | |
| config.access_token_secret = "YOUR_ACCESS_SECRET" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment