-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Activity#about_me and Activity#by_friends methods
- Loading branch information
Showing
2 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
module Twitter | ||
class Client | ||
# Defines methods related to URLs | ||
module Activity | ||
# Returns activity about me | ||
# | ||
# @note Undocumented | ||
# @rate_limited Yes | ||
# @requires_authentication Yes | ||
# @response_format `json` | ||
# @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 [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1. | ||
# @option options [Integer] :since_id Returns results with an ID greater than (that is, more recent than) the specified ID. | ||
# @return [Array] An array of actions | ||
# @example Return activity about me | ||
# Twitter.about_me | ||
def about_me(options={}) | ||
get("i/activity/about_me", options, :json) | ||
end | ||
|
||
# Returns activity by friends | ||
# | ||
# @note Undocumented | ||
# @rate_limited Yes | ||
# @requires_authentication Yes | ||
# @response_format `json` | ||
# @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 [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1. | ||
# @option options [Integer] :since_id Returns results with an ID greater than (that is, more recent than) the specified ID. | ||
# @return [Array] An array of actions | ||
# @example Return activity by friends | ||
# Twitter.by_friends | ||
def by_friends(options={}) | ||
get("i/activity/by_friends", options, :json) | ||
end | ||
end | ||
end | ||
end |