notifyEditorsExample = () => {
const createDraft = crud.create("https://example.com/blog/posts", {
payload: {
title: "How UCAN Tasks Changed My Life",
body: "This is the story of how one spec changed everything..."
}
});
const getEditors = crud.read("https://example.com/users/editors");
const notify = msg.send("mailto:akiko@example.com", {
to: createDraft.await().ok,
subject: "Coffee",
body: getEditors.await().ok
});
return notify;
}