Your trusted image copyright checker, ensuring compliance and protecting your digital assets effortlessly.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
picdefense: {
type: "app",
app: "picdefense",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.picdefense.io/api/v2/credits`,
headers: {
"X-API-TOKEN": `${this.picdefense.$auth.user_id}:${this.picdefense.$auth.api_key}`,
},
})
},
})
Check how many credits the associated account have. See the documentation
Check the risk of the image on the provided URL. See the documentation
PicDefense uses API keys for authentication. When you connect your PicDefense account, Pipedream securely stores the keys so you can easily authenticate to PicDefense APIs in both code and no-code steps.
To retrieve your User ID, API Key, and X-API-Token