class X::Client
- X::Client
- Reference
- Object
Overview
Main public interface
Defined in:
x/client.crConstructors
Instance Method Summary
- #authenticator : BearerTokenAuthenticator | OauthAuthenticator
- #authenticator? : BearerTokenAuthenticator | OauthAuthenticator | Nil
- #base_uri(*args, **options)
- #base_uri(*args, **options, &)
- #base_uri=(arg)
- #connect_timeout(*args, **options)
- #connect_timeout(*args, **options, &)
- #connect_timeout=(arg)
- #connection : Connection
- #content_type(*args, **options)
- #content_type(*args, **options, &)
- #content_type=(arg)
- #delete(endpoint : String)
- #get(endpoint : String)
- #max_redirects(*args, **options)
- #max_redirects(*args, **options, &)
- #max_redirects=(arg)
- #post(endpoint : String, body : String | Nil = nil)
- #put(endpoint : String, body : String | Nil = nil)
- #read_timeout(*args, **options)
- #read_timeout(*args, **options, &)
- #read_timeout=(arg)
- #redirect_handler : RedirectHandler
- #request_builder : RequestBuilder
- #response_handler : ResponseHandler
- #user_agent(*args, **options)
- #user_agent(*args, **options, &)
- #user_agent=(arg)
- #write_timeout(*args, **options)
- #write_timeout(*args, **options, &)
- #write_timeout=(arg)
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)
#