with DrChrono and Docnify?
Add a recipient to an existing Docnify document. [See the documentation](See the documentation)
Create a new document in Docnify from a pre-existing template. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
drchrono: {
type: "app",
app: "drchrono",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.drchrono.com/api/users`,
headers: {
Authorization: `Bearer ${this.drchrono.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
docnify: {
type: "app",
app: "docnify",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.docnify.$auth.url}/api/v1/documents`,
headers: {
"Authorization": `${this.docnify.$auth.api_token}`,
},
params: {
page: `1`,
perPage: `1`,
},
})
},
})