with Leonardo AI and ServiceNow?
Generates new images using Leonardo AI's image generation API. See the documentation
Generates a motion (video) from the provided image using Leonardo AI's SVD Motion Generation API. See the documentation
Retrieves the record identified by the specified sys_id from the specified table.
Creates an unzoom variation for a generated or variation image using Leonardo AI's unzoom API. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
leonardo_ai: {
type: "app",
app: "leonardo_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://cloud.leonardo.ai/api/rest/v1/me`,
headers: {
Authorization: `Bearer ${this.leonardo_ai.$auth.api_key}`,
"accept": `application/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}`,
},
})
},
})