with Thoughtly and DocumentPro?
Generates a new contact within your Thoughtly team. See the documentation
Uploads a document to DocumentPro's parser. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
thoughtly: {
type: "app",
app: "thoughtly",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.thought.ly/user`,
headers: {
"accept": `application/json`,
" x-api-token": `${this.thoughtly.$auth.api_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
documentpro: {
type: "app",
app: "documentpro",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.documentpro.ai/v1/templates`,
headers: {
"x-api-key": `${this.documentpro.$auth.api_key}`,
},
})
},
})