with Diffy and Zip Archive API?
Emit new event when a new diff is created in Diffy. See the documentation
Emit new event when a new screenshot is created in Diffy. See the documentation
Compress files provided through URLs into a zip folder. See the documentation
The Diffy API offers visual regression testing, allowing you to compare visuals of web pages over time or across different environments. With Pipedream's serverless architecture, you can integrate Diffy into various workflows to automate visual testing, get notified of changes, or even trigger deployments in a CI/CD pipeline when a visual test passes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
diffy: {
type: "app",
app: "diffy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.diffy.website/api/projects`,
headers: {
Authorization: `Bearer ${this.diffy.$auth.access_token}`,
},
})
},
})
The Zip Archive API allows you to manage zip archives programmatically. You can create, extract, and modify zip files, making it ideal for automating routine file management tasks. Integrating this API with Pipedream enables you to automate workflows that involve file compression or decompression, combine it with triggers from other apps, and process large batches of files efficiently, saving time and reducing manual effort.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zip_archive_api: {
type: "app",
app: "zip_archive_api",
}
},
async run({steps, $}) {
const data = {
"file": `https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-zip-file.zip`,
}
return await axios($, {
method: "post",
url: `https://api.archiveapi.com/extract`,
headers: {
"Accept": `text/plain`,
},
params: {
secret: `${this.zip_archive_api.$auth.secret}`,
},
data,
})
},
})