The simplest, fastest way to integrate your app with an OAuth API
Emit new event when a (classic) project card is created or moved to a specific column. For Projects V2 use New Issue with Status
trigger. More information here
Emit new event when a collaborator is added See the documentation
Emit new event when commits are pushed to a branch See the documentation
Emit new event when a commit comment is created See the documentation
module.exports = defineComponent({
props: {
pizzly: {
type: "app",
app: "pizzly",
}
},
async run({steps, $}) {
const fetch = require('node-fetch')
const { host, secretKey } = this.pizzly.$auth
const authentication = 'Basic ' + Buffer.from(secretKey + ':').toString('base64')
// Make a test API request to Pizzly. Should return a success message
return await (await fetch(`https://${host}/api/`, { headers: { "Authorization": authentication } })).json()
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
github: {
type: "app",
app: "github",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.github.com/user`,
headers: {
Authorization: `Bearer ${this.github.$auth.oauth_access_token}`,
"X-GitHub-Api-Version": `2022-11-28`,
},
})
},
})