Create, monetize, grow—a newsletter platform built by newsletter people.
Using the Beehiiv API, you can build a variety of applications, including:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
beehiiv: {
type: "app",
app: "beehiiv",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.beehiiv.com/v1/publications`,
headers: {
"X-ApiKey": `${this.beehiiv.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})