LINE Messaging API SDK for PHP Wrapper
This class is extend LINE\Clients\MessagingApi\Api\MessagingApiApi.
$client = new Client($channelAccessSecret, $channelAccessToken);
Builder that generates FlexMessage from array.
in flex.json
{"type":"carousel","contents":[{"type":"bubble", ...}]}
$fileContent = file_get_contents("flex.json");
$flexContentArray = json_decode($fileContent, true);
$flexMessage = new RawFlexMessageBuilder($flexContentArray);
$textMessage = new TextMessageBuilder(
text: 'text',
emojis: [],
quoteToken: 'quoteToken'
);
Function to hold the received event information in an instance.
Used in the reply
function, etc.
$client->setEvent($event);
Function to send a reply message.
A list of Message
, Sender
, and QuickReply
can be included in the argument at the same time.
$client->reply($messages, $sender, $quickReply);
Function to retrieve a profile from a user ID.
A function that combines three functions: group user retrieval, room user retrieval, and user retrieval.
$client->getProfileFromUserID($userID);