The NOWATCH API
NOWATCH API (0.9.0)
https://docs.api.nowatch.tech/_mock/apis/
https://docs.api.nowatch.tech/nowatch/
Request
Each day, the user receives two questions in the app, under the Now tab.
This question appears once each day, when you open the app after the theoretical end of the workday (between 5 p.m. and midnight).
- Possible values: very bad, bad, okay, good, very good.
This question appears once each day, when you open the app after the theoretical end of the night of sleep (between 4 a.m. and midday).
- Possible values: very bad, bad, okay, good, very good.
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.
- Mock server
https://docs.api.nowatch.tech/_mock/apis/v1/day-feedback
https://docs.api.nowatch.tech/nowatch/v1/day-feedback
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.api.nowatch.tech/_mock/apis/v1/day-feedback \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '[
{
"datetime": "string",
"type": 0,
"value": 0,
"tag": 0,
"note": "string"
}
]'- Mock server
https://docs.api.nowatch.tech/_mock/apis/v1/day-feedback
https://docs.api.nowatch.tech/nowatch/v1/day-feedback
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.api.nowatch.tech/_mock/apis/v1/day-feedback?type=string&start_date=string&end_date=string' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'shared-user: string'[ { "id": "string", "datetime": "2019-08-24T14:15:22Z", "created": "2019-08-24T14:15:22Z", "lastUpdated": "2019-08-24T14:15:22Z", "type": 0, "value": 0, "tag": 0, "note": "string" } ]
- Mock server
https://docs.api.nowatch.tech/_mock/apis/v1/day-feedback/{id}
https://docs.api.nowatch.tech/nowatch/v1/day-feedback/{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/day-feedback/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'shared-user: string'{ "id": "string", "datetime": "2019-08-24T14:15:22Z", "created": "2019-08-24T14:15:22Z", "lastUpdated": "2019-08-24T14:15:22Z", "type": 0, "value": 0, "tag": 0, "note": "string" }
- Mock server
https://docs.api.nowatch.tech/_mock/apis/v1/day-feedback/{id}
https://docs.api.nowatch.tech/nowatch/v1/day-feedback/{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/day-feedback/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"value": 0,
"tag": 0,
"note": "string"
}'- Mock server
https://docs.api.nowatch.tech/_mock/apis/v1/day-feedback/{id}
https://docs.api.nowatch.tech/nowatch/v1/day-feedback/{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/day-feedback/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'