Business app platform
The Knack API allows developers to access and manipulate data stored in Knack
databases. With the API, developers can
In addition, the Knack API provides developer with access to Knack's powerful
customization features, such as
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`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})