I would love to create a service that, at points at time in my day, will send me a generated text message with my @todos in them. e.g., when I get home send me all of my Home @todos, or when I get to work, send me my Work @todos.
I don’t think I can search at all in the existing APIs. Is something like this planned? Thx.
You can pull all the data once and send yourself the search results. Since you only want to do it once per day instead of whenever there are updates, pulling the entire document sounds appropriate.
It is fairly trivial to pull an entire document and perform searches in code. I don’t think the document size is an issue (for the server nor the client) unless the document is really really huge or you need to do the same thing every second.
const Client = require('dynalist-js');
const dyn = new Client('<my developer api token>');
dyn.readDocument(file_id, function(err, data) {
const todos = data.nodes.filter(function(node) {
return node.content.match(/@todo/);
});
console.log(todos);
});
I’m vaguely planning to build a search utility into my client class so one can use all search prameters just like in the Dynalist app, but that will take a while to get to.