-
Notifications
You must be signed in to change notification settings - Fork 9
Tip: Recording Dones by HTTP Request
Dones uses the WordPress REST API as its primary point of interaction for creating, editing, and deleting dones tasks. Since Dones is merely a client, you can also use the REST API from any other client capable of sending HTTP requests.
The one main caveat is that, by default, the WordPress REST API only accepts cookies as a form of authentication. It is built to support other authentication measures, but these must be installed as plugins.
https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/
To create dones on behalf of users using an external client, you may consider installing one of the following plugins:
Either of these plugins will enable the REST API to accept authentication details in a request to authorize requests made on behalf of a user on your site.
Dones endpoints are available on the dones/v1
namespace. To see all available routes, navigate to http://example.com/wp-json/dones/v1, replacing example.com
with the host name of your own site. Common endpoints include dones/v1/dones
(retrieve, edit, and delete dones) and dones/v1/tags
(retrieve latest tags).