11
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

LINE Botで取得できるデータの一覧

Last updated at Posted at 2016-04-21

LINE BotのCallbackで取得できるデータはcontentTypeごとに異なるようなので表にまとめておきます。
API reference for BOT API - Receiving messages

*locationデータは Locationメッセージからしか取得できない。
_ locationデータ付きのスタンプがサポートされるとうれしいなあ。_

##contentTypeごとのメッセージ有無
*データがないところはnullとなる

contentType 1:Text 2:Image 3:Video 4:Audio 7:Location 8:Sticker 10:Contact
id
contentType
from
createdTime
to
toType
contentMetadata - - - - -
text - - - - - -
location - - - - - -

##contentTypeごとのcontentMetadata有無
*データがないところはnullとなる

contentType 1:Text 2:Image 3:Video 4:Audio 7:Location 8:Sticker 10:Contact
STKPKGID - - - - - -
STKID - - - - - -
STKVER - - - - - -
STKTXT - - - - - -
mid - - - - - -
displayName - - - - - -

*データの取得についてはこちらの記事を参照させていただきました。↓
LINE BOT API Trialでできる全ての事を試してみた

11
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?