import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
deep_tagger: {
type: "app",
app: "deep_tagger",
}
},
async run({steps, $}) {
const data = {
"fo_id": `${this.deep_tagger.$auth.project_id}`,
"text": `<your_invoice>`,
}
return await axios($, {
method: "post",
url: `https://deeptagger.com/api/v1/extract_data`,
headers: {
"content-type": `application/x-www-form-urlencoded`,
"x-api-key": `${this.deep_tagger.$auth.api_key}`,
},
data,
})
},
})
Deep Tagger uses API keys for authentication. When you connect your Deep Tagger account, Pipedream securely stores the keys so you can easily authenticate to Deep Tagger APIs in both code and no-code steps.