{% extends "dashboard/service_base.html" %} {% load a17t_tags %} {% block head_title %}{{object.name}} Management{% endblock %} {% block service_actions %} View → {% endblock %} {% block service_content %}
Place the following snippet at the end of the <body>
tag on any page you'd like to track.
Shynet provides a simple API that you can use to pull data programmatically. You can access this data via this URL:
{{script_protocol}}{{request.get_host}}{% url 'api:services' %}?uuid={{object.uuid}}
There are 2 optional query parameters:
startDate
— to set the start date (in format YYYY-MM-DD)endDate
— to set the end date (in format YYYY-MM-DD)Example using cURL:
curl -H 'Authorization: Token {{request.user.api_token}}' '{{script_protocol}}{{request.get_host}}{% url 'api:services' %}?uuid={{object.uuid}}&startDate=2021-01-01&endDate=2050-01-01'