with Contentstack and Roam Research?
Emit new event when a new asset is created in ContentStack.
Emit new event when a new entry is created in ContentStack.
Emit new event when an entry is published in ContentStack.
Emit new event for each new or modified linked reference in Roam Research.
Adds content as a child block to a daily note page in Roam Research (access to encrypted and non encrypted graphs). 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
Add content underneath an existing block in your Roam Research graph (access to encrypted and non encrypted graphs). See the documentation
Generic append blocks for Roam Research pages. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
contentstack: {
type: "app",
app: "contentstack",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.contentstack.$auth.region}api.contentstack.io/v3/content_types`,
headers: {
"api_key": `${this.contentstack.$auth.stack_api_key}`,
"authorization": `${this.contentstack.$auth.management_token}`,
"content-type": `application/json`,
},
})
},
})
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,
})
},
})