{% extends "base.html" %} {% block title %}New token ยท dayfile{% endblock %} {% block main %}
{{ token.token }}
{% if token.kind == "write" %}
curl -X POST https://{{ slug }}.{{ base_domain }}/events \
-H "Authorization: Bearer {{ token.token }}" \
-H "Content-Type: application/json" \
-d '{"title": "Hello from my first event"}'
Run it, then open your log: the event shows up there on its own. Add "tags": ["todo"] to make it a to-do.
For a feed reader that cannot send headers, anyone with this address can read what the token allows. Treat it like a password:
https://{{ slug }}.{{ base_domain }}/t/{{ token.token }}/feed.atom
https://{{ slug }}.{{ base_domain }}/t/{{ token.token }}/feed.json
{% endif %}
{% endblock %}