with Azure DevOps (Microsoft Entra ID OAuth) and Rewiser?
Emit new event for the specified event type.
Emit new event when a new transaction is created in Rewiser. See the documentation
Create a financial transaction in Rewiser. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
azure_devops_microsoft_entra_id_oauth: {
type: "app",
app: "azure_devops_microsoft_entra_id_oauth",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://dev.azure.com/${this.azure_devops_microsoft_entra_id_oauth.$auth.organization}/_apis/projects`,
headers: {
Authorization: `Bearer ${this.azure_devops_microsoft_entra_id_oauth.$auth.oauth_access_token}`,
"content-type": `application/json`,
},
params: {
"api-version": `7.1`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rewiser: {
type: "app",
app: "rewiser",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://nzkqapsaeatytqrnitpj.supabase.co/functions/v1/verify-auth`,
headers: {
Authorization: `Bearer ${this.rewiser.$auth.api_key}`,
"content-type": `application/json`,
},
})
},
})