I’m using the ruby API to make tweet searches.
This API is primarily to standard search API, but I can override the method and change the url. Thats what’ve done.
module Twitter::REST::Search
def search(query, options = {})
options = options.dup
options[:maxResults] ||= MAX_TWEETS_PER_REQUEST
request = Twitter::REST::Request.new(self, :get, '/1.1/tweets/search/30day/dev.json', options.merge(query: query))
Twitter::SearchResults.new(request)
end
end
When I make the request I get none result.
But when I make the request to the standard endpoint ‘/1.1/search/tweets.json’ it does return.
Can anyone help me?