with Alibaba Cloud and Dropboard?
Creates a new client within Dropboard. Note this is available only for recruiter plan users and may incur additional charges based on your organization's plan. See the documentation
Looks for a client within Dropboard. If not found, it will create a new one. See the documentation
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);
},
})
The Dropboard API enables management and optimization of shipping logistics, providing functionality to monitor shipments, manage inventory, and handle orders efficiently. With this API, Pipedream users can automate various aspects of logistics and supply chain operations, enhancing real-time decision-making and operational efficiency.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dropboard: {
type: "app",
app: "dropboard",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.dropboardhq.com/2024-02/me`,
headers: {
Authorization: `Bearer ${this.dropboard.$auth.oauth_access_token}`,
},
})
},
})