Twitter API v1 has been officially retired so don't use this proof-of-concept gem anymore.
Twitter public (anonymous) client for old v1.0 API just to retrieve the last N user statuses.
$ gem install twitter_anonymous_client
or add to your Gemfile this line: gem 'twitter_anonymous_client'
then run bundle install
require 'twitter_anonymous_client'
# Many tweets
tweets = Twitter::Client.new.user_timeline('elgalu', count: 2)
elgalu = tweets.first #=> #<Twitter::Tweet:0x00.. @id="3076....>
elgalu.text #=> "Console Ruby debug is easy - Leo Gallucci's blog http://t.co/JUpUdyf5ts"
# Just the last tweet
last = Twitter::Client.new.last_tweet('elgalu')
last.status_url #=> "https://twitter.com/elgalu/status/307606752055148545"
- Fork it.
- Make your feature addition or bug fix and create your feature branch.
- Update the Change Log.
- Add specs/tests for it. This is important so I don't break it in a future version unintentionally.
- Commit, create a new Pull Request.
- Check that your pull request passes the build.
Released under the MIT License. See the LICENSE file for further details.
RubyGems | Documentation | Source | Bugtracker | Build Status | Dependency Status | Code Climate