Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Fly in the LINE APIs

Fly in the LINE APIs

LINE Developers Thailand

September 13, 2022
Tweet

More Decks by LINE Developers Thailand

Other Decks in Technology

Transcript

  1. Create Booking with LINE LIFF liff.getProfile() { "userId": "U4af4980629...", "displayName":

    "Brown", "pictureUrl": "https://profile………………", "statusMessage": "Hello, LINE!" }
  2. Notify to Admin with LINE Notify https://notify-api.line.me/api/notify { "message": "นัดหมายเ

    ข้ ารับบริการ", "imageThumbnail": "https://..................", "imageFullsize": "https://.................." } Rate Limit : 1,000 / Hour / Acces Token
  3. { "destination": "xxxxxxxxxx", "events": [ { "replyToken": "nHuyWiB7yP…..", "type": "beacon",

    "source": { "type": "user", "userId": "U4af4980629..." }, "beacon": { "hwid": "d41d8cd98f", "type": "enter" } } ] } LINE Server Your Server LINE API "hwid": "d41d8cd98f", "userId": "U4af4980629. "replyToken": “nHuyWiB7 Reply Message
  4. Create Audience Group "audiences": [ { "id": "U30ab....." }, {

    "id": "U4a5f....." } ] U4af4980627... U4af4980628... U4af4980629... 10,000 userId / request ????? userId / request 1,500,000 userId / request
  5. POST - https://api.line.me/v2/bot/audienceGroup/{audienceGroupId} Check Audience Status Audience Group Check Ready

    { "audienceGroup": { "audienceGroupId": 1234567890123, "type": "UPLOAD", "description": "audienceGroupName_01", "status": "READY", "audienceCount": 1887, "created": 1608617466 } } “status": "READY", "audienceCount": 1887,
  6. POST - https://api.line.me/v2/bot/message/narrowcast Send Message via Narrowcast Audience Group Check

    Ready Send Message { "messages": [ { "type": "text", "text": "test message" } ], "recipient": { "type": "audience", "audienceGroupId": 5614991076 }, "limit": { "max": 100, "upToRemainingQuota": true } } “audienceGroupId": 561499 “max": 100,
 “upToRemainingQuota": true