Self-hosted version of Wordpress, which you can use to easily create a beautiful website, blog, or app.
Get a URL and emit the full HTTP event on every request (including headers and query parameters). You can also configure the HTTP response code, body, and more.
Get a URL and emit the HTTP body as an event on every request
Emit new event when the content of the URL changes.
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,
})
},
})
// To use any npm package on Pipedream, just import it
import axios from "axios"
export default defineComponent({
async run({ steps, $ }) {
const { data } = await axios({
method: "GET",
url: "https://pokeapi.co/api/v2/pokemon/charizard",
})
return data.species
},
})