Node package manager
Emit new event with the latest count of downloads for an npm package. See the documentation.
Emit new event when a new version of an npm package is published. See the documentation
Transforms an image with various effects and optimizations. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
change_photos: {
type: "app",
app: "change_photos",
}
},
async run({steps, $}) {
const data = {
"url": `https://pipedream.com/s.v0/app_13GhYE/logo/orig`,
"grayscale": true,
}
return await axios($, {
method: "post",
url: `https://www.change.photos/api/change`,
headers: {
Authorization: `Bearer ${this.change_photos.$auth.api_key}`,
"content-type": `application/json`,
"accept": `application/json`,
},
data,
})
},
})