JavaScript
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.trackpilots.com/v1/my-team/time-logs/{userId}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
200
Example
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
User ID of the team member
"ab7c4f30-1024-471a-a767-739df0dc53fd"
Timezone for logs calculation
"Asia/Kolkata"
Fetched my team time logs successfully.
true
"Fetched user work summary successfully"
null
Show child attributes