with Teach 'n Go and Roam Research?
Creates a new prospect inside Teach 'n Go. 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
Registers a new student in Teach 'n Go. 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
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
teach_n_go: {
type: "app",
app: "teach_n_go",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.teachngo.com/globalApis/student_list`,
headers: {
"X-API-KEY": `${this.teach_n_go.$auth.api_key}`,
},
})
},
})
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,
})
},
})