with Zulip and Formatting?
Zulip is a powerful chat platform designed for productive and threaded group conversations. With the Zulip API, you can automate and extend the capabilities of your Zulip instance directly within Pipedream. This includes managing streams, users, messages, and events. Automations can help streamline communication, respond to specific triggers, and integrate chat data with other business tools to centralize workflows.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zulip: {
type: "app",
app: "zulip",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.zulip.$auth.domain}.zulipchat.com/api/v1/users/me`,
auth: {
username: `${this.zulip.$auth.email}`,
password: `${this.zulip.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})