Difference between revisions of "Time Doctor API"

From wikieduonline
Jump to navigation Jump to search
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
* https://api2.timedoctor.com/
 
* https://api2.timedoctor.com/
  
api2.timedoctor.com
+
<code>api2.timedoctor.com</code>
  
 
* [[HTTP POST|POST]] https://api2.timedoctor.com/api/1.0/login
 
* [[HTTP POST|POST]] https://api2.timedoctor.com/api/1.0/login
 +
Example:
 +
[[curl -H]] "[[Content-Type]]: [[application/json]]"  [[--request]] [[HTTP POST|POST]] [[--data]] '{"email":"[email protected]","password":"YourPassword"}' https://api2.timedoctor.com/api/1.0/login
 +
{"data":{"[[token]]":"6AsYXPFJgg48Wk71-x-TTS9ms2an9YYDrHpCQxZRZ2Fy","expiresAt":"2022-04-11T11:25:31.609Z","createdAt":"2021-10-13T11:25:31.609Z"}}
  
 +
* https://api2.timedoctor.com/api/1.1/invitations
  
 +
== Company id ==
 +
To obtain <code>id</code>, execute:
 +
 +
[[curl -X GET]] --silent 'https://api2.timedoctor.com/api/1.0/companies?no-workspaces=false&token=89KQ9pbqOtuIac-X_Cb38m7R_srwTBDUHuDoXX_6HH8TT' -H 'accept: [[application/json]]' | [[jq -r]] '. | .data[].company.id'
 +
 +
== See also ==
 
* {{Time Doctor}}
 
* {{Time Doctor}}
  
 
[[Category:API]]
 
[[Category:API]]
 
[[Category:Time Doctor]]
 
[[Category:Time Doctor]]

Latest revision as of 13:01, 13 October 2021

api2.timedoctor.com

Example:

curl -H "Content-Type: application/json"  --request POST --data '{"email":"[email protected]","password":"YourPassword"}' https://api2.timedoctor.com/api/1.0/login
{"data":{"token":"6AsYXPFJgg48Wk71-x-TTS9ms2an9YYDrHpCQxZRZ2Fy","expiresAt":"2022-04-11T11:25:31.609Z","createdAt":"2021-10-13T11:25:31.609Z"}}

Company id[edit]

To obtain id, execute:

curl -X GET --silent 'https://api2.timedoctor.com/api/1.0/companies?no-workspaces=false&token=89KQ9pbqOtuIac-X_Cb38m7R_srwTBDUHuDoXX_6HH8TT' -H 'accept: application/json' | jq -r '. | .data[].company.id'

See also[edit]

Advertising: