with Fiserv and ServiceNow Oauth?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
fiserv: {
type: "app",
app: "fiserv",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.fiserv.$auth.url}/sandbox/exp/v1/authorisations`,
headers: {
"API-Key": `${this.fiserv.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
servicenow_oauth_: {
type: "app",
app: "servicenow_oauth_",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.servicenow_oauth_.$auth.instance_name}.service-now.com/api/now/table/{your_table}`, //E.g. incident
headers: {
Authorization: `Bearer ${this.servicenow_oauth_.$auth.oauth_access_token}`,
},
})
},
})