class Jitsu::Client

Defined in:

jitsu/client.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(host : String = "", token : String = "") #

[View source]

Instance Method Detail

def base_url : URI #

Returns the base url for which this client will make API requests to.


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

Performs a GET request on the path.


[View source]
def host : String #

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

[View source]
def post(path : String, body : String) #

Performs a POST request on the path with a body.


[View source]
def set_host(host : String) #

Set the @host instance variable for this client.


[View source]
def set_token(token : String) #

Sets the @token instance variable for this client.


[View source]
def token : String #

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

[View source]