import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
filescan: {
type: "app",
app: "filescan",
}
},
async run({steps, $}) {
const data = {
"url": `https://pipedream.com/s.v0/app_13GhYE/logo/orig`,
"scan_profile": `speed`,
}
return await axios($, {
method: "post",
url: `https://www.filescan.io/api/scan/url`,
headers: {
"content-type": `application/x-www-form-urlencoded`,
"accept": `application/json`,
"x-api-key": `${this.filescan.$auth.api_key}`,
},
data,
})
},
})
Filescan uses API keys for authentication. When you connect your Filescan account, Pipedream securely stores the keys so you can easily authenticate to Filescan APIs in both code and no-code steps.