Using beacons | LINE Developers

文章推薦指數: 80 %
投票人數:10人

With LINE Beacon, your bot can receive beacon webhook events whenever a LINE user enters the proximity of a beacon. Using beacons, you can customize your ... Back News Products Documentation FAQ Glossary More MessagingAPItop APIreference Developmentguidelines Quickstart Guides LINEBotDesigner FlexMessage Concepts Reference Resources HomeDocumentationMessagingAPIUsingbeacons#UsingbeaconsWithLINEBeacon,yourbotcanreceivebeaconwebhookeventswheneveraLINEuserenterstheproximityofabeacon.Usingbeacons,youcancustomizeyourbotapptointeractwithusersinspecificcontexts. Note LINEBeaconisavailableinJapan,Taiwan,Thailand,andIndonesia. RecommendedenvironmentsforLINEBeacon WerecommendthatyouusethelatestversionsofLINEforLINEBeacon.#GettingabeaconTouseLINEBeacon,you'llfirstneedaBluetooth®LowEnergybeacontolinkwithyourLINEOfficialAccount.YoucanlinkoneofthefollowingtypesofdeviceswithyourLINEOfficialAccount.AbeacondevicethatsupportsLINEBeacon.Supporteddevicesareavailablehere(opensnewwindow). Note ThesedevicesareonlysupportedinJapan.ABluetooth®LowEnergydevicethatusestheLINESimpleBeacon(opensnewwindow)specification.#LinkingyourLINEOfficialAccountwithabeaconTolinkyourLINEOfficialAccountwithabeacon,gotothebeaconregistrationpageinLINEOfficialAccountManager(opensnewwindow).YoucaneitherlinkaLINEBeaconsupporteddevicewithyourLINEOfficialAccountorissueaLINESimpleBeaconhardwareIDforadevice. Note YoucanlinkmultiplebeaconswithasingleLINEOfficialAccount.However,asinglebeaconcannotbelinkedwithmultipleLINEOfficialAccounts.#ReceivingwebhookeventsForyourbotservertoreceivebeaconwebhookeventswhenauserisdetectedbythebeacon,theusermusthaveBluetoothandtheLINEBeaconsettingonLINEturnedon.TheusermustalsohaveaddedaLINEOfficialAccountassociatedwithyourbotasafriend.Totriggerabeaconwebhookevent,followthesesteps.MakesurethatyoursmartphonehasBluetoothturnedonSelectUseLINEBeaconfromSettings>PrivacyonLINEMakesurethatthebeaconisturnedonandbringyoursmartphoneintoitsrangeConfirmthatyourbotserverreceivesabeaconeventobjectExamplebeaconeventobject{ "destination":"xxxxxxxxxx", "events":[ { "replyToken":"nHuyWiB7yP5Zw52FIkcQobQuGDXCTA", "type":"beacon", "mode":"active", "timestamp":1462629479859, "source":{ "type":"user", "userId":"U4af4980629..." }, "beacon":{ "hwid":"d41d8cd98f", "type":"enter" } } ] } Formoreinformation,seebeaconeventintheMessagingAPIreference.#BeaconbannerThebeaconbannerfeatureisonlyavailabletocorporateusers.Formoreinformation,contactyourLINErepresentativeormakeaninquirythroughtheLINEforBusinesswebsite.Thebeaconbannerisabannerthatappearsabovethe"Friends"or"Chats"screenwhenauserisdetectedbyabeacon.Withthebeaconbannerfeature,youcanletusersturnon"LINEBeacon"onLINE,addyourLINEOfficialAccountasafriend,andreceiveamessagefromyourLINEOfficialAccountbytappingonthebanner.



請為這篇文章評分?