-
Notifications
You must be signed in to change notification settings - Fork 647
Getting started
moznion edited this page Feb 18, 2017
·
3 revisions
$bot = new \LINE\LINEBot(new CurlHTTPClient('your-channel-token'), [
'channelSecret' => 'your-channel-secret'
]);
$textMessageBuilder = new \LINE\LINEBot\MessageBuilder\TextMessageBuilder('hello');
$response = $bot->replyMessage('your-reply-token', $textMessageBuilder);
See the official API documentation for more information.
- English: https://devdocs.line.me/en/
- Japanese: https://devdocs.line.me/ja/
A sample echo bot implementation.
A full-stack LINE Messaging API sample implementation. This sample shows you a practical use of the LINE Messaging API.