class TandaCLI::API::Client
- TandaCLI::API::Client
- Reference
- Object
Included Modules
Defined in:
tanda_cli/api/client.crConstant Summary
-
GET =
"GET"
-
INTERNAL_SERVER_ERROR_STRING =
"Internal Server Error"
-
POST =
"POST"
Constructors
- .new(base_uri : String, token : String, display : Display, current_user : Current::User | Nil = nil)
Instance Method Summary
- #get(endpoint : String, query : TQuery | Nil = nil) : HTTP::Client::Response
- #post(endpoint : String, body : TBody) : HTTP::Client::Response
Instance methods inherited from module TandaCLI::API::Endpoints::Shift
shifts(user_id : Int32, date : Time, show_notes : Bool = false) : API::Result(Array(Types::Shift))shifts(user_id : Int32, start_date : Time, finish_date : Time, show_notes : Bool = false) : API::Result(Array(Types::Shift)) 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(user_id : Int32) : API::Result(Array(Types::LeaveBalance))
leave_balances
Instance methods inherited from module TandaCLI::API::Endpoints::ClockIn
clockins(user_id : Int32, date : Time) : API::Result(Array(Types::ClockIn))
clockins,
send_clock_in(user_id : Int32, 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, display : Display, current_user : Current::User | Nil = nil)
#