The NOWATCH API
NOWATCH API (0.9.0)
https://docs.api.nowatch.tech/_mock/apis/
https://docs.api.nowatch.tech/nowatch/
- Mock server
https://docs.api.nowatch.tech/_mock/apis/v1/session
https://docs.api.nowatch.tech/nowatch/v1/session
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.api.nowatch.tech/_mock/apis/v1/session \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '[
{
"start_datetime": "string",
"end_datetime": "string",
"type": 0,
"info": {
"name": "string",
"note": "string",
"subjective_inputs": [
{
"datetime": "string",
"type": 0,
"value": 0,
"tag": 0,
"note": "string"
}
],
"origin": 0,
"tool": "string"
}
}
]'- Mock server
https://docs.api.nowatch.tech/_mock/apis/v1/session
https://docs.api.nowatch.tech/nowatch/v1/session
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.api.nowatch.tech/_mock/apis/v1/session?start_date=string&end_date=string' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'shared-user: string'The type of subjective input.
- For SubjectiveInputType.DAY: Represents the "How was your day?" question. This question appears once each day, when the user opens the app after the theoretical end of the workday (between 5 p.m. and midnight).
- For SubjectiveInputType.SLEEP: Represents the "How was your sleep?" question. This question appears once each day, when the user opens the app after the theoretical end of the night of sleep (between 4 a.m. and midday).
The value associated with the subjective input. For "How was your day?" and "How was your sleep?" questions, possible values are:
- 1: Very bad
- 2: Bad
- 3: Okay
- 4: Good
- 5: Very good
A tag associated with the subjective input. For day-feedback and feelings, this tag should be 0 and is not used.
[ { "id": "string", "startDatetime": "2019-08-24T14:15:22Z", "endDatetime": "2019-08-24T14:15:22Z", "created": "2019-08-24T14:15:22Z", "lastUpdated": "2019-08-24T14:15:22Z", "type": 0, "info": { … } } ]
- Mock server
https://docs.api.nowatch.tech/_mock/apis/v1/session/{id}
https://docs.api.nowatch.tech/nowatch/v1/session/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.api.nowatch.tech/_mock/apis/v1/session/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'shared-user: string'The type of subjective input.
- For SubjectiveInputType.DAY: Represents the "How was your day?" question. This question appears once each day, when the user opens the app after the theoretical end of the workday (between 5 p.m. and midnight).
- For SubjectiveInputType.SLEEP: Represents the "How was your sleep?" question. This question appears once each day, when the user opens the app after the theoretical end of the night of sleep (between 4 a.m. and midday).
The value associated with the subjective input. For "How was your day?" and "How was your sleep?" questions, possible values are:
- 1: Very bad
- 2: Bad
- 3: Okay
- 4: Good
- 5: Very good
A tag associated with the subjective input. For day-feedback and feelings, this tag should be 0 and is not used.
{ "id": "string", "startDatetime": "2019-08-24T14:15:22Z", "endDatetime": "2019-08-24T14:15:22Z", "created": "2019-08-24T14:15:22Z", "lastUpdated": "2019-08-24T14:15:22Z", "type": 0, "info": { "name": "string", "note": "string", "subjectiveInputs": [ … ], "origin": 0, "toolData": "string" } }
- Mock server
https://docs.api.nowatch.tech/_mock/apis/v1/session/{id}
https://docs.api.nowatch.tech/nowatch/v1/session/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://docs.api.nowatch.tech/_mock/apis/v1/session/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"start_datetime": "string",
"end_datetime": "string",
"type": 0,
"info": {
"name": "string",
"note": "string",
"subjective_inputs": [
{
"datetime": "string",
"type": 0,
"value": 0,
"tag": 0,
"note": "string"
}
],
"origin": 0,
"tool": "string"
}
}'- Mock server
https://docs.api.nowatch.tech/_mock/apis/v1/session/{id}
https://docs.api.nowatch.tech/nowatch/v1/session/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.api.nowatch.tech/_mock/apis/v1/session/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'