import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
warpcast: {
type: "app",
app: "warpcast",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.warpcast.com/v2/me`,
headers: {
Authorization: `Bearer ${this.warpcast.$auth.app_bearer_token}`,
"accept": `application/json`,
},
})
},
})
Warpcast uses API keys for authentication. When you connect your Warpcast account, Pipedream securely stores the keys so you can easily authenticate to Warpcast APIs in both code and no-code steps.
Application bearer tokens must be used to call API endpoints and can be requested with a Custody bearer token.
The Custody bearer token Replit demonstrates how a Custody Bearer Token can be generated and verified. Use your Custody bearer token to obtain your Application Bearer Token.
See full documentation.