Introduction
TalkLabelが提供するAPIのドキュメントです。
This documentation aims to provide all the information you need to work with our API.
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by visiting your dashboard and clicking Generate API token.
各Objectの説明
Paginationオブジェクト
各オブジェクトを一覧取得した際、戻り値はPaginationオブジェクトを介して取得されます。
一覧取得APIは共通して以下のページネーションを返却し、各種オブジェクトは直近で生成された順番に取得されます。
{
"current_page": 1,
"data": [],
"links": {
"first": "api/v1/channels?page=1",
"last": "api/v1/channels?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« 前",
"active": false
},
{
"url": "api/v1/channels?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "次 »",
"active": false
}
],
"path": "api/v1/channels",
"per_page": 50,
"to": 1,
"total": 1
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
current_page
int
現在のページ番号
data
array
リソースオブジェクトの配列
links
object
リンク情報
meta
object
メタ情報
Userオブジェクト
{
"uuid": "2e0472d0-4ab7-4ac7-840c-9c896e192224",
"email": "demo1@example.com",
"email_verified_at": "2024-01-01T00:00:00.000000Z",
"name": "デモユーザー1",
"phone_number": "090-1234-5678",
"postal_code": "123-4567",
"prefecture": "東京都",
"address": "山本町佐藤10-8-5",
"building": "ハイツ山田106号",
"tmp_special_invitation_code": "123456789",
"link_code": "",
"line_user_id": "U0f5927464f4589fd98635acaf983f523",
"line_display_name": "LINEユーザー名",
"is_settlement": 1,
"extra_query_param": "hoge=test"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
uuid
string
一意に識別するためのUUID
email
string
メールアドレス
email_verified_at
string
メールアドレス認証実行日時
name
string
名前
phone_number
string
電話番号
postal_code
string
郵便番号
prefecture
string
都道府県
address
string
住所
building
string
建物名
tmp_special_invitation_code
string
仮登録時の特別招待コード
link_code
string
スマートフォン連携コード
line_user_id
string
LINEユーザーID
line_display_name
string
LINE表示名
is_settlement
int
決済済みかどうか
extra_query_param
string
その他のクエリパラメータ
Channelオブジェクト
{
"uuid": "c3cddb23-18b3-3e23-99ba-afaf64217753",
"name": "チャネル名",
"line_official_account_id": "@207dabog",
"current_channel_plan": {
"start_date": "2024-03-27",
"end_date": null,
"discount": 0,
"message_plan_id": 8,
"function_plan_id": 2,
"is_metered_billing": 0,
"is_current_plan": 1,
"is_exclude_payment_amount": 1,
"plan_name": "199,800円の超大容量プラン"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
uuid
string
一意に識別するためのUUID
name
string
チャネル名
line_official_account_id
string
LINE公式アカウントID
ChannelPlanオブジェクト
{
"start_date": "2024-01-01",
"end_date": null,
"is_current_plan": 1,
"deleted_at": null,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z",
"is_exclude_payment_amount": 1,
"plan_name": "199,800円の超大容量プラン"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
start_date
string
開始日
end_date
string
終了日
is_current_plan
int
現在のプランかどうか
is_exclude_payment_amount
int
決算に含めるかどうか
plan_name
string
プラン名
Friendオブジェクト
{
"uuid": "d607abbf-1a71-4415-951f-aaae42c5cc72",
"line_user_id": "U0f5927464f4589fd98635acaf983f523",
"line_display_name": "LINEユーザー",
"line_status_message": "LINEステータスメッセージ",
"line_picture_url": "https://example.com/picture.jpg",
"display_name": "表示名",
"name": "名前",
"email": "test@exampla.com",
"phone_number": "090-1234-5678",
"memo": "メモ",
"is_blocked": 0,
"blocked_at": null,
"is_blocking": 0,
"blocking_at": null,
"is_hidden": 0,
"latest_received_message_at": "2024-01-01T00:00:00.000000Z",
"unread_count": 0
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
uuid
string
一意に識別するためのUUID
line_user_id
string
LINEユーザーID
line_display_name
string
LINE表示名
line_status_message
string
LINEステータスメッセージ
line_picture_url
string
LINEプロフィール画像URL
display_name
string
表示名
name
string
名前
email
string
メールアドレス
phone_number
string
電話番号
memo
string
メモ
is_blocked
boolean
システムがブロックしているかどうか
blocked_at
string
ブロックされた日時
is_blocking
boolean
フレンドがブロックしているかどうか
blocking_at
string
ブロックした日時
is_hidden
boolean
非表示かどうか
latest_received_message_at
string
最新の受信メッセージ日時
unread_count
int
未読メッセージの数
TemplateActionオブジェクト
{
"uuid": "eeb448c2-cf87-4d81-8a9d-bcadf74d4db4",
"name": "テンプレートアクション名"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
uuid
string
一意に識別するためのUUID
name
string
テンプレートアクション名
Messageオブジェクト
{
"send_order": 1,
"type": 1,
"text": "テキスト",
"package_id": 11539,
"sticker_id": 52114110,
"image_url": "https://example.com/image.jpg",
"imagemap_type": 1,
"image_alt_text": "画像の代替テキスト",
"image_width": 1040,
"image_height": 1040,
"video_url": "https://example.com/video.mp4",
"audio_url": "https://example.com/audio.mp3",
"carousel_alt_text": "カルーセル:PC版・通知欄での代替テキスト",
"question": "質問文",
"question_alt_text": "質問:PC版・通知欄での代替テキスト",
"location_title": "位置情報タイトル",
"location_address": "位置情報の住所",
"location_latitude": 35.681236,
"location_longitude": 139.767125,
"introduction_text": "紹介文",
"introduction_line_id": "紹介文LINE ID",
"introduction_alt_text": "紹介:PC版・通知欄での代替テキスト",
"audio_duration": 60,
"preview_image_url": "https://example.com/preview_image.jpg"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
send_order
int
同時に5通まで送信できるので、その時の送信順
type
int
メッセージタイプ
text
string
テキスト
package_id
int
スタンプのパッケージID
sticker_id
int
スタンプID
image_url
string
画像URL
imagemap_type
int
領域設定
image_alt_text
string
画像の代替テキスト
image_width
int
画像の幅
image_height
int
画像の高さ
video_url
string
動画URL
audio_url
string
音声URL
carousel_alt_text
string
カルーセル:PC版・通知欄での代替テキスト
question
string
質問文
question_alt_text
string
質問:PC版・通知欄での代替テキスト
location_title
string
位置情報タイトル
location_address
string
位置情報の住所
location_latitude
float
位置情報の緯度
location_longitude
float
位置情報の経度
introduction_text
string
紹介文
introduction_line_id
string
紹介文LINE ID
introduction_alt_text
string
紹介:PC版・通知欄での代替テキスト
audio_duration
int
音声の再生時間
preview_image_url
string
プレビュー画像URL
MessageHistoryオブジェクト
{
"content_type": 1,
"line_message_id": "111111111111111111",
"file_url": "https://example.com/file.jpg",
"content": {
"message": {
"text": "メッセージ内容",
"type": "text",
"sender": {
"name": "カスタム送信者名",
"iconUrl": "https://example.com/icon.jpg"
}
}
},
"messaged_at": "2024-01-01T00:00:00.000000Z",
"text": "メッセージ内容"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
content_type
int
メッセージ内容を示す数値
・1 => テキスト
・2 => スタンプ
・3 => 画像
・4 => 動画
・5 => 音声
・6 => 質問
・7 => カルーセル
・8 => 位置情報
・9 => 紹介
・10 => ファイル
・11 => フレックス
line_message_id
string
LINEメッセージID
file_url
string
ファイルURL
content
json
メッセージ内容
messaged_at
string
メッセージ日時
text
string
メッセージ内容
FriendSearchTemplateオブジェクト
{
"name": "フレンドテンプレート検索名",
"friend_search_setting": {
"blocked": "hidden",
"blocking_hidden": "hidden",
"sort_by": "friend_added_desc",
"friend_search_groups": {
"friend_search_conditions": [
{
"conditionable_type": "App\\Models\\ConditionName",
"conditionable": {
"name": "山田",
"is_line_display_name": true,
"is_display_name": true
}
}
]
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
name
string
フレンドテンプレート検索名
FriendSearchSettingオブジェクト
{
"blocked": "hidden",
"blocking_hidden": "hidden",
"sort_by": "friend_added_desc",
"friend_search_groups": {
"friend_search_conditions": [
{
"conditionable_type": "App\\Models\\ConditionName",
"conditionable": {
"name": "山田",
"is_line_display_name": true,
"is_display_name": true
}
}
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
blocked
string
ブロックされたフレンドを表示するかどうか
blocking_hidden
string
自分がブロック・非表示にした人を表示するかどうか
sort_by
string
ソート順
ActionMessageオブジェクト
{
"send_timing": 1,
"send_delay_minutes": 0,
"messages": [
{
"send_order": 1,
"type": 1,
"text": "テキスト",
"package_id": 11539,
"sticker_id": 52114110,
"image_url": "https://example.com/image.jpg",
"imagemap_type": 1,
"image_alt_text": "画像の代替テキスト",
"image_width": 1040,
"image_height": 1040,
"video_url": "https://example.com/video.mp4",
"audio_url": "https://example.com/audio.mp3",
"carousel_alt_text": "カルーセル:PC版・通知欄での代替テキスト",
"question": "質問文",
"question_alt_text": "質問:PC版・通知欄での代替テキスト",
"location_title": "位置情報タイトル",
"location_address": "位置情報の住所",
"location_latitude": 35.681236,
"location_longitude": 139.767125,
"introduction_text": "紹介文",
"introduction_line_id": "紹介文LINE ID",
"introduction_alt_text": "紹介:PC版・通知欄での代替テキスト",
"audio_duration": 60,
"preview_image_url": "https://example.com/preview_image.jpg"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
send_timing
string
送信
send_delay_minutes
int
送信遅延時間
Folderオブジェクト
{
"uuid": "c95d0006-5c6d-4b9a-b5f9-2db75bb2a14f",
"name": "フォルダ名",
"order_number": 0,
"purpose": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
uuid
string
一意に識別するためのUUID
name
string
フォルダ名
order_number
int
表示順
purpose
enum
フォルダの用途を示す数値
・1 => タグ
・2 => スケジュール配信
・3 => 自動応答
・4 => テンプレートメッセージ
・5 => リマインダー配信
・6 => スケジュール設定
・7 => テンプレートアクション
・8 => テンプレート検索
・9 => URLクリック分析
・10 => リッチメニュー
・11 => シナリオ
・12 => 流入経路
・13 => 回答フォーム
Others
フレックスメッセージで送信するJSONの形式
Flex Message Simulatorで発行できるようなJSONの形式で指定してください。
{
"type": "bubble",
"hero": {
"type": "image",
"url": "https://developers-resource.landpress.line.me/fx/img/01_1_cafe.png",
"size": "full",
"aspectRatio": "20:13",
"aspectMode": "cover",
"action": {
"type": "uri",
"uri": "https://line.me/"
}
},
"body": {
"type": "box",
"layout": "vertical",
"contents": [
{
"type": "text",
"text": "Brown Cafe",
"weight": "bold",
"size": "xl"
},
{
"type": "box",
"layout": "baseline",
"margin": "md",
"contents": [
{
"type": "icon",
"size": "sm",
"url": "https://developers-resource.landpress.line.me/fx/img/review_gold_star_28.png"
},
{
"type": "icon",
"size": "sm",
"url": "https://developers-resource.landpress.line.me/fx/img/review_gold_star_28.png"
},
{
"type": "icon",
"size": "sm",
"url": "https://developers-resource.landpress.line.me/fx/img/review_gold_star_28.png"
},
{
"type": "icon",
"size": "sm",
"url": "https://developers-resource.landpress.line.me/fx/img/review_gold_star_28.png"
},
{
"type": "icon",
"size": "sm",
"url": "https://developers-resource.landpress.line.me/fx/img/review_gray_star_28.png"
},
{
"type": "text",
"text": "4.0",
"size": "sm",
"color": "#999999",
"margin": "md",
"flex": 0
}
]
},
{
"type": "box",
"layout": "vertical",
"margin": "lg",
"spacing": "sm",
"contents": [
{
"type": "box",
"layout": "baseline",
"spacing": "sm",
"contents": [
{
"type": "text",
"text": "Place",
"color": "#aaaaaa",
"size": "sm",
"flex": 1
},
{
"type": "text",
"text": "Flex Tower, 7-7-4 Midori-ku, Tokyo",
"wrap": true,
"color": "#666666",
"size": "sm",
"flex": 5
}
]
},
{
"type": "box",
"layout": "baseline",
"spacing": "sm",
"contents": [
{
"type": "text",
"text": "Time",
"color": "#aaaaaa",
"size": "sm",
"flex": 1
},
{
"type": "text",
"text": "10:00 - 23:00",
"wrap": true,
"color": "#666666",
"size": "sm",
"flex": 5
}
]
}
]
}
]
},
"footer": {
"type": "box",
"layout": "vertical",
"spacing": "sm",
"contents": [
{
"type": "button",
"style": "link",
"height": "sm",
"action": {
"type": "uri",
"label": "CALL",
"uri": "https://line.me/"
}
},
{
"type": "button",
"style": "link",
"height": "sm",
"action": {
"type": "uri",
"label": "WEBSITE",
"uri": "https://line.me/"
}
},
{
"type": "box",
"layout": "vertical",
"contents": [],
"margin": "sm"
}
],
"flex": 0
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
User
ユーザーを取得
ログイン中のユーザー情報を取得します。
リクエスト:
curl --request GET \
--get "https://app.talklabel.com/api/v1/user" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" const url = new URL(
"https://app.talklabel.com/api/v1/user"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/user';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/user'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json() レスポンス (200):
{
"data": {
"uuid": "47afc124-206d-49f9-b185-da84bf1bfa19",
"email": "kato.minoru@yahoo.co.jp",
"email_verified_at": "2025-12-06T08:53:37.000000Z",
"name": "吉田 晃",
"phone_number": "080-7857-8795",
"postal_code": "3196089",
"prefecture": "長野県",
"address": "井上町廣川1-4-8",
"building": "コーポ山口107号",
"tmp_special_invitation_code": null,
"link_code": "",
"line_user_id": "",
"line_display_name": "",
"is_settlement": 1,
"extra_query_param": ""
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
レスポンス
Channel
チャネルリストを取得
チャネルリストをぺージネーション形式で取得します。
リクエスト:
curl --request GET \
--get "https://app.talklabel.com/api/v1/channels" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" const url = new URL(
"https://app.talklabel.com/api/v1/channels"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/channels'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json() レスポンス (200):
{
"data": [
{
"uuid": "78927a54-3416-337d-8f07-bd2d3e06bf59",
"name": "デモチャネル",
"line_official_account_id": "@111dummy",
"current_channel_plan": {
"start_date": "2024-01-01",
"end_date": null,
"is_current_plan": 1,
"is_execute_payment_at": 0,
"plan_name": "199,800円の超大容量プラン",
}
],
"links": {
"first": "/api/v1/channels?page=1",
"last": "/api/v1/channels?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« 前",
"active": false
},
{
"url": "/api/v1/channels?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "次 »",
"active": false
}
],
"path": "/api/v1/channels?page=1",
"per_page": 50,
"to": 1,
"total": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
レスポンス
チャネルを取得
特定のチャネル情報を取得します。
リクエスト:
curl --request GET \
--get "https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" const url = new URL(
"https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json() レスポンス (200):
{
"uuid": "78927a54-3416-337d-8f07-bd2d3e06bf59",
"name": "デモチャネル",
"line_official_account_id": "@111dummy",
"current_channel_plan": {
"start_date": "2024-01-01",
"end_date": null,
"is_current_plan": 1,
"is_execute_payment_at": 0,
"plan_name": "199,800円の超大容量プラン",
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
レスポンス
フレンドリストを取得
チャネルに紐づくフレンド一覧をぺージネーション形式で取得します。
リクエスト:
curl --request GET \
--get "https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/friends?line_user_id=U0x9tejhRwGpatTuXUbeseVasWjGmKuT4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" const url = new URL(
"https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/friends"
);
const params = {
"line_user_id": "U0x9tejhRwGpatTuXUbeseVasWjGmKuT4",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/friends';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'query' => [
'line_user_id' => 'U0x9tejhRwGpatTuXUbeseVasWjGmKuT4',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/friends'
params = {
'line_user_id': 'U0x9tejhRwGpatTuXUbeseVasWjGmKuT4',
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() レスポンス (200):
{
"data": [
{
"uuid": "a722b5a4-f7fc-4884-8c23-58cc3a96f309",
"line_user_id": "U6f168a56162e00e6ea19af8dd6d82fe9",
"line_display_name": "LINEユーザー名",
"line_language": "ja",
"line_status_message": "LINEステータスメッセージ",
"line_picture_url": "https://example.com/picture.jpg",
"line_profile_api_json": [],
"display_name": "表示名",
"name": "名前",
"email": "yamaguchi.minoru@test.net"
"phone_number": "037-335-0831",
"memo": "メモ",
}
],
"links": {
"first": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/friends?page=1"
"last": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/friends?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« 前",
"active": false
},
{
"url": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/friends?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "次 »",
"active": false
}
],
"path": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/friends?page=1",
"per_page": 50,
"to": 1,
"total": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
レスポンス
LIFFを追加
LINEログインチャネルにLIFFを追加します。
リクエスト:
curl --request POST \
"https://app.talklabel.com/api/v1/channels/01607ec0-86fb-3429-865c-072dbfcdb93e/liffs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"viewType\": \"full\",
\"liffUrl\": \"https:\\/\\/example.com\",
\"description\": \"Voluptas consequatur iure aut qui eos suscipit eum.\"
}"
const url = new URL(
"https://app.talklabel.com/api/v1/channels/01607ec0-86fb-3429-865c-072dbfcdb93e/liffs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"viewType": "full",
"liffUrl": "https:\/\/example.com",
"description": "Voluptas consequatur iure aut qui eos suscipit eum."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/01607ec0-86fb-3429-865c-072dbfcdb93e/liffs';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'viewType' => 'full',
'liffUrl' => 'https://example.com',
'description' => 'Voluptas consequatur iure aut qui eos suscipit eum.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/channels/01607ec0-86fb-3429-865c-072dbfcdb93e/liffs'
payload = {
"viewType": "full",
"liffUrl": "https:\/\/example.com",
"description": "Voluptas consequatur iure aut qui eos suscipit eum."
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
レスポンス
200
liffIdを返却
LIFFを削除
LINEログインチャネルのLIFFを削除します。
リクエスト:
curl --request DELETE \
"https://app.talklabel.com/api/v1/channels/6613e08a-8e53-3ea6-960d-8f1e2ad2c24d/liffs/4267274925-L8tGETcV" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" const url = new URL(
"https://app.talklabel.com/api/v1/channels/6613e08a-8e53-3ea6-960d-8f1e2ad2c24d/liffs/4267274925-L8tGETcV"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/6613e08a-8e53-3ea6-960d-8f1e2ad2c24d/liffs/4267274925-L8tGETcV';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/channels/6613e08a-8e53-3ea6-960d-8f1e2ad2c24d/liffs/4267274925-L8tGETcV'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json() Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
メッセージ変数を同期
チャネルに紐づいたメッセージ変数を、指定されたメッセージ変数に同期します。
リクエスト:
curl --request POST \
"https://app.talklabel.com/api/v1/channels/7dbd285d-c84d-3ea3-8b44-0a4f318eabf6/message_variables" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"system\": \"aposuru\",
\"name_and_variables\": [
{
\"name\": \"商品価格\",
\"variable\": \"price\"
}
]
}"
const url = new URL(
"https://app.talklabel.com/api/v1/channels/7dbd285d-c84d-3ea3-8b44-0a4f318eabf6/message_variables"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"system": "aposuru",
"name_and_variables": [
{
"name": "商品価格",
"variable": "price"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/7dbd285d-c84d-3ea3-8b44-0a4f318eabf6/message_variables';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'system' => 'aposuru',
'name_and_variables' => [
[
'name' => '商品価格',
'variable' => 'price',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/channels/7dbd285d-c84d-3ea3-8b44-0a4f318eabf6/message_variables'
payload = {
"system": "aposuru",
"name_and_variables": [
{
"name": "商品価格",
"variable": "price"
}
]
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Folder
フォルダーリストを取得
フォルダーリストをぺージネーション形式で取得します。
リクエスト:
curl --request GET \
--get "https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/folders?page=1&rowsPerPage=50&purpose=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" const url = new URL(
"https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/folders"
);
const params = {
"page": "1",
"rowsPerPage": "50",
"purpose": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/folders';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'query' => [
'page' => '1',
'rowsPerPage' => '50',
'purpose' => '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/folders'
params = {
'page': '1',
'rowsPerPage': '50',
'purpose': '1',
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() レスポンス (200):
{
"data": [
{
"uuid": "c95d0006-5c6d-4b9a-b5f9-2db75bb2a14f",
"name": "フォルダ名",
"order_number": 0,
"purpose": 1,
}
],
"links": {
"first": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/folders?page=1",
"last": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/folders?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« 前",
"active": false
},
{
"url": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/folders?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "次 »",
"active": false
}
],
"path": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/folders?page=1",
"per_page": 50,
"to": 1,
"total": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Friend
フレンド情報を取得
特定のフレンド情報を取得します。
リクエスト:
curl --request GET \
--get "https://app.talklabel.com/api/v1/friends/a722b5a4-f7fc-4884-8c23-58cc3a96f309" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" const url = new URL(
"https://app.talklabel.com/api/v1/friends/a722b5a4-f7fc-4884-8c23-58cc3a96f309"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/friends/a722b5a4-f7fc-4884-8c23-58cc3a96f309';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/friends/a722b5a4-f7fc-4884-8c23-58cc3a96f309'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json() レスポンス (200):
{
"uuid": "a722b5a4-f7fc-4884-8c23-58cc3a96f309",
"line_user_id": "U6f168a56162e00e6ea19af8dd6d82fe9",
"line_display_name": "LINEユーザー名",
"line_language": "ja",
"line_status_message": "LINEステータスメッセージ",
"line_picture_url": "https://example.com/picture.jpg",
"line_profile_api_json": [],
"display_name": "表示名",
"name": "名前",
"email": "yamaguchi.minoru@test.net",
"phone_number": "037-335-0831",
"memo": "メモ",
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
レスポンス
テンプレート検索リストを取得
フレンドのテンプレート検索をぺージネーション形式で取得します。
リクエスト:
curl --request GET \
--get "https://app.talklabel.com/api/v1/friend_search_templates/4985b74e-0412-3555-86b7-413449b191ec" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" const url = new URL(
"https://app.talklabel.com/api/v1/friend_search_templates/4985b74e-0412-3555-86b7-413449b191ec"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/friend_search_templates/4985b74e-0412-3555-86b7-413449b191ec';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/friend_search_templates/4985b74e-0412-3555-86b7-413449b191ec'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json() レスポンス (200):
{
"data": [
{
"name": "山田さんのみ",
"friend_search_setting": {
"id": 1,
"blocked": "hidden",
"blocking_hidden": "hidden",
"sort_by": "friend_added_desc",
"friend_search_groups": [
{
"id": 1,
"friend_search_setting_id": 1,
"friend_search_conditions": [
{
"id": 1,
"friend_search_group_id": 1,
"conditionable_type": "App\\Models\\ConditionName",
"conditionable_id": 1,
"conditionable": {
"id": 1,
"name": "山田",
"is_line_display_name": true,
"is_display_name": true,
}
}
]
}
]
}
}
],
"links": {
"first": "/api/v1/friend_search_templates/78927a54-3416-337d-8f07-bd2d3e06bf59?page=1",
"last": "/api/v1/friend_search_templates/78927a54-3416-337d-8f07-bd2d3e06bf59?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« 前",
"active": false
},
{
"url": "/api/v1/friend_search_templates/78927a54-3416-337d-8f07-bd2d3e06bf59?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "次 »",
"active": false
}
],
"path": "/api/v1/friend_search_templates/78927a54-3416-337d-8f07-bd2d3e06bf59",
"per_page": 50,
"to": 1,
"total": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
レスポンス
FriendTalk
友だちトーク画面URLを取得
指定した友だちのトーク画面URLを取得します。
リクエスト:
curl --request GET \
--get "https://app.talklabel.com/api/v1/friends/1/talk_url" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" const url = new URL(
"https://app.talklabel.com/api/v1/friends/1/talk_url"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/friends/1/talk_url';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/friends/1/talk_url'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json() レスポンス (200):
{
"url": "https://localhost/friend_talk/friend_search?friend_uuid=a722b5a4-f7fc-4884-8c23-58cc3a96f309"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Message
メッセージ履歴を取得
メッセージ履歴をぺージネーション形式で取得します。
リクエスト:
curl --request GET \
--get "https://app.talklabel.com/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message_histories?page=1&rowsPerPage=50" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" const url = new URL(
"https://app.talklabel.com/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message_histories"
);
const params = {
"page": "1",
"rowsPerPage": "50",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message_histories';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'query' => [
'page' => '1',
'rowsPerPage' => '50',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message_histories'
params = {
'page': '1',
'rowsPerPage': '50',
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() レスポンス (200):
{
"data": [
{
"uuid": "c95d0006-5c6d-4b9a-b5f9-2db75bb2a14f",
"message_type": 1,
"content_type": 1,
"line_message_id": "1234567890",
"file_url": "https://example.com/file.jpg",
"content": "メッセージ内容",
"messaged_at": "2021-01-01 00:00:00",
"send_status": 1,
"response_json": "{}",
"text": "メッセージ内容",
"transaction_key": "c95d0006-5c6d-4b9a-b5f9-2db75bb2a14f",
"is_free_message": false,
"message_task_mark": {
{
"name": "タスクマーク名",
"color": "#000000",
"order": 0
}
]
}
],
"links": {
"first": "/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message_histories?page=1",
"last": "/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message_histories?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« 前",
"active": false
},
{
"url": "/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message_histories?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "次 »",
"active": false
}
],
"path": "/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message_histories?page=1",
"per_page": 50,
"to": 1,
"total": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
レスポンス
メッセージを送信
メッセージを送信します。
リクエスト:
curl --request POST \
"https://app.talklabel.com/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message/push" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"variable\": {
\"system\": \"modi\",
\"replace_friends\": [
{
\"friend_uuid\": \"9cdf3aca-43f8-48f4-bb6a-6b06079f6421\",
\"replaces\": [
{
\"key\": \"price\",
\"value\": \"¥100\"
}
]
}
],
\"names\": [
\"price\"
]
},
\"messages\": [
{
\"type\": 9,
\"text_sender_name\": \"kxqpuxnpqsb\",
\"text_sender_image_url\": \"http:\\/\\/www.schuster.com\\/sapiente-quibusdam-quo-veritatis-quo.html\",
\"stamp_sender_name\": \"cvjmcrmvlk\",
\"stamp_sender_image_url\": \"http:\\/\\/www.mccullough.com\\/expedita-animi-voluptate-aut-consequatur-voluptates-blanditiis-quas\",
\"image_sender_name\": \"botlcauwhdhmaocyv\",
\"image_sender_image_url\": \"http:\\/\\/www.labadie.com\\/debitis-pariatur-est-ut-sapiente-nam\",
\"video_sender_name\": \"qpmkmzypllss\",
\"video_sender_image_url\": \"http:\\/\\/smitham.net\\/quasi-suscipit-cumque-ut.html\",
\"audio_sender_name\": \"zcfuglmtx\",
\"audio_sender_image_url\": \"http:\\/\\/www.reynolds.com\\/\",
\"question_sender_name\": \"modbcoukss\",
\"question_sender_image_url\": \"http:\\/\\/www.jones.com\\/tenetur-similique-ipsa-tempore-natus-reprehenderit\",
\"carousel_sender_name\": \"onhxqngkqitq\",
\"carousel_sender_image_url\": \"http:\\/\\/beahan.info\\/est-dolorum-accusantium-veniam-temporibus-nemo-libero\",
\"location_sender_name\": \"frsnjzxhjut\",
\"location_sender_image_url\": \"http:\\/\\/wintheiser.com\\/consequatur-rerum-odit-est-pariatur-hic\",
\"introduction_sender_name\": \"rdxfpsknggnpiggov\",
\"introduction_sender_image_url\": \"http:\\/\\/www.larson.com\\/voluptatem-et-dicta-id-optio-consequatur\",
\"flex_sender_name\": \"mkhodznxypjzkiug\",
\"flex_sender_image_url\": \"http:\\/\\/mayert.com\\/eos-ea-corporis-qui-voluptatem-et.html\",
\"text\": \"htotcvqphsqvgoewwjfvcauwn\",
\"package_id\": 916848577.8,
\"sticker_id\": 722372.7233,
\"image_url\": \"https:\\/\\/example.com\\/image.jpg\",
\"image_width\": 148474700.15058288,
\"image_height\": 518.22,
\"imagemap_type\": 4,
\"imagemap_areas\": [
{
\"link_action\": 1,
\"url\": \"https:\\/\\/eichmann.com\\/sed-nemo-eos-voluptates-repellendus-qui-et.html\"
}
],
\"image_alt_text\": \"ifnarnigypgvdnqno\",
\"video_url\": \"https:\\/\\/example.com\\/video.mp4\",
\"preview_image_url\": \"https:\\/\\/example.com\\/preview.jpg\",
\"audio_url\": \"https:\\/\\/example.com\\/audio.mp3\",
\"audio_duration\": 10,
\"question\": \"ovcsljbcvgou\",
\"question_alt_text\": \"mbdr\",
\"message_question_choices\": [
{
\"choice\": \"mbfae\",
\"selected_action_type\": 5,
\"order\": 6,
\"url\": \"http:\\/\\/ziemann.biz\\/sit-non-alias-quidem-vitae-aut-voluptatem\",
\"phone_number\": \"Adz\",
\"line_id\": \"minima\",
\"email\": \"brolfson@example.org\",
\"message_question_choice_actions\": [
{
\"actionable_type\": \"App\\\\Models\\\\ActionMessage\",
\"actionable\": {
\"tags\": [
{
\"id\": \"quo\"
}
]
}
}
]
}
],
\"message_carousel_panels\": [
{
\"title\": \"igheupaoxmpszn\",
\"text\": \"whgcmtyanptpcocpmvv\",
\"message_carousel_choices\": [
{
\"name\": \"cdsnnvrio\",
\"carousel_action\": 3,
\"url\": \"https:\\/\\/mcclure.com\\/quis-incidunt-et-consequatur-sapiente-asperiores-eum-itaque.html\",
\"tel\": \"A-ddddd-z\",
\"line_user_id\": \"excepturi\",
\"mail\": \"arthur.rodriguez@example.com\",
\"message_carousel_choice_actions\": [
{
\"actionable_type\": \"App\\\\Models\\\\ActionTag\",
\"actionable\": {
\"tags\": [
{
\"id\": \"ut\"
}
]
}
}
]
}
]
}
],
\"carousel_alt_text\": \"fzxupnr\",
\"location_title\": \"qzqjbeknsgcabpmmk\",
\"location_address\": \"qcfcvcouyauodlajqhesrcgt\",
\"location_latitude\": 35.681236,
\"location_longitude\": 139.767125,
\"introduction_text\": \"wgn\",
\"introduction_line_id\": \"lpjjyxjnxuaeczd\",
\"introduction_alt_text\": \"jqxfbscefs\",
\"flex_json\": \"magni\"
}
]
}"
const url = new URL(
"https://app.talklabel.com/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message/push"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"variable": {
"system": "modi",
"replace_friends": [
{
"friend_uuid": "9cdf3aca-43f8-48f4-bb6a-6b06079f6421",
"replaces": [
{
"key": "price",
"value": "¥100"
}
]
}
],
"names": [
"price"
]
},
"messages": [
{
"type": 9,
"text_sender_name": "kxqpuxnpqsb",
"text_sender_image_url": "http:\/\/www.schuster.com\/sapiente-quibusdam-quo-veritatis-quo.html",
"stamp_sender_name": "cvjmcrmvlk",
"stamp_sender_image_url": "http:\/\/www.mccullough.com\/expedita-animi-voluptate-aut-consequatur-voluptates-blanditiis-quas",
"image_sender_name": "botlcauwhdhmaocyv",
"image_sender_image_url": "http:\/\/www.labadie.com\/debitis-pariatur-est-ut-sapiente-nam",
"video_sender_name": "qpmkmzypllss",
"video_sender_image_url": "http:\/\/smitham.net\/quasi-suscipit-cumque-ut.html",
"audio_sender_name": "zcfuglmtx",
"audio_sender_image_url": "http:\/\/www.reynolds.com\/",
"question_sender_name": "modbcoukss",
"question_sender_image_url": "http:\/\/www.jones.com\/tenetur-similique-ipsa-tempore-natus-reprehenderit",
"carousel_sender_name": "onhxqngkqitq",
"carousel_sender_image_url": "http:\/\/beahan.info\/est-dolorum-accusantium-veniam-temporibus-nemo-libero",
"location_sender_name": "frsnjzxhjut",
"location_sender_image_url": "http:\/\/wintheiser.com\/consequatur-rerum-odit-est-pariatur-hic",
"introduction_sender_name": "rdxfpsknggnpiggov",
"introduction_sender_image_url": "http:\/\/www.larson.com\/voluptatem-et-dicta-id-optio-consequatur",
"flex_sender_name": "mkhodznxypjzkiug",
"flex_sender_image_url": "http:\/\/mayert.com\/eos-ea-corporis-qui-voluptatem-et.html",
"text": "htotcvqphsqvgoewwjfvcauwn",
"package_id": 916848577.8,
"sticker_id": 722372.7233,
"image_url": "https:\/\/example.com\/image.jpg",
"image_width": 148474700.15058288,
"image_height": 518.22,
"imagemap_type": 4,
"imagemap_areas": [
{
"link_action": 1,
"url": "https:\/\/eichmann.com\/sed-nemo-eos-voluptates-repellendus-qui-et.html"
}
],
"image_alt_text": "ifnarnigypgvdnqno",
"video_url": "https:\/\/example.com\/video.mp4",
"preview_image_url": "https:\/\/example.com\/preview.jpg",
"audio_url": "https:\/\/example.com\/audio.mp3",
"audio_duration": 10,
"question": "ovcsljbcvgou",
"question_alt_text": "mbdr",
"message_question_choices": [
{
"choice": "mbfae",
"selected_action_type": 5,
"order": 6,
"url": "http:\/\/ziemann.biz\/sit-non-alias-quidem-vitae-aut-voluptatem",
"phone_number": "Adz",
"line_id": "minima",
"email": "brolfson@example.org",
"message_question_choice_actions": [
{
"actionable_type": "App\\Models\\ActionMessage",
"actionable": {
"tags": [
{
"id": "quo"
}
]
}
}
]
}
],
"message_carousel_panels": [
{
"title": "igheupaoxmpszn",
"text": "whgcmtyanptpcocpmvv",
"message_carousel_choices": [
{
"name": "cdsnnvrio",
"carousel_action": 3,
"url": "https:\/\/mcclure.com\/quis-incidunt-et-consequatur-sapiente-asperiores-eum-itaque.html",
"tel": "A-ddddd-z",
"line_user_id": "excepturi",
"mail": "arthur.rodriguez@example.com",
"message_carousel_choice_actions": [
{
"actionable_type": "App\\Models\\ActionTag",
"actionable": {
"tags": [
{
"id": "ut"
}
]
}
}
]
}
]
}
],
"carousel_alt_text": "fzxupnr",
"location_title": "qzqjbeknsgcabpmmk",
"location_address": "qcfcvcouyauodlajqhesrcgt",
"location_latitude": 35.681236,
"location_longitude": 139.767125,
"introduction_text": "wgn",
"introduction_line_id": "lpjjyxjnxuaeczd",
"introduction_alt_text": "jqxfbscefs",
"flex_json": "magni"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message/push';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'variable' => [
'system' => 'modi',
'replace_friends' => [
[
'friend_uuid' => '9cdf3aca-43f8-48f4-bb6a-6b06079f6421',
'replaces' => [
[
'key' => 'price',
'value' => '¥100',
],
],
],
],
'names' => [
'price',
],
],
'messages' => [
[
'type' => 9,
'text_sender_name' => 'kxqpuxnpqsb',
'text_sender_image_url' => 'http://www.schuster.com/sapiente-quibusdam-quo-veritatis-quo.html',
'stamp_sender_name' => 'cvjmcrmvlk',
'stamp_sender_image_url' => 'http://www.mccullough.com/expedita-animi-voluptate-aut-consequatur-voluptates-blanditiis-quas',
'image_sender_name' => 'botlcauwhdhmaocyv',
'image_sender_image_url' => 'http://www.labadie.com/debitis-pariatur-est-ut-sapiente-nam',
'video_sender_name' => 'qpmkmzypllss',
'video_sender_image_url' => 'http://smitham.net/quasi-suscipit-cumque-ut.html',
'audio_sender_name' => 'zcfuglmtx',
'audio_sender_image_url' => 'http://www.reynolds.com/',
'question_sender_name' => 'modbcoukss',
'question_sender_image_url' => 'http://www.jones.com/tenetur-similique-ipsa-tempore-natus-reprehenderit',
'carousel_sender_name' => 'onhxqngkqitq',
'carousel_sender_image_url' => 'http://beahan.info/est-dolorum-accusantium-veniam-temporibus-nemo-libero',
'location_sender_name' => 'frsnjzxhjut',
'location_sender_image_url' => 'http://wintheiser.com/consequatur-rerum-odit-est-pariatur-hic',
'introduction_sender_name' => 'rdxfpsknggnpiggov',
'introduction_sender_image_url' => 'http://www.larson.com/voluptatem-et-dicta-id-optio-consequatur',
'flex_sender_name' => 'mkhodznxypjzkiug',
'flex_sender_image_url' => 'http://mayert.com/eos-ea-corporis-qui-voluptatem-et.html',
'text' => 'htotcvqphsqvgoewwjfvcauwn',
'package_id' => 916848577.8,
'sticker_id' => 722372.7233,
'image_url' => 'https://example.com/image.jpg',
'image_width' => 148474700.15058288,
'image_height' => 518.22,
'imagemap_type' => 4,
'imagemap_areas' => [
[
'link_action' => 1,
'url' => 'https://eichmann.com/sed-nemo-eos-voluptates-repellendus-qui-et.html',
],
],
'image_alt_text' => 'ifnarnigypgvdnqno',
'video_url' => 'https://example.com/video.mp4',
'preview_image_url' => 'https://example.com/preview.jpg',
'audio_url' => 'https://example.com/audio.mp3',
'audio_duration' => 10,
'question' => 'ovcsljbcvgou',
'question_alt_text' => 'mbdr',
'message_question_choices' => [
[
'choice' => 'mbfae',
'selected_action_type' => 5,
'order' => 6,
'url' => 'http://ziemann.biz/sit-non-alias-quidem-vitae-aut-voluptatem',
'phone_number' => 'Adz',
'line_id' => 'minima',
'email' => 'brolfson@example.org',
'message_question_choice_actions' => [
[
'actionable_type' => 'App\\Models\\ActionMessage',
'actionable' => [
'tags' => [
[
'id' => 'quo',
],
],
],
],
],
],
],
'message_carousel_panels' => [
[
'title' => 'igheupaoxmpszn',
'text' => 'whgcmtyanptpcocpmvv',
'message_carousel_choices' => [
[
'name' => 'cdsnnvrio',
'carousel_action' => 3,
'url' => 'https://mcclure.com/quis-incidunt-et-consequatur-sapiente-asperiores-eum-itaque.html',
'tel' => 'A-ddddd-z',
'line_user_id' => 'excepturi',
'mail' => 'arthur.rodriguez@example.com',
'message_carousel_choice_actions' => [
[
'actionable_type' => 'App\\Models\\ActionTag',
'actionable' => [
'tags' => [
[
'id' => 'ut',
],
],
],
],
],
],
],
],
],
'carousel_alt_text' => 'fzxupnr',
'location_title' => 'qzqjbeknsgcabpmmk',
'location_address' => 'qcfcvcouyauodlajqhesrcgt',
'location_latitude' => 35.681236,
'location_longitude' => 139.767125,
'introduction_text' => 'wgn',
'introduction_line_id' => 'lpjjyxjnxuaeczd',
'introduction_alt_text' => 'jqxfbscefs',
'flex_json' => 'magni',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message/push'
payload = {
"variable": {
"system": "modi",
"replace_friends": [
{
"friend_uuid": "9cdf3aca-43f8-48f4-bb6a-6b06079f6421",
"replaces": [
{
"key": "price",
"value": "¥100"
}
]
}
],
"names": [
"price"
]
},
"messages": [
{
"type": 9,
"text_sender_name": "kxqpuxnpqsb",
"text_sender_image_url": "http:\/\/www.schuster.com\/sapiente-quibusdam-quo-veritatis-quo.html",
"stamp_sender_name": "cvjmcrmvlk",
"stamp_sender_image_url": "http:\/\/www.mccullough.com\/expedita-animi-voluptate-aut-consequatur-voluptates-blanditiis-quas",
"image_sender_name": "botlcauwhdhmaocyv",
"image_sender_image_url": "http:\/\/www.labadie.com\/debitis-pariatur-est-ut-sapiente-nam",
"video_sender_name": "qpmkmzypllss",
"video_sender_image_url": "http:\/\/smitham.net\/quasi-suscipit-cumque-ut.html",
"audio_sender_name": "zcfuglmtx",
"audio_sender_image_url": "http:\/\/www.reynolds.com\/",
"question_sender_name": "modbcoukss",
"question_sender_image_url": "http:\/\/www.jones.com\/tenetur-similique-ipsa-tempore-natus-reprehenderit",
"carousel_sender_name": "onhxqngkqitq",
"carousel_sender_image_url": "http:\/\/beahan.info\/est-dolorum-accusantium-veniam-temporibus-nemo-libero",
"location_sender_name": "frsnjzxhjut",
"location_sender_image_url": "http:\/\/wintheiser.com\/consequatur-rerum-odit-est-pariatur-hic",
"introduction_sender_name": "rdxfpsknggnpiggov",
"introduction_sender_image_url": "http:\/\/www.larson.com\/voluptatem-et-dicta-id-optio-consequatur",
"flex_sender_name": "mkhodznxypjzkiug",
"flex_sender_image_url": "http:\/\/mayert.com\/eos-ea-corporis-qui-voluptatem-et.html",
"text": "htotcvqphsqvgoewwjfvcauwn",
"package_id": 916848577.8,
"sticker_id": 722372.7233,
"image_url": "https:\/\/example.com\/image.jpg",
"image_width": 148474700.15058288,
"image_height": 518.22,
"imagemap_type": 4,
"imagemap_areas": [
{
"link_action": 1,
"url": "https:\/\/eichmann.com\/sed-nemo-eos-voluptates-repellendus-qui-et.html"
}
],
"image_alt_text": "ifnarnigypgvdnqno",
"video_url": "https:\/\/example.com\/video.mp4",
"preview_image_url": "https:\/\/example.com\/preview.jpg",
"audio_url": "https:\/\/example.com\/audio.mp3",
"audio_duration": 10,
"question": "ovcsljbcvgou",
"question_alt_text": "mbdr",
"message_question_choices": [
{
"choice": "mbfae",
"selected_action_type": 5,
"order": 6,
"url": "http:\/\/ziemann.biz\/sit-non-alias-quidem-vitae-aut-voluptatem",
"phone_number": "Adz",
"line_id": "minima",
"email": "brolfson@example.org",
"message_question_choice_actions": [
{
"actionable_type": "App\\Models\\ActionMessage",
"actionable": {
"tags": [
{
"id": "quo"
}
]
}
}
]
}
],
"message_carousel_panels": [
{
"title": "igheupaoxmpszn",
"text": "whgcmtyanptpcocpmvv",
"message_carousel_choices": [
{
"name": "cdsnnvrio",
"carousel_action": 3,
"url": "https:\/\/mcclure.com\/quis-incidunt-et-consequatur-sapiente-asperiores-eum-itaque.html",
"tel": "A-ddddd-z",
"line_user_id": "excepturi",
"mail": "arthur.rodriguez@example.com",
"message_carousel_choice_actions": [
{
"actionable_type": "App\\Models\\ActionTag",
"actionable": {
"tags": [
{
"id": "ut"
}
]
}
}
]
}
]
}
],
"carousel_alt_text": "fzxupnr",
"location_title": "qzqjbeknsgcabpmmk",
"location_address": "qcfcvcouyauodlajqhesrcgt",
"location_latitude": 35.681236,
"location_longitude": 139.767125,
"introduction_text": "wgn",
"introduction_line_id": "lpjjyxjnxuaeczd",
"introduction_alt_text": "jqxfbscefs",
"flex_json": "magni"
}
]
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
レスポンス
フレックスメッセージを送信
フレックスメッセージを送信します。
リクエスト:
curl --request POST \
"https://app.talklabel.com/api/v1/friends/flex_message/push" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"friend_ids\": [
\"e07ba8c6-f563-440e-a800-316c89f18f19\",
\"9cdf3aca-43f8-48f4-bb6a-6b06079f6421\"
],
\"flex_json\": \"vitae\"
}"
const url = new URL(
"https://app.talklabel.com/api/v1/friends/flex_message/push"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"friend_ids": [
"e07ba8c6-f563-440e-a800-316c89f18f19",
"9cdf3aca-43f8-48f4-bb6a-6b06079f6421"
],
"flex_json": "vitae"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/friends/flex_message/push';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'friend_ids' => [
'e07ba8c6-f563-440e-a800-316c89f18f19',
'9cdf3aca-43f8-48f4-bb6a-6b06079f6421',
],
'flex_json' => 'vitae',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/friends/flex_message/push'
payload = {
"friend_ids": [
"e07ba8c6-f563-440e-a800-316c89f18f19",
"9cdf3aca-43f8-48f4-bb6a-6b06079f6421"
],
"flex_json": "vitae"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
レスポンス
TemplateAction
テンプレートアクションリストを取得
テンプレートアクションリストをぺージネーション形式で取得します。
リクエスト:
curl --request GET \
--get "https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions?page=1&rowsPerPage=50&folder_uuid=08f511d4-058e-41f3-987c-25c34b3ed953" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" const url = new URL(
"https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions"
);
const params = {
"page": "1",
"rowsPerPage": "50",
"folder_uuid": "08f511d4-058e-41f3-987c-25c34b3ed953",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'query' => [
'page' => '1',
'rowsPerPage' => '50',
'folder_uuid' => '08f511d4-058e-41f3-987c-25c34b3ed953',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions'
params = {
'page': '1',
'rowsPerPage': '50',
'folder_uuid': '08f511d4-058e-41f3-987c-25c34b3ed953',
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() レスポンス (200):
{
"data": [
{
"uuid": "c95d0006-5c6d-4b9a-b5f9-2db75bb2a14f",
"name": "テンプレートアクション名",
"actions": [
{
"uuid": "88e3a7f5-888f-4610-9cd1-49f9352e3c26",
"actionable_type": "App\\Models\\ActionTag",
"order_number": 0,
"actionable": {
"action_type": 1,
"tags": [
{
"name": "タグ名",
}
],
}
}
]
}
],
"links": {
"first": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions?page=1",
"last": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« 前",
"active": false
},
{
"url": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "次 »",
"active": false
}
],
"path": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions?page=1",
"per_page": 50,
"to": 1,
"total": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
レスポンス
テンプレートアクションを作成
テンプレートアクションを作成します。
リクエスト:
curl --request POST \
"https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"folder_uuid\": \"7813356d-645f-4bcb-8d90-3c40da892ca2\",
\"name\": \"テンプレートアクション名\",
\"template_actions\": [
{
\"actionable\": {
\"tags\": [
{
\"id\": \"facere\"
}
],
\"messages\": [
{
\"type\": 2,
\"text_sender_name\": \"lzbbmdfnuiype\",
\"text_sender_image_url\": \"http:\\/\\/www.oberbrunner.com\\/dolorem-sint-quo-rerum-ratione-non-error-et\",
\"stamp_sender_name\": \"zbpekoz\",
\"stamp_sender_image_url\": \"http:\\/\\/bashirian.com\\/debitis-in-cum-ea-harum-voluptates-ullam-et\",
\"image_sender_name\": \"qqutjbisfewwp\",
\"image_sender_image_url\": \"https:\\/\\/kub.com\\/earum-suscipit-tenetur-natus-unde.html\",
\"video_sender_name\": \"fdbhwggrqz\",
\"video_sender_image_url\": \"http:\\/\\/hammes.com\\/corrupti-ex-facere-sit-aperiam-non-nisi\",
\"audio_sender_name\": \"pethlknochhuwzink\",
\"audio_sender_image_url\": \"http:\\/\\/www.brown.com\\/hic-architecto-laudantium-et-aut-minus\",
\"question_sender_name\": \"cozgtrjdlbzpqfharnxd\",
\"question_sender_image_url\": \"http:\\/\\/www.mosciski.com\\/ea-et-voluptatum-in-quia-neque-vel.html\",
\"carousel_sender_name\": \"hawavqlpkk\",
\"carousel_sender_image_url\": \"http:\\/\\/denesik.com\\/\",
\"location_sender_name\": \"ctb\",
\"location_sender_image_url\": \"https:\\/\\/bogan.com\\/dolores-vel-dolorem-dignissimos-quae.html\",
\"introduction_sender_name\": \"infdlnabo\",
\"introduction_sender_image_url\": \"https:\\/\\/collins.com\\/pariatur-dolorem-voluptatem-dolor-nisi-recusandae.html\",
\"flex_sender_name\": \"m\",
\"flex_sender_image_url\": \"http:\\/\\/wyman.net\\/ab-sit-quaerat-ipsum-et-fuga-nihil-sed.html\",
\"text\": \"bwsueuuyonneydhbclrujpit\",
\"package_id\": 2579.47,
\"sticker_id\": 540.03,
\"image_url\": \"http:\\/\\/www.leannon.biz\\/sed-quisquam-nam-quas-eos.html\",
\"image_width\": 1441058.6,
\"image_height\": 581110.418303456,
\"imagemap_type\": 0,
\"imagemap_areas\": [
{
\"link_action\": 1,
\"url\": \"https:\\/\\/www.schulist.org\\/vel-optio-ea-quod-ut-libero-exercitationem-laborum\"
}
],
\"image_alt_text\": \"nnosedpkrrc\",
\"video_url\": \"http:\\/\\/kuphal.com\\/id-distinctio-maxime-ea-dolores\",
\"preview_image_url\": \"https:\\/\\/www.schroeder.biz\\/quae-eos-ut-quia-sapiente\",
\"audio_url\": \"http:\\/\\/www.kertzmann.info\\/\",
\"audio_duration\": 14,
\"question\": \"zkqrso\",
\"question_alt_text\": \"wgvpkrqvkfntm\",
\"message_question_choices\": [
{
\"choice\": \"gicpywrx\",
\"selected_action_type\": 0,
\"order\": 8,
\"url\": \"http:\\/\\/www.boyer.org\\/iusto-animi-fuga-suscipit-quo-libero.html\",
\"phone_number\": \"A-z\",
\"line_id\": \"qui\",
\"email\": \"randi47@example.com\",
\"message_question_choice_actions\": [
{
\"actionable_type\": \"App\\\\Models\\\\ActionMessage\",
\"actionable\": {
\"tags\": [
{
\"id\": \"sint\"
}
]
}
}
]
}
],
\"message_carousel_panels\": [
{
\"title\": \"tw\",
\"text\": \"lbiz\",
\"message_carousel_choices\": [
{
\"name\": \"gqxt\",
\"carousel_action\": 6,
\"url\": \"https:\\/\\/www.bartoletti.com\\/officia-nesciunt-et-ut-quis-minima-voluptatem-fugit-distinctio\",
\"tel\": \"A--d--z\",
\"line_user_id\": \"nesciunt\",
\"mail\": \"braulio.hilpert@example.org\",
\"message_carousel_choice_actions\": [
{
\"actionable_type\": \"App\\\\Models\\\\ActionNotification\",
\"actionable\": {
\"tags\": [
{
\"id\": \"ut\"
}
]
}
}
]
}
]
}
],
\"carousel_alt_text\": \"wzrmimwtvobvintfwnpayri\",
\"location_title\": \"uizouj\",
\"location_address\": \"mhldabvdjswokuypp\",
\"location_latitude\": 348.8,
\"location_longitude\": 4287127.29955567,
\"introduction_text\": \"nftlyla\",
\"introduction_line_id\": \"hchtlloqebbwf\",
\"introduction_alt_text\": \"i\",
\"flex_json\": \"consequatur\"
}
]
}
}
]
}"
const url = new URL(
"https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"folder_uuid": "7813356d-645f-4bcb-8d90-3c40da892ca2",
"name": "テンプレートアクション名",
"template_actions": [
{
"actionable": {
"tags": [
{
"id": "facere"
}
],
"messages": [
{
"type": 2,
"text_sender_name": "lzbbmdfnuiype",
"text_sender_image_url": "http:\/\/www.oberbrunner.com\/dolorem-sint-quo-rerum-ratione-non-error-et",
"stamp_sender_name": "zbpekoz",
"stamp_sender_image_url": "http:\/\/bashirian.com\/debitis-in-cum-ea-harum-voluptates-ullam-et",
"image_sender_name": "qqutjbisfewwp",
"image_sender_image_url": "https:\/\/kub.com\/earum-suscipit-tenetur-natus-unde.html",
"video_sender_name": "fdbhwggrqz",
"video_sender_image_url": "http:\/\/hammes.com\/corrupti-ex-facere-sit-aperiam-non-nisi",
"audio_sender_name": "pethlknochhuwzink",
"audio_sender_image_url": "http:\/\/www.brown.com\/hic-architecto-laudantium-et-aut-minus",
"question_sender_name": "cozgtrjdlbzpqfharnxd",
"question_sender_image_url": "http:\/\/www.mosciski.com\/ea-et-voluptatum-in-quia-neque-vel.html",
"carousel_sender_name": "hawavqlpkk",
"carousel_sender_image_url": "http:\/\/denesik.com\/",
"location_sender_name": "ctb",
"location_sender_image_url": "https:\/\/bogan.com\/dolores-vel-dolorem-dignissimos-quae.html",
"introduction_sender_name": "infdlnabo",
"introduction_sender_image_url": "https:\/\/collins.com\/pariatur-dolorem-voluptatem-dolor-nisi-recusandae.html",
"flex_sender_name": "m",
"flex_sender_image_url": "http:\/\/wyman.net\/ab-sit-quaerat-ipsum-et-fuga-nihil-sed.html",
"text": "bwsueuuyonneydhbclrujpit",
"package_id": 2579.47,
"sticker_id": 540.03,
"image_url": "http:\/\/www.leannon.biz\/sed-quisquam-nam-quas-eos.html",
"image_width": 1441058.6,
"image_height": 581110.418303456,
"imagemap_type": 0,
"imagemap_areas": [
{
"link_action": 1,
"url": "https:\/\/www.schulist.org\/vel-optio-ea-quod-ut-libero-exercitationem-laborum"
}
],
"image_alt_text": "nnosedpkrrc",
"video_url": "http:\/\/kuphal.com\/id-distinctio-maxime-ea-dolores",
"preview_image_url": "https:\/\/www.schroeder.biz\/quae-eos-ut-quia-sapiente",
"audio_url": "http:\/\/www.kertzmann.info\/",
"audio_duration": 14,
"question": "zkqrso",
"question_alt_text": "wgvpkrqvkfntm",
"message_question_choices": [
{
"choice": "gicpywrx",
"selected_action_type": 0,
"order": 8,
"url": "http:\/\/www.boyer.org\/iusto-animi-fuga-suscipit-quo-libero.html",
"phone_number": "A-z",
"line_id": "qui",
"email": "randi47@example.com",
"message_question_choice_actions": [
{
"actionable_type": "App\\Models\\ActionMessage",
"actionable": {
"tags": [
{
"id": "sint"
}
]
}
}
]
}
],
"message_carousel_panels": [
{
"title": "tw",
"text": "lbiz",
"message_carousel_choices": [
{
"name": "gqxt",
"carousel_action": 6,
"url": "https:\/\/www.bartoletti.com\/officia-nesciunt-et-ut-quis-minima-voluptatem-fugit-distinctio",
"tel": "A--d--z",
"line_user_id": "nesciunt",
"mail": "braulio.hilpert@example.org",
"message_carousel_choice_actions": [
{
"actionable_type": "App\\Models\\ActionNotification",
"actionable": {
"tags": [
{
"id": "ut"
}
]
}
}
]
}
]
}
],
"carousel_alt_text": "wzrmimwtvobvintfwnpayri",
"location_title": "uizouj",
"location_address": "mhldabvdjswokuypp",
"location_latitude": 348.8,
"location_longitude": 4287127.29955567,
"introduction_text": "nftlyla",
"introduction_line_id": "hchtlloqebbwf",
"introduction_alt_text": "i",
"flex_json": "consequatur"
}
]
}
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'folder_uuid' => '7813356d-645f-4bcb-8d90-3c40da892ca2',
'name' => 'テンプレートアクション名',
'template_actions' => [
[
'actionable' => [
'tags' => [
[
'id' => 'facere',
],
],
'messages' => [
[
'type' => 2,
'text_sender_name' => 'lzbbmdfnuiype',
'text_sender_image_url' => 'http://www.oberbrunner.com/dolorem-sint-quo-rerum-ratione-non-error-et',
'stamp_sender_name' => 'zbpekoz',
'stamp_sender_image_url' => 'http://bashirian.com/debitis-in-cum-ea-harum-voluptates-ullam-et',
'image_sender_name' => 'qqutjbisfewwp',
'image_sender_image_url' => 'https://kub.com/earum-suscipit-tenetur-natus-unde.html',
'video_sender_name' => 'fdbhwggrqz',
'video_sender_image_url' => 'http://hammes.com/corrupti-ex-facere-sit-aperiam-non-nisi',
'audio_sender_name' => 'pethlknochhuwzink',
'audio_sender_image_url' => 'http://www.brown.com/hic-architecto-laudantium-et-aut-minus',
'question_sender_name' => 'cozgtrjdlbzpqfharnxd',
'question_sender_image_url' => 'http://www.mosciski.com/ea-et-voluptatum-in-quia-neque-vel.html',
'carousel_sender_name' => 'hawavqlpkk',
'carousel_sender_image_url' => 'http://denesik.com/',
'location_sender_name' => 'ctb',
'location_sender_image_url' => 'https://bogan.com/dolores-vel-dolorem-dignissimos-quae.html',
'introduction_sender_name' => 'infdlnabo',
'introduction_sender_image_url' => 'https://collins.com/pariatur-dolorem-voluptatem-dolor-nisi-recusandae.html',
'flex_sender_name' => 'm',
'flex_sender_image_url' => 'http://wyman.net/ab-sit-quaerat-ipsum-et-fuga-nihil-sed.html',
'text' => 'bwsueuuyonneydhbclrujpit',
'package_id' => 2579.47,
'sticker_id' => 540.03,
'image_url' => 'http://www.leannon.biz/sed-quisquam-nam-quas-eos.html',
'image_width' => 1441058.6,
'image_height' => 581110.418303456,
'imagemap_type' => 0,
'imagemap_areas' => [
[
'link_action' => 1,
'url' => 'https://www.schulist.org/vel-optio-ea-quod-ut-libero-exercitationem-laborum',
],
],
'image_alt_text' => 'nnosedpkrrc',
'video_url' => 'http://kuphal.com/id-distinctio-maxime-ea-dolores',
'preview_image_url' => 'https://www.schroeder.biz/quae-eos-ut-quia-sapiente',
'audio_url' => 'http://www.kertzmann.info/',
'audio_duration' => 14,
'question' => 'zkqrso',
'question_alt_text' => 'wgvpkrqvkfntm',
'message_question_choices' => [
[
'choice' => 'gicpywrx',
'selected_action_type' => 0,
'order' => 8,
'url' => 'http://www.boyer.org/iusto-animi-fuga-suscipit-quo-libero.html',
'phone_number' => 'A-z',
'line_id' => 'qui',
'email' => 'randi47@example.com',
'message_question_choice_actions' => [
[
'actionable_type' => 'App\\Models\\ActionMessage',
'actionable' => [
'tags' => [
[
'id' => 'sint',
],
],
],
],
],
],
],
'message_carousel_panels' => [
[
'title' => 'tw',
'text' => 'lbiz',
'message_carousel_choices' => [
[
'name' => 'gqxt',
'carousel_action' => 6,
'url' => 'https://www.bartoletti.com/officia-nesciunt-et-ut-quis-minima-voluptatem-fugit-distinctio',
'tel' => 'A--d--z',
'line_user_id' => 'nesciunt',
'mail' => 'braulio.hilpert@example.org',
'message_carousel_choice_actions' => [
[
'actionable_type' => 'App\\Models\\ActionNotification',
'actionable' => [
'tags' => [
[
'id' => 'ut',
],
],
],
],
],
],
],
],
],
'carousel_alt_text' => 'wzrmimwtvobvintfwnpayri',
'location_title' => 'uizouj',
'location_address' => 'mhldabvdjswokuypp',
'location_latitude' => 348.8,
'location_longitude' => 4287127.29955567,
'introduction_text' => 'nftlyla',
'introduction_line_id' => 'hchtlloqebbwf',
'introduction_alt_text' => 'i',
'flex_json' => 'consequatur',
],
],
],
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions'
payload = {
"folder_uuid": "7813356d-645f-4bcb-8d90-3c40da892ca2",
"name": "テンプレートアクション名",
"template_actions": [
{
"actionable": {
"tags": [
{
"id": "facere"
}
],
"messages": [
{
"type": 2,
"text_sender_name": "lzbbmdfnuiype",
"text_sender_image_url": "http:\/\/www.oberbrunner.com\/dolorem-sint-quo-rerum-ratione-non-error-et",
"stamp_sender_name": "zbpekoz",
"stamp_sender_image_url": "http:\/\/bashirian.com\/debitis-in-cum-ea-harum-voluptates-ullam-et",
"image_sender_name": "qqutjbisfewwp",
"image_sender_image_url": "https:\/\/kub.com\/earum-suscipit-tenetur-natus-unde.html",
"video_sender_name": "fdbhwggrqz",
"video_sender_image_url": "http:\/\/hammes.com\/corrupti-ex-facere-sit-aperiam-non-nisi",
"audio_sender_name": "pethlknochhuwzink",
"audio_sender_image_url": "http:\/\/www.brown.com\/hic-architecto-laudantium-et-aut-minus",
"question_sender_name": "cozgtrjdlbzpqfharnxd",
"question_sender_image_url": "http:\/\/www.mosciski.com\/ea-et-voluptatum-in-quia-neque-vel.html",
"carousel_sender_name": "hawavqlpkk",
"carousel_sender_image_url": "http:\/\/denesik.com\/",
"location_sender_name": "ctb",
"location_sender_image_url": "https:\/\/bogan.com\/dolores-vel-dolorem-dignissimos-quae.html",
"introduction_sender_name": "infdlnabo",
"introduction_sender_image_url": "https:\/\/collins.com\/pariatur-dolorem-voluptatem-dolor-nisi-recusandae.html",
"flex_sender_name": "m",
"flex_sender_image_url": "http:\/\/wyman.net\/ab-sit-quaerat-ipsum-et-fuga-nihil-sed.html",
"text": "bwsueuuyonneydhbclrujpit",
"package_id": 2579.47,
"sticker_id": 540.03,
"image_url": "http:\/\/www.leannon.biz\/sed-quisquam-nam-quas-eos.html",
"image_width": 1441058.6,
"image_height": 581110.418303456,
"imagemap_type": 0,
"imagemap_areas": [
{
"link_action": 1,
"url": "https:\/\/www.schulist.org\/vel-optio-ea-quod-ut-libero-exercitationem-laborum"
}
],
"image_alt_text": "nnosedpkrrc",
"video_url": "http:\/\/kuphal.com\/id-distinctio-maxime-ea-dolores",
"preview_image_url": "https:\/\/www.schroeder.biz\/quae-eos-ut-quia-sapiente",
"audio_url": "http:\/\/www.kertzmann.info\/",
"audio_duration": 14,
"question": "zkqrso",
"question_alt_text": "wgvpkrqvkfntm",
"message_question_choices": [
{
"choice": "gicpywrx",
"selected_action_type": 0,
"order": 8,
"url": "http:\/\/www.boyer.org\/iusto-animi-fuga-suscipit-quo-libero.html",
"phone_number": "A-z",
"line_id": "qui",
"email": "randi47@example.com",
"message_question_choice_actions": [
{
"actionable_type": "App\\Models\\ActionMessage",
"actionable": {
"tags": [
{
"id": "sint"
}
]
}
}
]
}
],
"message_carousel_panels": [
{
"title": "tw",
"text": "lbiz",
"message_carousel_choices": [
{
"name": "gqxt",
"carousel_action": 6,
"url": "https:\/\/www.bartoletti.com\/officia-nesciunt-et-ut-quis-minima-voluptatem-fugit-distinctio",
"tel": "A--d--z",
"line_user_id": "nesciunt",
"mail": "braulio.hilpert@example.org",
"message_carousel_choice_actions": [
{
"actionable_type": "App\\Models\\ActionNotification",
"actionable": {
"tags": [
{
"id": "ut"
}
]
}
}
]
}
]
}
],
"carousel_alt_text": "wzrmimwtvobvintfwnpayri",
"location_title": "uizouj",
"location_address": "mhldabvdjswokuypp",
"location_latitude": 348.8,
"location_longitude": 4287127.29955567,
"introduction_text": "nftlyla",
"introduction_line_id": "hchtlloqebbwf",
"introduction_alt_text": "i",
"flex_json": "consequatur"
}
]
}
}
]
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() レスポンス (200):
{
"uuid": "90c49b60-087e-41fc-896d-a8ce7e7c1533",
"name": "テンプレートアクション名",
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
レスポンス
テンプレートアクションを取得
特定のテンプレートアクション情報を取得します。
リクエスト:
curl --request GET \
--get "https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" const url = new URL(
"https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json() レスポンス (200):
{
"uuid": "90c49b60-087e-41fc-896d-a8ce7e7c1533",
"name": "テンプレートアクション名",
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
レスポンス
テンプレートアクションを更新
テンプレートアクションを更新します。
リクエスト:
curl --request PUT \
"https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"folder_uuid\": \"7813356d-645f-4bcb-8d90-3c40da892ca2\",
\"name\": \"テンプレートアクション名\",
\"template_actions\": [
{
\"actionable\": {
\"tags\": [
{
\"id\": \"atque\"
}
],
\"messages\": [
{
\"type\": 9,
\"text_sender_name\": \"brgsjmz\",
\"text_sender_image_url\": \"http:\\/\\/schowalter.info\\/sint-molestiae-id-quia-commodi\",
\"stamp_sender_name\": \"scbnmlp\",
\"stamp_sender_image_url\": \"https:\\/\\/schoen.net\\/ea-non-sint-quas-eos-ab.html\",
\"image_sender_name\": \"ypovrnqienjveord\",
\"image_sender_image_url\": \"http:\\/\\/maggio.com\\/maxime-quia-accusantium-laboriosam-quia-voluptatibus-quos-at.html\",
\"video_sender_name\": \"peuqybok\",
\"video_sender_image_url\": \"http:\\/\\/www.crooks.com\\/\",
\"audio_sender_name\": \"jlzfa\",
\"audio_sender_image_url\": \"http:\\/\\/dietrich.com\\/\",
\"question_sender_name\": \"bhufzrntncqgwertgcj\",
\"question_sender_image_url\": \"http:\\/\\/www.funk.net\\/et-iusto-doloribus-officia-inventore-qui-odio-a.html\",
\"carousel_sender_name\": \"sdxsdkmjkqgpbzxdilr\",
\"carousel_sender_image_url\": \"http:\\/\\/fay.com\\/et-eveniet-aspernatur-non-delectus-facere-tempore-veritatis\",
\"location_sender_name\": \"x\",
\"location_sender_image_url\": \"http:\\/\\/dooley.com\\/placeat-nulla-quasi-laborum-illo-nobis-aut-tenetur\",
\"introduction_sender_name\": \"cmzg\",
\"introduction_sender_image_url\": \"https:\\/\\/www.schinner.biz\\/praesentium-ut-voluptatem-labore-quam\",
\"flex_sender_name\": \"hodubldxetilsic\",
\"flex_sender_image_url\": \"http:\\/\\/reynolds.info\\/inventore-tempora-in-voluptatum-accusamus-dolores-in\",
\"text\": \"zneqjpoqoxkxqbuxhp\",
\"package_id\": 1467.87,
\"sticker_id\": 3925120.2203,
\"image_url\": \"http:\\/\\/www.padberg.com\\/hic-libero-ut-similique-animi-mollitia-voluptas-sed\",
\"image_width\": 1.40712,
\"image_height\": 0.929,
\"imagemap_type\": 7,
\"imagemap_areas\": [
{
\"link_action\": 0,
\"url\": \"http:\\/\\/kassulke.com\\/eveniet-dolor-ut-quisquam-voluptatem.html\"
}
],
\"image_alt_text\": \"eaoitswaokozdxfdggunhihmr\",
\"video_url\": \"http:\\/\\/www.padberg.com\\/et-quibusdam-impedit-ut-dolores-exercitationem-quaerat-odit\",
\"preview_image_url\": \"http:\\/\\/gislason.com\\/suscipit-tempora-dolor-non-neque-quidem-nulla\",
\"audio_url\": \"http:\\/\\/ritchie.biz\\/dolor-et-repellendus-iste-molestiae-totam-ut.html\",
\"audio_duration\": 9,
\"question\": \"vrayxgxyooikfvurtpw\",
\"question_alt_text\": \"zujxezrigixtiweege\",
\"message_question_choices\": [
{
\"choice\": \"vdixrkgoxz\",
\"selected_action_type\": 3,
\"order\": 11,
\"url\": \"http:\\/\\/dietrich.com\\/\",
\"phone_number\": \"Ad-dd-dd-dz\",
\"line_id\": \"possimus\",
\"email\": \"paucek.frederique@example.org\",
\"message_question_choice_actions\": [
{
\"actionable_type\": \"App\\\\Models\\\\ActionTag\",
\"actionable\": {
\"tags\": [
{
\"id\": \"vel\"
}
]
}
}
]
}
],
\"message_carousel_panels\": [
{
\"title\": \"admjlvrkxddmzmzosmjji\",
\"text\": \"aoksyeaqnkqwsklzpihuy\",
\"message_carousel_choices\": [
{
\"name\": \"nuwjjvev\",
\"carousel_action\": 6,
\"url\": \"http:\\/\\/www.schuppe.com\\/unde-dignissimos-officia-dolorem-vel.html\",
\"tel\": \"A-d-----d-dd---z\",
\"line_user_id\": \"velit\",
\"mail\": \"klein.fatima@example.com\",
\"message_carousel_choice_actions\": [
{
\"actionable_type\": \"App\\\\Models\\\\ActionTag\",
\"actionable\": {
\"tags\": [
{
\"id\": \"veritatis\"
}
]
}
}
]
}
]
}
],
\"carousel_alt_text\": \"veorvaz\",
\"location_title\": \"pavhtphenmyg\",
\"location_address\": \"zcpthdckasiksokyotn\",
\"location_latitude\": 23941500.7426,
\"location_longitude\": 3.38,
\"introduction_text\": \"qenqjkeqoibghxixfeydsjfv\",
\"introduction_line_id\": \"devhuptee\",
\"introduction_alt_text\": \"jzr\",
\"flex_json\": \"corporis\"
}
]
}
}
]
}"
const url = new URL(
"https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"folder_uuid": "7813356d-645f-4bcb-8d90-3c40da892ca2",
"name": "テンプレートアクション名",
"template_actions": [
{
"actionable": {
"tags": [
{
"id": "atque"
}
],
"messages": [
{
"type": 9,
"text_sender_name": "brgsjmz",
"text_sender_image_url": "http:\/\/schowalter.info\/sint-molestiae-id-quia-commodi",
"stamp_sender_name": "scbnmlp",
"stamp_sender_image_url": "https:\/\/schoen.net\/ea-non-sint-quas-eos-ab.html",
"image_sender_name": "ypovrnqienjveord",
"image_sender_image_url": "http:\/\/maggio.com\/maxime-quia-accusantium-laboriosam-quia-voluptatibus-quos-at.html",
"video_sender_name": "peuqybok",
"video_sender_image_url": "http:\/\/www.crooks.com\/",
"audio_sender_name": "jlzfa",
"audio_sender_image_url": "http:\/\/dietrich.com\/",
"question_sender_name": "bhufzrntncqgwertgcj",
"question_sender_image_url": "http:\/\/www.funk.net\/et-iusto-doloribus-officia-inventore-qui-odio-a.html",
"carousel_sender_name": "sdxsdkmjkqgpbzxdilr",
"carousel_sender_image_url": "http:\/\/fay.com\/et-eveniet-aspernatur-non-delectus-facere-tempore-veritatis",
"location_sender_name": "x",
"location_sender_image_url": "http:\/\/dooley.com\/placeat-nulla-quasi-laborum-illo-nobis-aut-tenetur",
"introduction_sender_name": "cmzg",
"introduction_sender_image_url": "https:\/\/www.schinner.biz\/praesentium-ut-voluptatem-labore-quam",
"flex_sender_name": "hodubldxetilsic",
"flex_sender_image_url": "http:\/\/reynolds.info\/inventore-tempora-in-voluptatum-accusamus-dolores-in",
"text": "zneqjpoqoxkxqbuxhp",
"package_id": 1467.87,
"sticker_id": 3925120.2203,
"image_url": "http:\/\/www.padberg.com\/hic-libero-ut-similique-animi-mollitia-voluptas-sed",
"image_width": 1.40712,
"image_height": 0.929,
"imagemap_type": 7,
"imagemap_areas": [
{
"link_action": 0,
"url": "http:\/\/kassulke.com\/eveniet-dolor-ut-quisquam-voluptatem.html"
}
],
"image_alt_text": "eaoitswaokozdxfdggunhihmr",
"video_url": "http:\/\/www.padberg.com\/et-quibusdam-impedit-ut-dolores-exercitationem-quaerat-odit",
"preview_image_url": "http:\/\/gislason.com\/suscipit-tempora-dolor-non-neque-quidem-nulla",
"audio_url": "http:\/\/ritchie.biz\/dolor-et-repellendus-iste-molestiae-totam-ut.html",
"audio_duration": 9,
"question": "vrayxgxyooikfvurtpw",
"question_alt_text": "zujxezrigixtiweege",
"message_question_choices": [
{
"choice": "vdixrkgoxz",
"selected_action_type": 3,
"order": 11,
"url": "http:\/\/dietrich.com\/",
"phone_number": "Ad-dd-dd-dz",
"line_id": "possimus",
"email": "paucek.frederique@example.org",
"message_question_choice_actions": [
{
"actionable_type": "App\\Models\\ActionTag",
"actionable": {
"tags": [
{
"id": "vel"
}
]
}
}
]
}
],
"message_carousel_panels": [
{
"title": "admjlvrkxddmzmzosmjji",
"text": "aoksyeaqnkqwsklzpihuy",
"message_carousel_choices": [
{
"name": "nuwjjvev",
"carousel_action": 6,
"url": "http:\/\/www.schuppe.com\/unde-dignissimos-officia-dolorem-vel.html",
"tel": "A-d-----d-dd---z",
"line_user_id": "velit",
"mail": "klein.fatima@example.com",
"message_carousel_choice_actions": [
{
"actionable_type": "App\\Models\\ActionTag",
"actionable": {
"tags": [
{
"id": "veritatis"
}
]
}
}
]
}
]
}
],
"carousel_alt_text": "veorvaz",
"location_title": "pavhtphenmyg",
"location_address": "zcpthdckasiksokyotn",
"location_latitude": 23941500.7426,
"location_longitude": 3.38,
"introduction_text": "qenqjkeqoibghxixfeydsjfv",
"introduction_line_id": "devhuptee",
"introduction_alt_text": "jzr",
"flex_json": "corporis"
}
]
}
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'folder_uuid' => '7813356d-645f-4bcb-8d90-3c40da892ca2',
'name' => 'テンプレートアクション名',
'template_actions' => [
[
'actionable' => [
'tags' => [
[
'id' => 'atque',
],
],
'messages' => [
[
'type' => 9,
'text_sender_name' => 'brgsjmz',
'text_sender_image_url' => 'http://schowalter.info/sint-molestiae-id-quia-commodi',
'stamp_sender_name' => 'scbnmlp',
'stamp_sender_image_url' => 'https://schoen.net/ea-non-sint-quas-eos-ab.html',
'image_sender_name' => 'ypovrnqienjveord',
'image_sender_image_url' => 'http://maggio.com/maxime-quia-accusantium-laboriosam-quia-voluptatibus-quos-at.html',
'video_sender_name' => 'peuqybok',
'video_sender_image_url' => 'http://www.crooks.com/',
'audio_sender_name' => 'jlzfa',
'audio_sender_image_url' => 'http://dietrich.com/',
'question_sender_name' => 'bhufzrntncqgwertgcj',
'question_sender_image_url' => 'http://www.funk.net/et-iusto-doloribus-officia-inventore-qui-odio-a.html',
'carousel_sender_name' => 'sdxsdkmjkqgpbzxdilr',
'carousel_sender_image_url' => 'http://fay.com/et-eveniet-aspernatur-non-delectus-facere-tempore-veritatis',
'location_sender_name' => 'x',
'location_sender_image_url' => 'http://dooley.com/placeat-nulla-quasi-laborum-illo-nobis-aut-tenetur',
'introduction_sender_name' => 'cmzg',
'introduction_sender_image_url' => 'https://www.schinner.biz/praesentium-ut-voluptatem-labore-quam',
'flex_sender_name' => 'hodubldxetilsic',
'flex_sender_image_url' => 'http://reynolds.info/inventore-tempora-in-voluptatum-accusamus-dolores-in',
'text' => 'zneqjpoqoxkxqbuxhp',
'package_id' => 1467.87,
'sticker_id' => 3925120.2203,
'image_url' => 'http://www.padberg.com/hic-libero-ut-similique-animi-mollitia-voluptas-sed',
'image_width' => 1.40712,
'image_height' => 0.929,
'imagemap_type' => 7,
'imagemap_areas' => [
[
'link_action' => 0,
'url' => 'http://kassulke.com/eveniet-dolor-ut-quisquam-voluptatem.html',
],
],
'image_alt_text' => 'eaoitswaokozdxfdggunhihmr',
'video_url' => 'http://www.padberg.com/et-quibusdam-impedit-ut-dolores-exercitationem-quaerat-odit',
'preview_image_url' => 'http://gislason.com/suscipit-tempora-dolor-non-neque-quidem-nulla',
'audio_url' => 'http://ritchie.biz/dolor-et-repellendus-iste-molestiae-totam-ut.html',
'audio_duration' => 9,
'question' => 'vrayxgxyooikfvurtpw',
'question_alt_text' => 'zujxezrigixtiweege',
'message_question_choices' => [
[
'choice' => 'vdixrkgoxz',
'selected_action_type' => 3,
'order' => 11,
'url' => 'http://dietrich.com/',
'phone_number' => 'Ad-dd-dd-dz',
'line_id' => 'possimus',
'email' => 'paucek.frederique@example.org',
'message_question_choice_actions' => [
[
'actionable_type' => 'App\\Models\\ActionTag',
'actionable' => [
'tags' => [
[
'id' => 'vel',
],
],
],
],
],
],
],
'message_carousel_panels' => [
[
'title' => 'admjlvrkxddmzmzosmjji',
'text' => 'aoksyeaqnkqwsklzpihuy',
'message_carousel_choices' => [
[
'name' => 'nuwjjvev',
'carousel_action' => 6,
'url' => 'http://www.schuppe.com/unde-dignissimos-officia-dolorem-vel.html',
'tel' => 'A-d-----d-dd---z',
'line_user_id' => 'velit',
'mail' => 'klein.fatima@example.com',
'message_carousel_choice_actions' => [
[
'actionable_type' => 'App\\Models\\ActionTag',
'actionable' => [
'tags' => [
[
'id' => 'veritatis',
],
],
],
],
],
],
],
],
],
'carousel_alt_text' => 'veorvaz',
'location_title' => 'pavhtphenmyg',
'location_address' => 'zcpthdckasiksokyotn',
'location_latitude' => 23941500.7426,
'location_longitude' => 3.38,
'introduction_text' => 'qenqjkeqoibghxixfeydsjfv',
'introduction_line_id' => 'devhuptee',
'introduction_alt_text' => 'jzr',
'flex_json' => 'corporis',
],
],
],
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4'
payload = {
"folder_uuid": "7813356d-645f-4bcb-8d90-3c40da892ca2",
"name": "テンプレートアクション名",
"template_actions": [
{
"actionable": {
"tags": [
{
"id": "atque"
}
],
"messages": [
{
"type": 9,
"text_sender_name": "brgsjmz",
"text_sender_image_url": "http:\/\/schowalter.info\/sint-molestiae-id-quia-commodi",
"stamp_sender_name": "scbnmlp",
"stamp_sender_image_url": "https:\/\/schoen.net\/ea-non-sint-quas-eos-ab.html",
"image_sender_name": "ypovrnqienjveord",
"image_sender_image_url": "http:\/\/maggio.com\/maxime-quia-accusantium-laboriosam-quia-voluptatibus-quos-at.html",
"video_sender_name": "peuqybok",
"video_sender_image_url": "http:\/\/www.crooks.com\/",
"audio_sender_name": "jlzfa",
"audio_sender_image_url": "http:\/\/dietrich.com\/",
"question_sender_name": "bhufzrntncqgwertgcj",
"question_sender_image_url": "http:\/\/www.funk.net\/et-iusto-doloribus-officia-inventore-qui-odio-a.html",
"carousel_sender_name": "sdxsdkmjkqgpbzxdilr",
"carousel_sender_image_url": "http:\/\/fay.com\/et-eveniet-aspernatur-non-delectus-facere-tempore-veritatis",
"location_sender_name": "x",
"location_sender_image_url": "http:\/\/dooley.com\/placeat-nulla-quasi-laborum-illo-nobis-aut-tenetur",
"introduction_sender_name": "cmzg",
"introduction_sender_image_url": "https:\/\/www.schinner.biz\/praesentium-ut-voluptatem-labore-quam",
"flex_sender_name": "hodubldxetilsic",
"flex_sender_image_url": "http:\/\/reynolds.info\/inventore-tempora-in-voluptatum-accusamus-dolores-in",
"text": "zneqjpoqoxkxqbuxhp",
"package_id": 1467.87,
"sticker_id": 3925120.2203,
"image_url": "http:\/\/www.padberg.com\/hic-libero-ut-similique-animi-mollitia-voluptas-sed",
"image_width": 1.40712,
"image_height": 0.929,
"imagemap_type": 7,
"imagemap_areas": [
{
"link_action": 0,
"url": "http:\/\/kassulke.com\/eveniet-dolor-ut-quisquam-voluptatem.html"
}
],
"image_alt_text": "eaoitswaokozdxfdggunhihmr",
"video_url": "http:\/\/www.padberg.com\/et-quibusdam-impedit-ut-dolores-exercitationem-quaerat-odit",
"preview_image_url": "http:\/\/gislason.com\/suscipit-tempora-dolor-non-neque-quidem-nulla",
"audio_url": "http:\/\/ritchie.biz\/dolor-et-repellendus-iste-molestiae-totam-ut.html",
"audio_duration": 9,
"question": "vrayxgxyooikfvurtpw",
"question_alt_text": "zujxezrigixtiweege",
"message_question_choices": [
{
"choice": "vdixrkgoxz",
"selected_action_type": 3,
"order": 11,
"url": "http:\/\/dietrich.com\/",
"phone_number": "Ad-dd-dd-dz",
"line_id": "possimus",
"email": "paucek.frederique@example.org",
"message_question_choice_actions": [
{
"actionable_type": "App\\Models\\ActionTag",
"actionable": {
"tags": [
{
"id": "vel"
}
]
}
}
]
}
],
"message_carousel_panels": [
{
"title": "admjlvrkxddmzmzosmjji",
"text": "aoksyeaqnkqwsklzpihuy",
"message_carousel_choices": [
{
"name": "nuwjjvev",
"carousel_action": 6,
"url": "http:\/\/www.schuppe.com\/unde-dignissimos-officia-dolorem-vel.html",
"tel": "A-d-----d-dd---z",
"line_user_id": "velit",
"mail": "klein.fatima@example.com",
"message_carousel_choice_actions": [
{
"actionable_type": "App\\Models\\ActionTag",
"actionable": {
"tags": [
{
"id": "veritatis"
}
]
}
}
]
}
]
}
],
"carousel_alt_text": "veorvaz",
"location_title": "pavhtphenmyg",
"location_address": "zcpthdckasiksokyotn",
"location_latitude": 23941500.7426,
"location_longitude": 3.38,
"introduction_text": "qenqjkeqoibghxixfeydsjfv",
"introduction_line_id": "devhuptee",
"introduction_alt_text": "jzr",
"flex_json": "corporis"
}
]
}
}
]
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json() レスポンス (200):
{
"uuid": "90c49b60-087e-41fc-896d-a8ce7e7c1533",
"name": "テンプレートアクション名",
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
レスポンス
テンプレートアクションを削除
テンプレートアクションを削除します。
リクエスト:
curl --request DELETE \
"https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" const url = new URL(
"https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json() Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
テンプレートアクションを実行
テンプレートアクションを指定されたフレンドに対して実行します。
リクエスト:
curl --request POST \
"https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4/execute" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"friend_ids\": [
\"e07ba8c6-f563-440e-a800-316c89f18f19\",
\"9cdf3aca-43f8-48f4-bb6a-6b06079f6421\"
],
\"variable\": {
\"system\": \"aposuru\",
\"replace_friends\": [
{
\"friend_uuid\": \"9cdf3aca-43f8-48f4-bb6a-6b06079f6421\",
\"replaces\": [
{
\"key\": \"price\",
\"value\": \"¥100\"
}
]
}
]
},
\"options\": {
\"0\": \"non\",
\"reminder_options\": [
{
\"action_uuid\": \"ca0a79fe-77a8-471f-bc2f-f639699f746b\",
\"goal_datetime\": \"2024-05-13 12:00:00\"
}
]
}
}"
const url = new URL(
"https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4/execute"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"friend_ids": [
"e07ba8c6-f563-440e-a800-316c89f18f19",
"9cdf3aca-43f8-48f4-bb6a-6b06079f6421"
],
"variable": {
"system": "aposuru",
"replace_friends": [
{
"friend_uuid": "9cdf3aca-43f8-48f4-bb6a-6b06079f6421",
"replaces": [
{
"key": "price",
"value": "¥100"
}
]
}
]
},
"options": {
"0": "non",
"reminder_options": [
{
"action_uuid": "ca0a79fe-77a8-471f-bc2f-f639699f746b",
"goal_datetime": "2024-05-13 12:00:00"
}
]
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4/execute';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'friend_ids' => [
'e07ba8c6-f563-440e-a800-316c89f18f19',
'9cdf3aca-43f8-48f4-bb6a-6b06079f6421',
],
'variable' => [
'system' => 'aposuru',
'replace_friends' => [
[
'friend_uuid' => '9cdf3aca-43f8-48f4-bb6a-6b06079f6421',
'replaces' => [
[
'key' => 'price',
'value' => '¥100',
],
],
],
],
],
'options' => [
'non',
'reminder_options' => [
[
'action_uuid' => 'ca0a79fe-77a8-471f-bc2f-f639699f746b',
'goal_datetime' => '2024-05-13 12:00:00',
],
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4/execute'
payload = {
"friend_ids": [
"e07ba8c6-f563-440e-a800-316c89f18f19",
"9cdf3aca-43f8-48f4-bb6a-6b06079f6421"
],
"variable": {
"system": "aposuru",
"replace_friends": [
{
"friend_uuid": "9cdf3aca-43f8-48f4-bb6a-6b06079f6421",
"replaces": [
{
"key": "price",
"value": "¥100"
}
]
}
]
},
"options": {
"0": "non",
"reminder_options": [
{
"action_uuid": "ca0a79fe-77a8-471f-bc2f-f639699f746b",
"goal_datetime": "2024-05-13 12:00:00"
}
]
}
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.