EventRequestParser
Table of Contents
-
$eventType2class
: mixed
-
$messageType2class
: mixed
-
parseEventRequest()
: mixed
-
parseMessageEvent()
: MessageEvent
$eventType2class
private
static mixed
$eventType2class
= ['message' => 'LINE\LINEBot\Event\MessageEvent', 'unsend' => 'LINE\LINEBot\Event\UnsendEvent', 'follow' => 'LINE\LINEBot\Event\FollowEvent', 'unfollow' => 'LINE\LINEBot\Event\UnfollowEvent', 'join' => 'LINE\LINEBot\Event\JoinEvent', 'leave' => 'LINE\LINEBot\Event\LeaveEvent', 'postback' => 'LINE\LINEBot\Event\PostbackEvent', 'videoPlayComplete' => 'LINE\LINEBot\Event\VideoPlayCompleteEvent', 'beacon' => 'LINE\LINEBot\Event\BeaconDetectionEvent', 'accountLink' => 'LINE\LINEBot\Event\AccountLinkEvent', 'memberJoined' => 'LINE\LINEBot\Event\MemberJoinEvent', 'memberLeft' => 'LINE\LINEBot\Event\MemberLeaveEvent', 'things' => 'LINE\LINEBot\Event\ThingsEvent']
$messageType2class
private
static mixed
$messageType2class
= ['text' => 'LINE\LINEBot\Event\MessageEvent\TextMessage', 'image' => 'LINE\LINEBot\Event\MessageEvent\ImageMessage', 'video' => 'LINE\LINEBot\Event\MessageEvent\VideoMessage', 'audio' => 'LINE\LINEBot\Event\MessageEvent\AudioMessage', 'file' => 'LINE\LINEBot\Event\MessageEvent\FileMessage', 'location' => 'LINE\LINEBot\Event\MessageEvent\LocationMessage', 'sticker' => 'LINE\LINEBot\Event\MessageEvent\StickerMessage']
parseEventRequest()
public
static parseEventRequest(string $body, string $channelSecret, string $signature[, mixed $eventsOnly = true ]) : mixed
Parameters
-
$body
: string
-
-
$channelSecret
: string
-
-
$signature
: string
-
-
$eventsOnly
: mixed
= true
-
-
throws
-
InvalidEventRequestException
-
throws
-
InvalidSignatureException
Return values
mixed
—
parseMessageEvent()
private
static parseMessageEvent(array<string|int, mixed> $eventData) : MessageEvent
Parameters
-
$eventData
: array<string|int, mixed>
-
Return values
MessageEvent
—