class TandaCLI::API::Client

Included Modules

Defined in:

tanda_cli/api/client.cr

Constant Summary

GET = "GET"
INTERNAL_SERVER_ERROR_STRING = "Internal Server Error"
POST = "POST"

Constructors

Instance Method Summary

Instance methods inherited from module TandaCLI::API::Endpoints::Shift

shifts(date : Time, show_notes : Bool = false) : API::Result(Array(Types::Shift))
shifts(start_date : Time, finish_date : Time, show_notes : Bool = false) : API::Result(Array(Types::Shift))
shifts
, todays_shifts(show_notes : Bool = false) : API::Result(Array(Types::Shift)) todays_shifts

Instance methods inherited from module TandaCLI::API::Endpoints::Roster

roster_on_date(date : Time) : API::Result(Types::Roster) roster_on_date

Instance methods inherited from module TandaCLI::API::Endpoints::PersonalDetails

personal_details : API::Result(Types::PersonalDetails) personal_details

Instance methods inherited from module TandaCLI::API::Endpoints::Me

me : API::Result(Types::Me) me

Instance methods inherited from module TandaCLI::API::Endpoints::LeaveRequest

leave_requests(ids : Array(Int32)) : API::Result(Array(Types::LeaveRequest)) leave_requests

Instance methods inherited from module TandaCLI::API::Endpoints::LeaveBalance

leave_balances : API::Result(Array(Types::LeaveBalance)) leave_balances

Instance methods inherited from module TandaCLI::API::Endpoints::ClockIn

clockins(date : Time) : API::Result(Array(Types::ClockIn)) clockins, send_clock_in(time : Time, type : String, photo : String | Nil = nil, mobile_clockin : Bool = false) : API::Result(Nil) send_clock_in

Constructor Detail

def self.new(base_uri : String, token : String) #

[View source]

Instance Method Detail

def get(endpoint : String, query : TQuery | Nil = nil) : HTTP::Client::Response #

[View source]
def post(endpoint : String, body : TBody) : HTTP::Client::Response #

[View source]