Self hosted Wordpress
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 events when collaborators are added to a repo
WordPress API can help you create a variety of different projects with greater
efficiency and functionality. Whether it’s developing and creating a custom
WordPress site, creating an API for a product, or developing a plugin for a
program, the WordPress API offers more possibilities than ever to customize and
enhance your online experience. Here are a few examples of things you can build
using the WordPress API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
wordpress_org: {
type: "app",
app: "wordpress_org",
}
},
async run({steps, $}) {
const data = {
"title": `New Title`,
}
return await axios($, {
method: "post",
url: `https://${this.wordpress_org.$auth.url}/wp-json/wp/v2/posts/POST_ID`,
auth: {
username: `${this.wordpress_org.$auth.username}`,
password: `${this.wordpress_org.$auth.application_password}`,
},
data,
})
},
})
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`,
},
})
},
})