BitBadges is a multi-chain platform to create, display, and verify digital blockchain badges.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bitbadges: {
type: "app",
app: "bitbadges",
}
},
async run({steps, $}) {
const data = {
"accountsToFetch": [
{
"address": `${this.bitbadges.$auth.address}`,
"fetchSequence": true,
"fetchBalance": true,
"viewsToFetch": [
{
"viewType": "badgesCollected",
"viewId": "badgesCollected",
"bookmark": ""
}
]
}
]
}
return await axios($, {
method: "post",
url: `https://api.bitbadges.io/api/v0/users`,
headers: {
"x-api-key": `${this.bitbadges.$auth.api_key}`,
},
data,
})
},
})
The Schedule app in Pipedream is a powerful tool that allows you to trigger workflows at regular intervals, ranging from every minute to once a year. This enables the automation of repetitive tasks and the scheduling of actions to occur without manual intervention. By leveraging this API, you can execute code, run integrations, and process data on a reliable schedule, all within Pipedream's serverless environment.