with Cronfree and BlueCart API?
Emit new event when a new message is received. See the documentation
The Cronfree API allows you to schedule tasks to run at specific intervals, similar to a traditional cron job, but with the flexibility of web-based management. On Pipedream, you can harness this API to trigger workflows on a schedule, offload periodic tasks from your apps, and integrate with other services to perform actions like sending emails, updating databases, or even automating social media posts.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cronfree: {
type: "app",
app: "cronfree",
}
},
async run({steps, $}) {
const data = {
"hookUrl": `{{your_hook_url}}`,
"license_key": `${this.cronfree.$auth.license_key}`,
"wdays": `{{your_wdays}}`,
"months": `{{your_months}}`,
"hours": `{{your_hours}}`,
"minutes": `{{your_minutes}}`,
"timezone": `{{your_timezone}}`,
}
return await axios($, {
method: "post",
url: `https://login.cronfree.com/zapier/schedule`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})
The BlueCart API offers a suite of features for streamlining the wholesale ordering process between buyers and sellers. By leveraging this API, you can automate order placements, track shipments, manage inventory, and analyze sales data to drive business decisions. In Pipedream, you can create serverless workflows that interact with the BlueCart API to integrate real-time order data with other apps, trigger custom notifications, or synchronize inventory across platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bluecart_api: {
type: "app",
app: "bluecart_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.bluecartapi.com/categories`,
params: {
api_key: `${this.bluecart_api.$auth.api_key}`,
},
})
},
})