Skip to content

Instantly share code, notes, and snippets.

@timurvafin
Created September 15, 2012 15:15
Show Gist options
  • Save timurvafin/3728423 to your computer and use it in GitHub Desktop.
Save timurvafin/3728423 to your computer and use it in GitHub Desktop.
# Returns activity by friends
#
# @note Undocumented
# @rate_limited Yes
# @authentication_required Yes
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid./
# @return [Array] An array of actions
# @param options [Hash] A customizable set of options.
# @option options [Integer] :count Specifies the number of records to retrieve. Must be less than or equal to 100.
# @option options [Integer] :since_id Returns results with an ID greater than (that is, more recent than) the specified ID.
# @example Return activity by friends
# Twitter.activity_by_friends
def activity_by_friends(options={})
collection_from_response(Twitter::ActionFactory, :get, "/i/activity/by_friends.json", options)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment