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`,
},
})
},
})
OneSimpleApi uses API keys for authentication. When you connect your OneSimpleApi account, Pipedream securely stores the keys so you can easily authenticate to OneSimpleApi APIs in both code and no-code steps.