Botstar allows you to build bots for a variety of purposes, including:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
botstar: {
type: "app",
app: "botstar",
}
},
async run({steps, $}) {
const data = {
"messages": `[{"text": "Hello World"}]`,
"userId": `9999999999`,
}
return await axios($, {
method: "post",
url: `https://api2.botstar.com/broadcast`,
headers: {
"Content-Type": `application/json`,
},
params: {
token: `${this.botstar.$auth.access_token}`,
},
data,
})
},
})
Botstar uses API keys for authentication. When you connect your Botstar account, Pipedream securely stores the keys so you can easily authenticate to Botstar APIs in both code and no-code steps.
BotStar authenticate calls via API Access Token to identify which bot are being referred to. Obtain this token in Settings page of your bot.