with OTO and Kommo?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
oto: {
type: "app",
app: "oto",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.oto.$auth.api_url}/rest/v2/accountInfo`,
headers: {
Authorization: `Bearer ${this.oto.$auth.oauth_access_token}`,
},
})
},
})
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}`,
},
})
},
})