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::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
, 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, 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
, 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? #

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

[View source]