with Lightspeed eCom (C-Series) and ServiceNow?
Emit new event when a customer is updated.
Emit new event when an invoice is updated.
Emit new event when a customer is created.
Emit new event when an invoice is created.
Emit new event when an order is created.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lightspeed_ecom_c_series: {
type: "app",
app: "lightspeed_ecom_c_series",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.${this.lightspeed_ecom_c_series.$auth.cluster}.com/${this.lightspeed_ecom_c_series.$auth.lang}/account.json`,
auth: {
username: `${this.lightspeed_ecom_c_series.$auth.api_key}`,
password: `${this.lightspeed_ecom_c_series.$auth.api_secret}`,
},
})
},
})
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}`,
},
})
},
})