Now you have the power to help any user at any moment, because you know whom to reach and when to do it.
{
"screen_time": [
{
"isLocked": true,
"createdAt": "2022-01-19T21:50:27.558Z"
},
{
"isLocked": true,
"createdAt": "2022-01-19T21:50:27.558Z"
}
],
"sleep": [
{
"minutesSlept": 253,
"startDateTime": "2022-01-19T21:50:27.564Z",
"endDateTime": "2022-01-19T21:50:27.564Z",
"createdAt": "2022-01-19T21:50:27.564Z"
}
]
}
let analysis;
analyzeBehaviours = async () => {
let response = await fetch('https://api.sahha.ai/v1/analyse/ID', {
method: 'GET',
headers: {'Content-Type': 'application/json'
});
analysis = await response.json();
};
{
"id": "kYJk8CCasUeHTz5rvSc9Yw=="
"created_at": "2022-01-19T21:50:27.564Z"
"state": "depressed",
"sub_state": "moderate",
"range": 7,
"confidence": 0.91,
"phenotypes": [
"screen_time",
"sleep"
]
}