Difference between revisions of "Time Doctor API"

From wikieduonline
Jump to navigation Jump to search
Line 13: Line 13:
 
To obtain <code>id</code>, execute:
 
To obtain <code>id</code>, execute:
  
  [[curl -X GET]] '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'^
+
  [[curl -X GET]] '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 ==

Revision as of 12:58, 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

To obtain id, execute:

curl -X GET '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

Advertising: