Embed a Blog into Your Website in 3 Minutes - DropInBlog
Emit new event when a new post is published. See the documentation.
Allows you to create a new blog post in your DropInBlog account. Requires a private API key. See the documentation.
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dropinblog: {
type: "app",
app: "dropinblog",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.dropinblog.com/v2/blog/${this.dropinblog.$auth.blog_id}/authors`,
headers: {
Authorization: `Bearer ${this.dropinblog.$auth.public_api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})