class Twitter::REST::Client

Included Modules

Defined in:

twitter/rest/client.cr

Constant Summary

Host = "api.twitter.com"

Constructors

Instance Method Summary

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::Tweet
destroy_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::User
follow(screen_name : String, options = {} of String => String) : Twitter::User
follow(user : Twitter::User, options = {} of String => String) : Twitter::User
follow
, follower_ids(options = {} of String => String) : Array(Int64) follower_ids, friend_ids(options = {} of String => String) : Array(Int64) friend_ids, 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::User
block(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?(user : Twitter::User, options = {} of String => String) : Bool
block?(screen_name : String, 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, 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) #

[View source]

Instance Method Detail

def access_token : String #

[View source]
def access_token=(access_token : String) #

[View source]
def access_token_secret : String #

[View source]
def access_token_secret=(access_token_secret : String) #

[View source]
def consumer_key : String #

[View source]
def consumer_key=(consumer_key : String) #

[View source]
def consumer_secret : String #

[View source]
def consumer_secret=(consumer_secret : String) #

[View source]
def get(path : String, params = {} of String => String) #

[View source]
def post(path : String, form = {} of String => String) #

[View source]
def user_agent : String | Nil #

[View source]
def user_agent=(user_agent : String | Nil) #

[View source]