Implementing the API using the Flask module and tests using the unittest module in Python.
Visit https://appforusers.top/ to use the API.
- Endpoint:
/api/stats/users - Description: Get statistics about online users who were online at a specified time.
- Parameters:
dateuserId
- Endpoint:
/api/predictions/users - Description: Retrieve user predictions.
- Parameters:
dateuserIdtolerance
- Endpoint:
/api/stats/user/total - Description: Get total statistics for a user.
- Parameters:
dateaverageRequired(can betrueorfalse)
- Endpoint:
/api/user/forget - Description: Process a user forget request.
- Parameters:
userId
- Endpoint:
/api/report/<report_name> - Description: Get or post a report by name.
- Parameters:
fromto
Note: The name of the report should be specified by the user in the post request.