import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
silfer_bots: {
type: "app",
app: "silfer_bots",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.silferbots.co/user/[USER_ID]`,
headers: {
"X-SILFER-ACCESS-TOKEN": `${this.silfer_bots.$auth.api_key}`,
},
})
},
})
SilFer Bots uses API keys for authentication. When you connect your SilFer Bots account, Pipedream securely stores the keys so you can easily authenticate to SilFer Bots APIs in both code and no-code steps.