Methods Summary | ||
---|---|---|
public
|
||
public
|
||
public
|
#
getMessageContent( string $messageId )
Gets message content which is associated with specified message ID.
|
|
public
|
#
getNumberOfLimitForAdditional( )
Gets the target limit for additional messages in the current month.
|
|
public
|
||
public
|
#
replyMessage( string $replyToken , LINE\LINEBot\MessageBuilder $messageBuilder )
Replies arbitrary message to destination which is associated with reply token.
|
|
public
|
#
replyText( string $replyToken , string $text , string[]|null $extraTexts = NULL )
Replies text message(s) to destination which is associated with reply token.
This method receives variable texts. It can send text(s) message as bulk.
Exact signature of this method is <code>replyText(string $replyToken, string $text, string[] $extraTexts)</code>.
Means, this method can also receive multiple texts like so;
<code>
$bot->replyText('reply-text', 'text', 'extra text1', 'extra text2', ...)
</code>
|
|
public
|
#
pushMessage( string $to , LINE\LINEBot\MessageBuilder $messageBuilder , bool $notificationDisabled = false )
Sends arbitrary message to destination.
|
|
public
|
#
multicast( array $tos , LINE\LINEBot\MessageBuilder $messageBuilder , bool $notificationDisabled = false )
Sends arbitrary message to multi destinations.
|
|
public
|
#
broadcast( LINE\LINEBot\MessageBuilder $messageBuilder , bool $notificationDisabled = false )
Sends push messages to multiple users at any time.
LINE@ accounts cannot call this API endpoint. Please migrate it to a LINE official account.
|
|
public
|
||
public
|
||
public
|
#
parseEventRequest( string $body , string $signature , bool $eventOnly = true )
Parse event request to Event objects.
|
|
public
|
||
public
|
#
getGroupMemberProfile( string $groupId , string $userId )
Gets the user profile of a member of a group that the bot is in.
This can be the user ID of a user who has not added the bot as a friend or has blocked the bot.
|
|
public
|
#
getRoomMemberProfile( string $roomId , string $userId )
Gets the user profile of a member of a room that the bot is in.
This can be the user ID of a user who has not added the bot as a friend or has blocked the bot.
|
|
public
|
#
getGroupMemberIds( string $groupId , string $start = NULL )
Gets the user IDs of the members of a group that the bot is in.
This includes the user IDs of users who have not added the bot as a friend or has blocked the bot.
This feature is only available for LINE@ Approved accounts or official accounts.
|
|
public
|
#
getRoomMemberIds( string $roomId , string $start = NULL )
Gets the user IDs of the members of a room that the bot is in.
This includes the user IDs of users who have not added the bot as a friend or has blocked the bot.
This feature is only available for LINE@ Approved accounts or official accounts.
|
|
public
|
#
getAllGroupMemberIds( string $groupId )
Gets the user IDs of the members of a group that the bot is in.
This includes the user IDs of users who have not added the bot as a friend or has blocked the bot.
This method gets all of the members by calling getGroupMemberIds() continually using token
This feature is only available for LINE@ Approved accounts or official accounts.
seeLINE\LINEBot::getGroupMemberIds() |
|
public
|
#
getAllRoomMemberIds( string $roomId )
Gets the user IDs of the members of a room that the bot is in.
This includes the user IDs of users who have not added the bot as a friend or has blocked the bot.
This method gets all of the members by calling getRoomMemberIds() continually using token
This feature is only available for LINE@ Approved accounts or official accounts.
seeLINE\LINEBot::getRoomMemberIds() |
|
public
|
||
public
|
||
public
|
#
createRichMenu( \RichMenuBuilder $richMenuBuilder )
Creates a rich menu.
You must upload a rich menu image and link the rich menu to a user for the rich menu to be displayed.
|
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
#
linkRichMenu( string $userId , string $richMenuId )
Links a rich menu to a user. Only one rich menu can be linked to a user at one time.
|
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
#
uploadRichMenuImage( string $richMenuId , string $imagePath , string $contentType )
Uploads and attaches an image to a rich menu.
Notes:
<ul><li>Images must have one of the following resolutions: 2500x1686 or 2500x843 pixels.</li>
<li>You cannot replace an image attached to a rich menu. To update your rich menu image,
create a new rich menu object and upload another image.</li></ul>
|
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
#
getFriendDemographics( )
Get friend demographics
It can take up to 3 days for demographic information to be calculated.
This means the information the API returns may be 3 days old.
Furthermore, your Target reach number must be at least 20 to retrieve demographic information.
|
|
public
|
#
getUserInteractionStatistics( string $requestId )
Get user interaction statistics
Returns statistics about how users interact with broadcast messages sent from your LINE official account.
Interactions are tracked for only 14 days after a message was sent.
The statistics are no longer updated after 15 days.
|
|
public
|
#
createChannelAccessToken( string $channelId )
Create channel access token
Create a short-lived channel access token.
Up to 30 tokens can be issued.
If the maximum is exceeded,
existing channel access tokens are revoked in the order of when they were first issued.
|
|
public
|
#
revokeChannelAccessToken( string $channelAccessToken )
Revoke channel access token
Revokes a channel access token.
|
|
public
|
#
sendNarrowcast( LINE\LINEBot\MessageBuilder $messageBuilder , LINE\LINEBot\Narrowcast\Recipient\RecipientBuilder $recipientBuilder = NULL, LINE\LINEBot\Narrowcast\DemographicFilter\DemographicFilterBuilder $demographicFilterBuilder = NULL, int|null $limit = NULL )
Send Narrowcast message.
|
|
public
|
Constants Summary | ||
---|---|---|
public
string
|
DEFAULT_ENDPOINT_BASE
|
#
'https://api.line.me'
|
public
string
|
DEFAULT_DATA_ENDPOINT_BASE
|
#
'https://api-data.line.me'
|