with Function and Kintone?
The Function API allows you to run code snippets in various programming languages directly through API calls. This capability can extend Pipedream workflows by enabling custom logic processing, data transformation, or any operation that requires server-side code execution without deploying or managing servers. By using the Function API, you can incorporate code that's beyond the native actions available within Pipedream, offering a flexible and powerful way to handle complex tasks in your automations.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
function: {
type: "app",
app: "function",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.fxn.ai/user`,
headers: {
Authorization: `Bearer ${this.function.$auth.api_key}`,
},
})
},
})
The Kintone API provides programmatic access to your Kintone database, allowing you to manage data such as records, spaces, and apps. With Pipedream, you can harness this API to automate workflows, sync data across different platforms, and trigger actions based on events in Kintone. Whether it's updating records in response to external triggers or pushing data from Kintone to other services, the integrations you can build are versatile and powerful.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kintone: {
type: "app",
app: "kintone",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.kintone.$auth.subdomain}.kintone.com/k/v1/apps.json`,
headers: {
Authorization: `Bearer ${this.kintone.$auth.oauth_access_token}`,
},
})
},
})