with CommerceHQ and ServiceNow?
The CommerceHQ API enables merchants to craft seamless e-commerce experiences by automating various aspects of their online store. This API offers endpoints to manage products, orders, customers, and cart operations. With Pipedream, you can harness these capabilities to create custom automation workflows that connect CommerceHQ with a multitude of other services, streamlining operations, enhancing customer engagement, and driving sales.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
commercehq: {
type: "app",
app: "commercehq",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.commercehq.$auth.subdomain}.commercehq.com/api/v1/customers`,
auth: {
username: `${this.commercehq.$auth.api_key}`,
password: `${this.commercehq.$auth.api_password}`,
},
})
},
})
The ServiceNow API lets developers access and manipulate records, manage workflows, and integrate with other services on its IT service management platform. These capabilities support automating tasks, syncing data across platforms, and boosting operational efficiencies.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
servicenow: {
type: "app",
app: "servicenow",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.servicenow.$auth.instance_name}.service-now.com/api/now/table/incident`,
headers: {
Authorization: `Bearer ${this.servicenow.$auth.oauth_access_token}`,
},
})
},
})