with imgix and ServiceNow?
The imgix API offers dynamic image processing and optimization. You can manipulate images on-the-fly by changing query parameters in the image URL, enabling a myriad of transformations like resizing, cropping, adjusting quality, format conversion, and applying filters. Integrating imgix with Pipedream allows you to automate workflows that involve image manipulation, optimization for different devices and contexts, and the dynamic delivery of images.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
imgix: {
type: "app",
app: "imgix",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.imgix.com/api/v1/sources`,
headers: {
Authorization: `Bearer ${this.imgix.$auth.api_key}`,
"Accept": `application/json`,
"Content-Type": `application/vnd.api+json`,
},
})
},
})
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}`,
},
})
},
})