with Rocket Chat and API.Bible?
Sends a new direct message to a specific user. See the documentation
Rocket Chat is a customizable and open-source team chat platform that's a popular alternative for team communication. With its API, you can automate a variety of tasks, such as sending messages, creating channels, managing users, and integrating with various services for a seamless workflow. Leveraging Pipedream's capabilities, you can use Rocket Chat API to create intricate workflows and connect them with other apps to streamline communication, trigger actions based on messages, and synchronize data across platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rocket_chat: {
type: "app",
app: "rocket_chat",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.rocket_chat.$auth.domain}/api/v1/me`,
headers: {
"X-Auth-Token": `${this.rocket_chat.$auth["X-Auth-Token"]}`,
"X-User-Id": `${this.rocket_chat.$auth["X-User-Id"]}`,
},
params: {
userId: `${this.rocket_chat.$auth["X-User-Id"]}`,
},
})
},
})
The API.Bible service allows you to integrate a vast collection of Bible translations into your applications, providing access to verses, chapters, and even audio Bibles. With API.Bible on Pipedream, you can build serverless workflows that automate tasks such as daily verse delivery, content search and retrieval, scripture comparison across translations, or the integration of scripture into educational or devotional apps. Pipedream's capability to connect with various other apps and services means you can seamlessly integrate scripture content into chatbots, social media posts, email campaigns, and more.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
api_bible: {
type: "app",
app: "api_bible",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.scripture.api.bible/v1/bibles`,
headers: {
"api-key": `${this.api_bible.$auth.api_key}`,
},
})
},
})