{% 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.
Service data can be accessed via API on url:
{{script_protocol}}{{request.get_host}}{% url 'api:services' %}?uuid={{object.uuid}}
There are 2 optional query parameters:
Example using HTTPie:
http get '{{script_protocol}}{{request.get_host}}{% url 'api:services' %}?uuid={{object.uuid}}&startDate=2021-01-01&endDate=2050-01-01' 'Authorization:Token {{request.user.api_token}}'
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'