Simplifying digital asset management with AI-powered image optimization.
Emits an event each time a new contact is created in Zoho CRM
Emit new events each time a new module/record is created in Zoho CRM
Emits an event each time a new contact is created or updated in Zoho CRM
import { PixelbinConfig, PixelbinClient } from "@pixelbin/admin";
export default defineComponent({
props: {
pixelbin: {
type: "app",
app: "pixelbin",
}
},
async run({steps, $}) {
// Creates a Pixelbin config using the API Token
const config = new PixelbinConfig({
domain: "https://api.pixelbin.io",
apiSecret: this.pixelbin.$auth.api_token,
integrationPlatform: "@PipedreamHQ/pipedream v0.1",
});
const pixelbin = new PixelbinClient(config);
const getData = async function() {
try {
// list the assets stored on your organization's Pixelbin Storage
const explorer = pixelbin.assets.listFilesPaginator({
onlyFiles: true,
pageSize: 5,
});
if (explorer.hasNext()) {
return await explorer.next();
}
} catch (err) {
console.log(err);
}
};
//Returns list of assets to use in the Pipedream workflow's downstream steps
return await getData();
},
})
The Zoho CRM API enables the manipulation and retrieval of data within Zoho CRM, a platform for managing your sales, marketing, support, and inventory in a single system. Leveraging this on Pipedream, you can automate tasks like syncing contacts, updating lead statuses, or creating custom CRM operations that trigger actions in other apps. Pipedream's serverless platform allows for real-time data processing, transforming, and orchestrating workflows that respond to events in Zoho CRM with minimal latency.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zoho_crm: {
type: "app",
app: "zoho_crm",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.zoho_crm.$auth.api_domain}/crm/v2/users?type=CurrentUser`,
headers: {
"Authorization": `Zoho-oauthtoken ${this.zoho_crm.$auth.oauth_access_token}`,
},
})
},
})