Broid Integrations is an open source project providing a suite of Activity Streams 2 libraries for unified communications among a vast number of communication platforms.
Connect your App to Multiple Messaging Channels with One OpenSource Language.
Message types supported
Simple
Image
Video
Buttons
Location
Phone number
✅
✅
✅
✅
✅
Phone number is platform limitation.
Getting started
Connect to Line
importbroidLinefrom'broid-line'
constline=newbroidLine({
token:"<channel_secret>",
tokenSecret:"<channel_access_token>",
username:"<channel_id>"
})
line.connect()
.subscribe({
next:data=>console.log(data),
error:err=>console.error(`Something went wrong: ${err.message}`),
complete:()=>console.log('complete'),
})
Options availables
name
Type
default
Description
serviceID
string
random
Arbitrary identifier of the running instance
logLevel
string
info
Can be : fatal, error, warn, info, debug, trace
token
string
Your Channel Secret
tokenSecret
string
Your Channel Access Token
username
string
Your Channel ID
http
object
{ "port": 8080, "http": "0.0.0.0" }
WebServer options (host, port)
Good to know
The Reply token can be found in object.context
In One-one chat, the target object is fill with the actor informations.
Image and Video buffer are not supported so the url will be fill with https://buffer_not_supported.broid.ai
Because Line doesn't provide informations about the sender in Group, Context.
The actor is object is fill with fake informations.
INFO Keep the number of actions consistent for all columns. If you use an image or title for a column, make sure to do the same for all other columns.
Contributing to Broid
Broid is an open source project. Broid wouldn't be where it is now without contributions by the community. Please consider forking Broid to improve, enhance or fix issues. If you feel like the community will benefit from your fork, please open a pull request.
And because we want to do the better for you. Help us improving Broid by
sharing your feedback on our Integrations GitHub Repo and let's build Broid together!
Code of Conduct
Make sure that you're read and understand the Code of Conduct.
Copyright & License
Copyright (c) 2016-2017 Broid.ai
This project is licensed under the AGPL 3, which can be
found here.