with Alibaba Cloud and Pobuca Connect?
import Ecs20140526, * as $Ecs20140526 from '@alicloud/ecs20140526';
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
import Util, * as $Util from '@alicloud/tea-util';
export default defineComponent({
props: {
alibaba_cloud: {
type: "app",
app: "alibaba_cloud",
}
},
async run({ steps, $ }) {
//Creates a new Alibaba Cloud SDK client
let config = new OpenApi.Config({
accessKeyId: this.alibaba_cloud.$auth.access_key_id,
accessKeySecret: this.alibaba_cloud.$auth.access_key_secret,
});
config.endpoint = this.alibaba_cloud.$auth.endpoint;
//Creates and executes a request
let client = new Ecs20140526.default(config);
let describeRegionsRequest = new $Ecs20140526.DescribeRegionsRequest({});
let runtime = new $Util.RuntimeOptions({});
return await client.describeRegionsWithOptions(describeRegionsRequest, runtime);
},
})
Pobuca Connect API offers a suite of functionalities to manage contacts within an organization, streamline communication, and enhance collaboration. Integrating this API with Pipedream enables you to automate tasks involving contact management, such as syncing new contacts to other platforms, triggering notifications upon contact updates, and creating custom workflows to maintain your organization's contact database efficiently. Harness the API's capabilities to build robust, serverless workflows on Pipedream that trigger on events or on a schedule, and interact with an array of other apps and services.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pobuca_connect: {
type: "app",
app: "pobuca_connect",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://pobucaapiv3.azurewebsites.net/tables/contacts`,
headers: {
"ZUMO-API-VERSION": `2.0.0`,
"X-ZUMO-AUTH": `${this.pobuca_connect.$auth.api_key}`,
},
})
},
})