Messaging
Emit new event for every received message in a channel. See docs here
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
The Line API allows developers to create all sorts of applications that
interact with Line's messaging platform. Here are some examples of what you can
build:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
line: {
type: "app",
app: "line",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://notify-api.line.me/api/status`,
headers: {
Authorization: `Bearer ${this.line.$auth.oauth_access_token}`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})