Lineで利用できる変数です。
Lineのリファレンス Messaging Object
を適宜参照してください。
また、管理画面には LINE説明用テンプレート
テンプレートがあるので、そちらも参考にして下さい。
共通の変数と、送信したいメッセージ(text, image, imagemap, buttons, confirm, carousel)ごとの変数を以下で説明します。
メッセージでは5個までが一度に送信可能です。
Common variables
Name | Type | Required | Description |
---|---|---|---|
app_name | String | ○ |
|
lineVersion | String | ○ |
|
Text Message
Name | Type | Required | Description |
---|---|---|---|
text | String | ○ | Text |
テキスト内URLのクリック計測
現状テキスト内のURLはクリックの計測はされません。自動的な短縮化も行いません。
Image Message
Name | Type | Required | Description |
---|---|---|---|
image | String | ○ | Image URL |
imagemap Message
Name | Type | Required | Description |
---|---|---|---|
imagemap | Object (Folder) | ○ | |
imagemap.altText | String | ○ | Alternative text |
imagemap.baseUrl | String | ○ | Base URL of the image |
imagemap.baseSize | Object (Folder) | ○ | |
imagemap.baseSize.width | Number | ○ | Width of base image in pixels. Set to 1040. |
imagemap.baseSize.height | Number | ○ | Height of base image. Set to the height that corresponds to a width of 1040 pixels. |
imagemap.actions[] | Array (List) | ○ | Action when tapped |
imagemap.actions[].type | String | ○ |
|
imagemap.actions[].linkUri | String | ○ | Webpage URL |
imagemap.actions[].area | Object (Folder) | ○ | Defined tappable area |
imagemap.actions[].area.x | Number | ○ | Horizontal position relative to the top-left corner of the area |
imagemap.actions[].area.y | Number | ○ | Vertical position relative to the top-left corner of the area |
imagemap.actions[].area.width | Number | ○ | Width of the tappable area |
imagemap.actions[].area.height | Number | ○ | Height of the tappable area |
buttons Message
Name | Type | Required | Description |
---|---|---|---|
buttons | Object (Folder) | ○ | |
buttons.altText | String | ○ | Alternative text. |
buttons.title | String | Title | |
buttons.text | String | ○ | Message text |
buttons.thumbnailImageUrl | String | Image URL (Max: 1000 characters) | |
buttons.actions[] | Array (List) | ○ | Action when tapped See Action Object |
confirm Message
Name | Type | Required | Description |
---|---|---|---|
confirm | Object (Folder) | ○ | |
confirm.altText | String | ○ | Alternative text. |
confirm.text | String | ○ | Message text |
confirm.actions[] | Array (List) | ○ | Action when tapped See Action Object |
carousel Message
Name | Type | Required | Description |
---|---|---|---|
carousel | Object (Folder) | ○ | |
carousel.altText | String | ○ | Alternative text. |
carousel.columns[] | Array (List) | ○ | Array of columns |
carousel.columns[].thumbnailImageUrl | String | Image URL (Max: 1000 characters) | |
carousel.columns[].title | String | Title | |
carousel.columns[].text | String | ○ | Message text |
carousel.columns[].actions[] | Array (List) | ○ | Action when tapped See Action Object |
Action Object
Name | Type | Required | Description |
---|---|---|---|
type | String | ○ |
|
label | String | ○ | Label for the action |
text | String | ○ (if type is | Text sent when the action is performed |
uri | String | ○ (if type is | URI opened when the action is performed (Max: 1000 characters) Automatically convert this field into |