with Product Fruits and Air?
The Product Fruits API offers tools for enhancing user experience with in-app guidance like tooltips, walkthroughs, and announcements. By leveraging this API within Pipedream, you can automate the creation, update, and tracking of these UX elements based on user behavior or feedback, enrich product engagement, and drive feature adoption. Combining Product Fruits with Pipedream's capabilities opens a realm of possibilities, from syncing user data to triggering in-app messages based on external events.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
product_fruits: {
type: "app",
app: "product_fruits",
}
},
async run({steps, $}) {
const data = { "user": {
"username": "name@example.com", // REQUIRED, must be unique
} }
return await axios($, {
method: "post",
url: `https://api.productfruits.com/identify`,
headers: {
Authorization: `Bearer ${this.product_fruits.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
air: {
type: "app",
app: "air",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.air.inc/v1/assets`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.air.$auth.api_key}`,
"x-air-workspace-id": `${this.air.$auth.workspace_id}`,
},
})
},
})