import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
coinapi: {
type: "app",
app: "coinapi",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.coinapi.$auth.subdomain}.coinapi.io/v1/assets`,
headers: {
"authorization": `${this.coinapi.$auth.api_key}`,
},
})
},
})
CoinAPI uses API keys for authentication. When you connect your CoinAPI account, Pipedream securely stores the keys so you can easily authenticate to CoinAPI APIs in both code and no-code steps.