Checkiant API

Take a look at our Checkiant API v.1!

CHECKIANT PROTO API v.1 BETA

It is beta version of our API (it is PROTO API). We will use oauth2 soon...


USER


Log in

Send POST-query with fields: email & password here:

/login/ajax?ajax_param_1=api_v1

Example:


$.ajax({
  type: "POST",
  url: 'https://checkiant.com/login/ajax?ajax_param_1=api_v1',
  data: {email:'your_email@gmail.com', password:'123456787654'},
  success: function(data){console.log(data)},
});

All other queries need cookie 'PHPSESSID'



Log out

Send GET-query here:

/login/ajax?ajax_param_1=api_v1&ajax_param_2=exit



Get data of authorized user

Send GET-query here:

/users/ajax/getCurrentUserInfo?ajax_param_1=api_v1




CHECKINS & CHECKOUTS


Check-in

Send POST-query here: /intervals/api_v1

with data:


{
    task:"checkin"
    comment: "blah"
    project:1
    client:1
    data_source:"mantis"
}


Check-out

Send POST-query here: /intervals/api_v1

with data:


{
    task:"checkout"
    data_source:"mantis"
}


Goto pause

Send POST-query here: /intervals/api_v1

with data:


{
    task:"goto_pause"
    data_source:"mantis"
}


Edit interval

Send POST-query here: /intervals/api_v1

with data:


{
    task:"edit"
    data_source:"mantis"
    checkin_datetime: string_in_user_format_in_his_time_zone,
    checkout_datetime:string_in_user_format_in_his_time_zone,
    comment: "blah",
    client: 1
    project: 1
}


Get last interval

Send GET-query here: /intervals/ajax/getLastInterval


Get last intervals

Send GET-query here: /intervals/ajax/getLastIntervals?ajax_param_1=100

where ajax_param_1 is number of intervals you need (from 1 to 200 intervals available)



CLIENTS


Get all clients

Send GET-query here: /clients/ajax/getAllClients



Get current active client

Send GET-query here: /clients/ajax/getActiveClient



PROJECTS


Get all projects

Send GET-query here: /projects/ajax/getAllProjects



Get current active project

Send GET-query here: /projects/ajax/getActiveProject



WEBSOCKETS


Get current company-user hash

Send GET-query here: /websockets/ajax/getCurrentCompanyUserHashData