Accept payments anywhere, anytime, any way.
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: {
microsoft_teams_events: {
type: "app",
app: "microsoft_teams_events",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graph.microsoft.com/v1.0/me`,
headers: {
Authorization: `Bearer ${this.microsoft_teams_events.$auth.oauth_access_token}`,
},
})
},
})