with NEURONWriter and Roam Research?
Emit new event when a query is marked as 'done', indicating content is ready for publication.
Emit new event when a query is processed by NeuronWriter API and results are ready.
Emit new event for each new or modified linked reference in Roam Research.
Launches a new query based on provided keyword, search engine, and language. See the documentation
Adds content as a child block to a daily note page in Roam Research (access to encrypted and non encrypted graphs). See the documentation
Pulls the most recent revision of the content saved for a specific query. See the documentation
Add content as a child block to an existing or new page in Roam Research (access to encrypted and non encrypted graphs). See the documentation
Fetches the data related to a pre-defined query. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
neuronwriter: {
type: "app",
app: "neuronwriter",
}
},
async run({steps, $}) {
const data = {
"project": `${this.neuronwriter.$auth.project_id}`,
}
return await axios($, {
method: "post",
url: `https://app.neuronwriter.com/neuron-api/0.5/writer/list-queries`,
headers: {
"X-API-KEY": `${this.neuronwriter.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
roamresearch: {
type: "app",
app: "roamresearch",
}
},
async run({steps, $}) {
const data = {
"query": `[:find (rand 20 ?block-uid) . :in $ :where [?e :block/uid ?block-uid] [?e :block/page]]`,
}
return await axios($, {
method: "post",
url: `https://api.roamresearch.com/api/graph/${this.roamresearch.$auth.graph_name}/q`,
headers: {
"X-Authorization": `Bearer ${this.roamresearch.$auth.api_token}`,
},
data,
})
},
})