class Twitter::REST::Client
- Twitter::REST::Client
- Reference
- Object
Included Modules
Defined in:
twitter/rest/client.crConstant Summary
-
HOST =
"api.twitter.com"
Constructors
Instance Method Summary
- #access_token : String
- #access_token=(access_token : String)
- #access_token_secret : String
- #access_token_secret=(access_token_secret : String)
- #consumer_key : String
- #consumer_key=(consumer_key : String)
- #consumer_secret : String
- #consumer_secret=(consumer_secret : String)
- #get(path : String, params = {} of String => String)
- #post(path : String, form = {} of String => String)
- #user_agent : String | Nil
- #user_agent=(user_agent : String | Nil)
Instance methods inherited from module Twitter::REST::Favorites
like(id : Int64) : Twitter::Tweet
like,
unlike(id : Int64) : Twitter::Tweet
unlike
Instance methods inherited from module Twitter::REST::Geo
location(place_id : String)
location
Instance methods inherited from module Twitter::REST::DirectMessages
direct_message(id : Int32 | Int64, options = {} of String => String) : Twitter::DirectMessage
direct_message,
direct_messages_received(options = {} of String => String) : Array(Twitter::DirectMessage)
direct_messages_received,
direct_messages_sent(options = {} of String => String) : Array(Twitter::DirectMessage)
direct_messages_sent
Instance methods inherited from module Twitter::REST::Search
search(q : String, options = {} of String => String) : Array(Twitter::Tweet)
search
Instance methods inherited from module Twitter::REST::Tweets
destroy_status(tweet_id : Int32 | Int64, options = {} of String => String) : Twitter::Tweetdestroy_status(tweet : Twitter::Tweet, options = {} of String => String) : Twitter::Tweet destroy_status, retweet(tweet_id : Int32 | Int64, options = {} of String => String) : Twitter::Tweet
retweet(tweet : Twitter::Tweet, options = {} of String => String) : Twitter::Tweet retweet, status(id : Int32 | Int64) : Twitter::Tweet status, unretweet(tweet_id : Int32 | Int64, options = {} of String => String) : Twitter::Tweet
unretweet(tweet : Twitter::Tweet, options = {} of String => String) : Twitter::Tweet unretweet, update(status : String, options = {} of String => String) : Twitter::Tweet update
Instance methods inherited from module Twitter::REST::FriendsAndFollowers
follow(user_id : Int32 | Int64, options = {} of String => String) : Twitter::Userfollow(screen_name : String, options = {} of String => String) : Twitter::User
follow(user : Twitter::User, options = {} of String => String) : Twitter::User follow, follower_ids(screen_name : String, options = {} of String => String) : Array(Int64)
follower_ids(user_id : Int32 | Int64, options = {} of String => String) : Array(Int64)
follower_ids(user : Twitter::User, options = {} of String => String) : Array(Int64)
follower_ids(options = {} of String => String) : Array(Int64) follower_ids, followers(screen_name : String, options = {} of String => String) : Array(Twitter::User)
followers(user_id : Int32 | Int64, options = {} of String => String) : Array(Twitter::User)
followers(user : Twitter::User, options = {} of String => String) : Array(Twitter::User)
followers(options = {} of String => String) : Array(Twitter::User) followers, friend_ids(screen_name : String, options = {} of String => String) : Array(Int64)
friend_ids(user_id : Int32 | Int64, options = {} of String => String) : Array(Int64)
friend_ids(user : Twitter::User, options = {} of String => String) : Array(Int64)
friend_ids(options = {} of String => String) : Array(Int64) friend_ids, friends(screen_name : String, options = {} of String => String) : Array(Twitter::User)
friends(user_id : Int32 | Int64, options = {} of String => String) : Array(Twitter::User)
friends(user : Twitter::User, options = {} of String => String) : Array(Twitter::User)
friends(options = {} of String => String) : Array(Twitter::User) friends, unfollow(user_id : Int32 | Int64, options = {} of String => String) : Twitter::User
unfollow(screen_name : String, options = {} of String => String) : Twitter::User
unfollow(user : Twitter::User, options = {} of String => String) : Twitter::User unfollow
Instance methods inherited from module Twitter::REST::Timelines
home_timeline(options = {} of String => String) : Array(Twitter::Tweet)
home_timeline,
mentions_timeline(options = {} of String => String) : Array(Twitter::Tweet)
mentions_timeline,
retweets_of_me(options = {} of String => String) : Array(Twitter::Tweet)
retweets_of_me,
user_timeline(user_id : Int32 | Int64, options = {} of String => String) : Array(Twitter::Tweet)user_timeline(screen_name : String, options = {} of String => String) : Array(Twitter::Tweet) user_timeline
Instance methods inherited from module Twitter::REST::Users
block(screen_name : String, options = {} of String => String) : Twitter::Userblock(user_id : Int32 | Int64, options = {} of String => String) : Twitter::User
block(user : Twitter::User, options = {} of String => String) : Twitter::User block, block?(user_id : Int32 | Int64, options = {} of String => String) : Bool
block?(screen_name : String, options = {} of String => String) : Bool
block?(user : Twitter::User, options = {} of String => String) : Bool block?, blocked(options = {} of String => String) : Array(Twitter::User) blocked, blocked_ids(options = {} of String => String) : Array(Int64) blocked_ids, friendships(*user_ids : Int32 | Int64) : Array(Twitter::Relationship)
friendships(*screen_names : String) : Array(Twitter::Relationship) friendships, mute(options = {} of String => String) : Twitter::User mute, settings(options = {} of String => String) settings, unblock(screen_name : String, options = {} of String => String) : Twitter::User
unblock(user_id : Int32 | Int64, options = {} of String => String) : Twitter::User
unblock(user : Twitter::User, options = {} of String => String) : Twitter::User unblock, unmute(options = {} of String => String) : Twitter::User unmute, update_profile(options = {} of String => String) : Twitter::User update_profile, update_profile_background_image(options = {} of String => String) : Twitter::User update_profile_background_image, update_profile_banner(base64_string : String, options = {} of String => String) : Void update_profile_banner, update_profile_image(base64_string : String, options = {} of String => String) : Twitter::User update_profile_image, user(user_id : Int32 | Int64, options = {} of String => String) : Twitter::User
user(screen_name : String, options = {} of String => String) : Twitter::User
user(options = {} of String => String) : Twitter::User user, user_search(query : String, options = {} of String => String) : Array(Twitter::User) user_search, users(*user_ids : Int32 | Int64, options = {} of String => String) : Array(Twitter::User)
users(*screen_names : String, options = {} of String => String) : Array(Twitter::User) users
Constructor Detail
def self.new(consumer_key : String, consumer_secret : String, access_token : String, access_token_secret : String, user_agent : Nil | String = nil)
#