with WooDelivery and OneSimpleApi?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
woodelivery: {
type: "app",
app: "woodelivery",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.woodelivery.com/v2/auth/test`,
headers: {
"accept": `application/json`,
"content-type": `application/json`,
"authorization": `Basic ${this.woodelivery.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
onesimpleapi: {
type: "app",
app: "onesimpleapi",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://onesimpleapi.com/api/exchange_rate`,
params: {
token: `${this.onesimpleapi.$auth.api_token}`,
from_currency: `EUR`,
to_currency: `GBP`,
from_value: `35`,
},
})
},
})