go get -u github.com/cclin81922/dumplinebotevents/cmd/dumplinebotevents
export PATH=$PATH:~/go/bin
LineChannelSecret=... LineChannelToken=... dumplinebotevents
// then you can use line to test
import "github.com/cclin81922/dumplinebotevents/pkg/dumplinebotevents"
func demo(event *linebot.Event) {
eventLiteral := dumplinebotevents.Dump(event)
fmt.Println(eventLiteral)
}
Run dumplinebotevents with ngrok
NgrokToken=... ngrok authtoken $NgrokToken
ngrok http 8080
LineChannelSecret=... LineChannelToken=... dumplinebotevents