with Instasent and Kommo?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
instasent: {
type: "app",
app: "instasent",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.instasent.com/organization/account`,
headers: {
Authorization: `Bearer ${this.instasent.$auth.api_token}`,
"accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kommo: {
type: "app",
app: "kommo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.kommo.$auth.subdomain}.kommo.com/api/v4/account`,
headers: {
Authorization: `Bearer ${this.kommo.$auth.oauth_access_token}`,
},
})
},
})