Overview
I thought of creating an application using LINE’s Bot, so first, I will make the Bot usable.
This page introduces how to register for the LINE Messaging API and how to send messages from the command line using curl.
Using the Messaging API
Log in to LINE Developers and create a provider.
A provider is (Explanation)
|
|
So, you can enter any string you like.
Then, create a new channel.
Clicking the create button will establish a new channel.
Posting from the Command Line
Add friends by reading the QR code in the Messaging API settings.
Obtain the ‘Channel Access Token (Long-lived)’ from the Messaging API settings. Get ‘Your User ID’ from the channel basic settings.
|
|
If a response is returned and you see a post from the Bot in your LINE chat, it’s a success!