const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.trackpilots.com/v1/settings/default-setting', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"statusCode": 200,
"statusMessage": "Fetched all team details successfully",
"error": null,
"data": {
"workDaySettings": {
"workDays": [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday"
]
},
"workHourSettings": {
"expectedWorkMinutesPerDay": 480,
"expectedProductiveWorkMinutesPerDay": 360,
"expectedInTime": "10:30 am"
},
"idleAlertSettings": {
"minimumIdleTimeMinutes": 5,
"enableIdleTimeAlert": true
},
"screenshotSettings": {
"enableScreenCapture": true,
"enableBlurScreenCapture": true,
"screenCaptureIntervalMinutes": 10
},
"timezoneSettings": {
"timezone": "Asia/Barnaul"
},
"stealthMonitoringSettings": {
"enableStealthMonitoring": true
},
"billingSettings": {
"pricingPlan": "starter"
}
}
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.trackpilots.com/v1/settings/default-setting', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"statusCode": 200,
"statusMessage": "Fetched all team details successfully",
"error": null,
"data": {
"workDaySettings": {
"workDays": [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday"
]
},
"workHourSettings": {
"expectedWorkMinutesPerDay": 480,
"expectedProductiveWorkMinutesPerDay": 360,
"expectedInTime": "10:30 am"
},
"idleAlertSettings": {
"minimumIdleTimeMinutes": 5,
"enableIdleTimeAlert": true
},
"screenshotSettings": {
"enableScreenCapture": true,
"enableBlurScreenCapture": true,
"screenCaptureIntervalMinutes": 10
},
"timezoneSettings": {
"timezone": "Asia/Barnaul"
},
"stealthMonitoringSettings": {
"enableStealthMonitoring": true
},
"billingSettings": {
"pricingPlan": "starter"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.