with New Sloth and ServiceNow?
The New Sloth API offers data on slow-moving trends and behaviors, useful for analytics in various domains such as marketing, finance, and social media. Within Pipedream, you can use this API to automate the collection and analysis of trend data, create custom alerts, and integrate with other apps for enhanced decision-making processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
new_sloth: {
type: "app",
app: "new_sloth",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.newsloth.com/api/v1/sources`,
auth: {
username: `${this.new_sloth.$auth.api_key}`,
password: `${this.new_sloth.$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}`,
},
})
},
})