LINEMSG
in package
LINEMSG
This is the wrapper for creating a message object.
Tags
Table of Contents
- Audio() : array<string|int, mixed>
- Audio message
- changeAppearance() : array<string|int, mixed>
- Change icon and display name
- Flex() : array<string|int, mixed>
- Flex Message
- Image() : array<string|int, mixed>
- Image message
- Imagemap() : array<string|int, mixed>
- Imagemap message
- Location() : array<string|int, mixed>
- Location message
- QuickReply() : array<string|int, mixed>
- Quick reply
- Sticker() : array<string|int, mixed>
- Sticker message
- Template() : array<string|int, mixed>
- Template messages
- Text() : array<string|int, mixed>
- Text message
- Video() : array<string|int, mixed>
- Video message
Methods
Audio()
Audio message
public
static Audio(string $url[, int $second = null ]) : array<string|int, mixed>
Parameters
- $url : string
- $second : int = null
-
(optional)
Tags
Return values
array<string|int, mixed> —changeAppearance()
Change icon and display name
public
static changeAppearance(array<string|int, mixed> $originalMessage, string $name, string $iconUrl) : array<string|int, mixed>
Parameters
- $originalMessage : array<string|int, mixed>
- $name : string
- $iconUrl : string
Tags
Return values
array<string|int, mixed> —Flex()
Flex Message
public
static Flex(string $altText, array<string|int, mixed> $contents) : array<string|int, mixed>
Parameters
- $altText : string
- $contents : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —Image()
Image message
public
static Image(string $url[, string $previewUrl = null ]) : array<string|int, mixed>
Parameters
- $url : string
- $previewUrl : string = null
-
(optional)
Tags
Return values
array<string|int, mixed> —Imagemap()
Imagemap message
public
static Imagemap(string $baseUrl, string $altText, int $width, int $height, array<string|int, mixed> $action) : array<string|int, mixed>
Parameters
- $baseUrl : string
- $altText : string
- $width : int
- $height : int
- $action : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —Location()
Location message
public
static Location(string $title, string $address, float $latitude, float $longitude) : array<string|int, mixed>
Parameters
- $title : string
- $address : string
- $latitude : float
- $longitude : float
Tags
Return values
array<string|int, mixed> —QuickReply()
Quick reply
public
static QuickReply( $actions) : array<string|int, mixed>
Parameters
Tags
Return values
array<string|int, mixed> —Sticker()
Sticker message
public
static Sticker(string $packageId, string $stickerId) : array<string|int, mixed>
Parameters
- $packageId : string
- $stickerId : string
Tags
Return values
array<string|int, mixed> —Template()
Template messages
public
static Template(string $altText, array<string|int, mixed> $template) : array<string|int, mixed>
Parameters
- $altText : string
- $template : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —Text()
Text message
public
static Text(string $msgText) : array<string|int, mixed>
Parameters
- $msgText : string
Tags
Return values
array<string|int, mixed> —Video()
Video message
public
static Video(string $url, string $previewUrl) : array<string|int, mixed>
Parameters
- $url : string
- $previewUrl : string