with DropInBlog and Transloadit?
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
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}`,
},
})
},
})
import Transloadit from 'transloadit';
export default defineComponent({
props: {
transloadit: {
type: "app",
app: "transloadit",
}
},
async run({ steps, $ }) {
const transloadit = new Transloadit({
authKey: this.transloadit.$auth.auth_key,
authSecret: this.transloadit.$auth.auth_secret
})
const options = {
params: {
steps: {
"encoded": {
"use": ":original",
"robot": "/video/encode",
"preset": "iphone-high"
},
"thumbed": {
"use": "encoded",
"robot": "/video/thumbs",
"count": 8
}
}
},
waitForCompletion: true,
}
return await transloadit.createAssembly(options);
},
})