import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
yumpu: {
type: "app",
app: "yumpu",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.yumpu.com/2.0/user.json`,
headers: {
"X-ACCESS-TOKEN": `${this.yumpu.$auth.api_key}`,
},
})
},
})
Yumpu uses API keys for authentication. When you connect your Yumpu account, Pipedream securely stores the keys so you can easily authenticate to Yumpu APIs in both code and no-code steps.
To retrieve your API Key,