with Graphy and Zip Archive API?
Compress files provided through URLs into a zip folder. See the documentation
Graphy is an API designed to help businesses create customizable and collaborative dashboards and reports. Integrating Graphy with Pipedream allows for seamless automation of data visualization workflows, where you can trigger actions based on events, sync data across various apps, or even manage your dashboard's content programmatically. Pipedream's serverless platform provides you with the ability to connect Graphy to hundreds of other apps to enhance your reporting and analytics processes without writing extensive code.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
graphy: {
type: "app",
app: "graphy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.ongraphy.com/public/v1/products`,
params: {
mid: `${this.graphy.$auth.MID}`,
key: `${this.graphy.$auth.api_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,
})
},
})