with AppVeyor and ServiceNow?
The AppVeyor API grants programmatic access to AppVeyor's continuous integration and deployment services, empowering developers to trigger builds, fetch build history, deploy applications, and manage projects and account settings. With Pipedream's serverless platform, you can craft custom workflows that react to AppVeyor events or manipulate AppVeyor's pipeline dynamically, streamlining your CI/CD process by interfacing with other tools in the software development lifecycle.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
appveyor: {
type: "app",
app: "appveyor",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://ci.appveyor.com/api/roles`,
headers: {
Authorization: `Bearer ${this.appveyor.$auth.bearer_token}`,
"Content-type": `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}`,
},
})
},
})