Difference between revisions of "Time Doctor API"

From wikieduonline
Jump to navigation Jump to search
 
(12 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
* [[HTTP POST|POST]] https://api2.timedoctor.com/api/1.0/login
 
* [[HTTP POST|POST]] https://api2.timedoctor.com/api/1.0/login
 
Example:
 
Example:
  curl -H "Content-Type: [[application/json]]"  [[--request]] [[POST]] [[--data]] '{"email":"[email protected]","password":"YourPassword"}' https://api2.timedoctor.com/api/1.0/login
+
  [[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
 
* 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 ==
 
== See also ==

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: