Question Details

Unanswered
Message API set up in PHP

Hi,

I have to send the message through Line message API. I have installed the PHP SDK from GIT https://github.com/line/line-bot-sdk-php. I am trying to use example with passing Channel ID & Secret Toket . I am not getting any thing on front end. I have using the Script $textMessageBuilder = new \LINE\LINEBot\MessageBuilder\TextMessageBuilder('hello'); $response = $bot->replyMessage('<Secret Token>', $textMessageBuilder); if ($response->isSucceeded()) { echo 'Succeeded!'; return; } // Failed echo $response->getHTTPStatus() . ' ' . $response->getRawBody();

I am not getting any output or anything on the screen. Could you please help me to sending message through Script to any Line User.

Regards Samrat

0
Profile picture
Samrat Yadav

Answers

0
Are you sure? question.vm