with Sendbird and Nutrient Workflow Automation?
Retrieves a list of past messages of a specific channel. See the docs here
The Sendbird API provides programmatic access to advanced chat features, enabling the creation and management of in-app messaging for community forums, customer support, or any other chat-based interaction. By leveraging the Sendbird API on Pipedream, you can automate user management, message and channel handling, and event tracking. Pipedream's serverless platform simplifies these automations, offering a way to integrate chat functionalities with other services, trigger workflows from chat events, and handle real-time data processing without writing extensive infrastructure code.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sendbird: {
type: "app",
app: "sendbird",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://gate.sendbird.com/api/v2/applications`,
headers: {
"SENDBIRDORGANIZATIONAPITOKEN": `${this.sendbird.$auth.organization_api_key}`,
"Content-Type": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
nutrient_workflow_automation: {
type: "app",
app: "nutrient_workflow_automation",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://workflow-trial.on-nutrient.io/api/user/`,
headers: {
Authorization: `Bearer ${this.nutrient_workflow_automation.$auth.oauth_access_token}`,
"accept": `application/json`,
},
params: {
search: `Pipedream`,
},
})
},
})