Included Modules

Class/Module Index [+]

Quicksearch

Twitter::API::Undocumented

Public Instance Methods

following_followers_of(*args) click to toggle source

@note Undocumented @rate_limited Yes @authentication Requires user context @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.

@overload following_followers_of(options={})

Returns users following followers of the specified user

@param options [Hash] A customizable set of options.
  @option options [Integer] :cursor (-1) Breaks the results into pages. Provide values as returned in the response objects's next_cursor and previous_cursor attributes to page back and forth in the list.
  @return [Twitter::Cursor]
@example Return users follow followers of @sferik
  Twitter.following_followers_of

@overload following_followers_of(user, options={})

Returns users following followers of the authenticated user

@param user [Integer, String, Twitter::User] A Twitter user ID, screen name, or object.
@param options [Hash] A customizable set of options.
  @option options [Integer] :cursor (-1) Breaks the results into pages. Provide values as returned in the response objects's next_cursor and previous_cursor attributes to page back and forth in the list.
  @return [Twitter::Cursor]
@example Return users follow followers of @sferik
  Twitter.following_followers_of('sferik')
  Twitter.following_followers_of(7505382)  # Same as above
# File lib/twitter/api/undocumented.rb, line 37
def following_followers_of(*args)
  cursor_from_response_with_user(:users, Twitter::User, :get, "/users/following_followers_of.json", args, :following_followers_of)
end
status_activity(id, options={}) click to toggle source

Returns activity summary for a Tweet

@note Undocumented @rate_limited Yes @authentication Requires user context @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid. @return [Twitter::Tweet] The requested Tweet. @param id [Integer] A Tweet ID. @param options [Hash] A customizable set of options. @example Return activity summary for the Tweet with the ID 25938088801

Twitter.status_activity(25938088801)
# File lib/twitter/api/undocumented.rb, line 52
def status_activity(id, options={})
  response = get("/i/statuses/#{id}/activity/summary.json", options)
  response[:body].merge!(:id => id) if response[:body]
  Twitter::Tweet.from_response(response)
end
Also aliased as: tweet_activity
statuses_activity(*args) click to toggle source

Returns activity summary for Tweets

@note Undocumented @rate_limited Yes @authentication Requires user context @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid. @return [Array<Twitter::Tweet>] The requested Tweets. @overload statuses_activity(*ids)

@param ids [Array<Integer>, Set<Integer>] An array of Tweet IDs.
@example Return activity summary for the Tweet with the ID 25938088801
  Twitter.statuses_activity(25938088801)

@overload statuses_activity(*ids, options)

@param ids [Array<Integer>, Set<Integer>] An array of Tweet IDs.
@param options [Hash] A customizable set of options.
# File lib/twitter/api/undocumented.rb, line 73
def statuses_activity(*args)
  arguments = Twitter::API::Arguments.new(args)
  arguments.flatten.threaded_map do |id|
    status_activity(id, arguments.options)
  end
end
tweet_activity(id, options={}) click to toggle source
Alias for: status_activity
tweet_count(url, options={}) click to toggle source

Returns Tweets count for a URL

@note Undocumented @rate_limited No @authentication Not required @return [Integer] @param url [Integer] A URL. @param options [Hash] A customizable set of options. @example Return Tweet count for twitter.com

Twitter.tweet_count("http://twitter.com/")
# File lib/twitter/api/undocumented.rb, line 90
def tweet_count(url, options={})
  connection = Faraday.new("https://cdn.api.twitter.com", @connection_options.merge(:builder => @middleware))
  connection.get("/1/urls/count.json", options.merge(:url => url)).body[:count]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.