with Plain and Shipengine?
Emit new event when a new label is shipped. See the docs
Emit new event when a new event is tracked. See the docs
The Plain API provides functionality for automating customer support tasks, such as managing conversations, customers, and team inboxes. Within Pipedream, you can leverage these features to create custom workflows that respond to events from your app or external services, triggering actions in Plain. By integrating the Plain API with Pipedream, you can enhance customer support efficiency, streamline communication, and keep customer data synchronized across platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
plain: {
type: "app",
app: "plain",
}
},
async run({steps, $}) {
const data = {
"query": `query Workspace {
workspace(workspaceId: "${this.plain.$auth.workspace_id}") {
id
publicName
}
}`,
}
return await axios($, {
method: "post",
url: `https://core-api.uk.plain.com/graphql/v1`,
headers: {
Authorization: `Bearer ${this.plain.$auth.api_key}`,
"Content-Type": `application/json`,
},
data,
})
},
})
The Shipengine API enables robust automation possibilities for shipping logistics. From label creation, rate comparison, to tracking shipments, the API provides the tools to streamline e-commerce and shipping workflows. By harnessing Shipengine's capabilities through Pipedream, you can build seamless integrations that connect your shipping operations with other business processes, enhancing efficiency and reducing manual overhead.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
shipengine: {
type: "app",
app: "shipengine",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://api.shipengine.com/v1/addresses/validate`,
headers: {
"API-Key": `${this.shipengine.$auth.api_key}`,
"Content-Type": `application/json`,
},
})
},
})