with Kommo and V1CE?
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
v1ce: {
type: "app",
app: "v1ce",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.v1ce.co/contact/info`,
headers: {
"accept": `application/json`,
"authorization": `${this.v1ce.$auth.api_key}`,
},
params: {
contact_id: `${this.v1ce.$auth.contact_id}`,
},
})
},
})