I am using twitter gem to interact with twitter APIs. I am using single user authentication (not application only authentication) as shown here https://github.com/sferik/twitter/blob/master/examples/Configuration.md#single-user-authentication
I have…
Using rspec and the twitter gem https://github.com/sferik/twitter
I am trying to find a solution to mock a twitter stream ideally with a mechanism like VCR. Obviously VCR does not work on tcp socket connections only http requests.
If this is too…
As preface, I've followed through some tutorials (i.e. Michael Hartl's) though I'm still fairly novice. Forgive any cloudy terminology.
I am trying to build a simple application in Rails 4 that does the following:
User logs into application…
I am facing a strange TooManyRequests error. it is strange because when I use rails console and request for example [list_timeline(40906334)] more than 15 times < 180 times it works without the error.
however, when I do the same thing from the…
I am using twitter gem with rails in order to retrive the user timeline and post an update:
def index
@tweets = Twitter.home_timeline
end
def tweet
text = params[:text]
Twitter.update(text) unless text = nil
end
The view which…
I'm looking at creating a project where I would like a user to login and then it will return all their tweets from a specific time duration.
I have seen that it is possible using the twitter Api, but as I'm planning to use the twitter gem I would…
using the twitter gem I want to get all the followers of the authenticated user. I only get the followers of the registered twitter id for the application though.
I have a twitter.rb in the initializers which uses the consumer key/secret of the…
I just updated to rails 3.2 and twitter gem 2.0.2
Now when I start web server I get this message
ArgumentError (wrong number of arguments (3 for 1)):
twitter (2.0.2) lib/twitter.rb:10:in `new'
lib/twitter.rb:10 content
def new(options={})
…
I'm trying to do a search for a user's tweets with a specific hashtag, where the user's twitter handle is defined by the twitter attribute on the Profile model (@profile.twitter).
Here is the action in my controller:
def profile_twitter
@profile =…
I haven't worked with the Twitter API before.
I have a Sinatra application pushed to Heroku, which makes use of the Twitter gem. The only thing I do in the application (as far as Twitter is concerned) is to pull my 5 latest tweets.
@tweets =…
Is it possible to simply get the people you are following with just an id and full name? I do not need any of the additional data, it's a waste of bandwidth.
Currently the only solution I have is:
twitter_client = Twitter::Client.new
friend_ids =…
I have a tweets_controller
#called when user submits twitter form
def message
unless current_user
session[:twitter_message] = params[:twitter_message] #sets the message from the form so it's available for send_tweet in…
I'm running a streaming connection with twitter gem inside a thread. I have been disconnecting by simply killing the thread and opening a new one. I have an overlap between the old and new threads so I don't miss anything (hopefully).
But if I kill…