with Dolibarr and ipstack?
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: {
ipstack: {
type: "app",
app: "ipstack",
}
},
async run({steps, $}) {
return await axios($, {
url: `http://api.ipstack.com/8.8.8.8`,
params: {
access_key: `${this.ipstack.$auth.access_key}`,
},
})
},
})