class X::Client

Overview

Main public interface

Defined in:

x/client.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(bearer_token : String | Nil = nil, api_key : String | Nil = nil, api_key_secret : String | Nil = nil, access_token : String | Nil = nil, access_token_secret : String | Nil = nil, base_uri : URI = Connection::DEFAULT_BASE_URL, connect_timeout : Time::Span | Int32 | Float64 = Connection::DEFAULT_CONNECT_TIMEOUT, read_timeout : Time::Span | Int32 | Float64 = Connection::DEFAULT_READ_TIMEOUT, write_timeout : Time::Span | Int32 | Float64 = Connection::DEFAULT_WRITE_TIMEOUT, content_type : String = RequestBuilder::DEFAULT_CONTENT_TYPE, user_agent : String = RequestBuilder::DEFAULT_USER_AGENT, max_redirects : Int32 = RedirectHandler::DEFAULT_MAX_REDIRECTS) #

[View source]

Instance Method Detail


[View source]
def authenticator? : BearerTokenAuthenticator | OauthAuthenticator | Nil #

[View source]
def base_uri(*args, **options) #

[View source]
def base_uri(*args, **options, &) #

[View source]
def base_uri=(arg) #

[View source]
def connect_timeout(*args, **options) #

[View source]
def connect_timeout(*args, **options, &) #

[View source]
def connect_timeout=(arg) #

[View source]
def connection : Connection #

[View source]
def content_type(*args, **options) #

[View source]
def content_type(*args, **options, &) #

[View source]
def content_type=(arg) #

[View source]
def delete(endpoint : String) #

[View source]
def get(endpoint : String) #

[View source]
def max_redirects(*args, **options) #

[View source]
def max_redirects(*args, **options, &) #

[View source]
def max_redirects=(arg) #

[View source]
def post(endpoint : String, body : String | Nil = nil) #

[View source]
def put(endpoint : String, body : String | Nil = nil) #

[View source]
def read_timeout(*args, **options) #

[View source]
def read_timeout(*args, **options, &) #

[View source]
def read_timeout=(arg) #

[View source]
def redirect_handler : RedirectHandler #

[View source]
def request_builder : RequestBuilder #

[View source]
def response_handler : ResponseHandler #

[View source]
def user_agent(*args, **options) #

[View source]
def user_agent(*args, **options, &) #

[View source]
def user_agent=(arg) #

[View source]
def write_timeout(*args, **options) #

[View source]
def write_timeout(*args, **options, &) #

[View source]
def write_timeout=(arg) #

[View source]