import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
global_exchange_rates: {
type: "app",
app: "global_exchange_rates",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.globalexchangerates.org/v1/currencies`,
headers: {
"subscription-key": `${this.global_exchange_rates.$auth.api_key}`,
},
})
},
})
Global Exchange Rates uses API keys for authentication. When you connect your Global Exchange Rates account, Pipedream securely stores the keys so you can easily authenticate to Global Exchange Rates APIs in both code and no-code steps.