import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pdf_api_io: {
type: "app",
app: "pdf_api_io",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://pdf-api.io/api/templates`,
headers: {
Authorization: `Bearer ${this.pdf_api_io.$auth.api_token}`,
},
})
},
})
PDF-API.io uses API keys for authentication. When you connect your PDF-API.io account, Pipedream securely stores the keys so you can easily authenticate to PDF-API.io APIs in both code and no-code steps.