with Knack and change.photos?
The Knack API allows for robust interactions with your Knack database, enabling automation of data entry, retrieval, updates, and deletion. With Pipedream, you can leverage these capabilities to create seamless workflows that react to events in real-time, sync data across platforms, and enhance your database management without manual intervention. Think less about CRUD operations and more about the magic of connecting your Knack data to the digital tools ecosystem.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
knack: {
type: "app",
app: "knack",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://api.knack.com/v1/objects/object_1/records`,
headers: {
"X-Knack-Application-Id": `${this.knack.$auth.application_id}`,
"X-Knack-REST-API-KEY": `${this.knack.$auth.api_key}`,
"content-type": `application/json`,
},
})
},
})
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,
})
},
})