with Zenventory and Icypeas?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zenventory: {
type: "app",
app: "zenventory",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.zenventory.com/rest/inventory/items`,
auth: {
username: `${this.zenventory.$auth.api_key}`,
password: `${this.zenventory.$auth.api_secret}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
icypeas: {
type: "app",
app: "icypeas",
}
},
async run({steps, $}) {
const data = {
"email": `${this.icypeas.$auth.email}`,
}
return await axios($, {
method: "post",
url: `https://app.icypeas.com/api/a/actions/subscription-information`,
headers: {
"Content-Type": `application/json`,
"Authorization": `${this.icypeas.$auth.api_key}`,
},
data,
})
},
})