with Facebook Graph API and Azure DevOps (Microsoft Entra ID OAuth)?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
facebook_graph_api: {
type: "app",
app: "facebook_graph_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graph.facebook.com/me/`,
headers: {
Authorization: `Bearer ${this.facebook_graph_api.$auth.oauth_access_token}`,
},
})
},
})
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`,
},
})
},
})