The heartbeat API enables you to build a variety of applications that can send and receive real-time messages. Here are some examples of what you can build:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
heartbeat: {
type: "app",
app: "heartbeat",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.heartbeat.chat/v0/users`,
headers: {
Authorization: `Bearer ${this.heartbeat.$auth.api_key}`,
"Accept": `application/json`,
},
})
},
})
Heartbeat uses API keys for authentication. When you connect your Heartbeat account, Pipedream securely stores the keys so you can easily authenticate to Heartbeat APIs in both code and no-code steps.
To retrieve your API credentials,