I'm struggling to get my app to display a timeline of feeds from my app. So far I've used the oauth-plugin, oauth and twitter gems (for rails3) to get it authorised. This has worked just fine.
Now I'm struggling when I try and connect.
I end up with…
I am getting this error on my Heroku deployment:
Errno::EAFNOSUPPORT: Address family not supported by protocol -
socket2
usrruby19.2libruby1.9.1nethttprb:644:in initialize
usrruby19.2libruby1.9.1nethttprb:644:in open
…
I'm new to Ruby and I'm using sferik gem to get user id matching a search query (first result). The ultimate goal is to get users id matching with a column from a json file
I've read the documentation but don't know really how start... any help…
My application habitually makes a request to the Twitter API for a user's timeline (the user's tweets).
As an aside, I'm using the twitter gem and configured a Twitter client in order to enable my app to make the request:
client =…
I'm using rails to build an application which allows users to authorize and connect to the Twitter API using their Twitter account. The log in works, but i have a problem with the posts (i'm using this gem): when i try to run rails db:migrate i get…
I'm new to Rails and developing in general and am trying to use the Twitter gem to search for tweets by location and keywords in my Rails app. Following the documentation at http://www.rubydoc.info/gems/twitter I have been able to figure out how to…
so im using the ruby twitter gem and api in conjunction with omniauth, to log into twitter via a simple rails app, and return the first 20 followers of a user. The main piece of code to do this is a method in a lib file stating:
def followers
…
I'm unable to get the favorite_count of a retweet from the JSON response of the Twitter REST api using the twitter-gem for my ROR app. The response returns 0 for the favorite_count of retweets. Is there a way to obtain this value from the response…
I'm using twitter gem as a library to work with twitter api.
I've noticed a weird issue with getting retweets for the tweet. Whenever I make a call I get only retweets from my mutual connections.
So, if someone retweets my post I'll never be able…
EDITED: reasonable answer at comments.
I am looking for a way to check Twitter API rate limits before of making my consults but for the next snippet every time I call search , remaining is decremented twice instead of just once.
user =…
I want to get my tweets using user_timeline()and save them to my application database.
I'm not sure where to call that function and how to save each tweet associating with my user.
This is the way I'm saving users to the database
class…
I've been using the Twitter Streaming API for a while with no problems, but recently switched over to using the REST and am a bit confused.
I'm trying to iterate through the results of tweets using #vietnam. After reading the documentation, it…
How do I delete a Tweet given it's ID?
I've tried Twitter.status_destroy(1221312312) to no avail (undefined method)
These also do not work:
client.status(13123123123).delete
client.status(13123123123).destroy
I'm trying to write a bot using ruby and the twitter gem.
Here is my code :
#!/usr/bin/env ruby
require 'twitter'
@client = Twitter::REST::Client.new do |config|
config.consumer_key = "xxx"
config.consumer_secret = "xxx"
…
I've been having a tough time finding info on this since the tweet count was restricted. I've started with this to get tweets in the last two week window:
client.search(
"to:justinbieber marry me",
result_type: "recent",
…