with Dolibarr and V7 Go?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dolibarr: {
type: "app",
app: "dolibarr",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.dolibarr.$auth.domain}/api/index.php/users/info`,
headers: {
"accept": `application/json`,
"dolapikey": `${this.dolibarr.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
v7_go: {
type: "app",
app: "v7_go",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://go.v7labs.com/api/workspaces/${this.v7_go.$auth.workspace_id}/members`,
headers: {
"X-API-KEY": `${this.v7_go.$auth.api_key}`,
},
})
},
})