POST api/LineBot/Post?isTest={isTest}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
isTest

boolean

Default value is False

Body Parameters

ReceivedMessage
NameDescriptionTypeAdditional information
events

Collection of LineEvent

None.

destination

string

None.

Request Formats

application/json, text/json

Sample:
{
  "events": [
    {
      "type": "sample string 1",
      "replyToken": "sample string 2",
      "source": {
        "userId": "sample string 1",
        "type": "sample string 2"
      },
      "timestamp": 3,
      "mode": "sample string 4",
      "message": {
        "type": "sample string 1",
        "id": "sample string 2",
        "quoteToken": "sample string 3",
        "fileName": "sample string 4",
        "fileSize": "sample string 5",
        "text": "sample string 6",
        "title": "sample string 7",
        "address": "sample string 8",
        "latitude": 9.1,
        "longitude": 10.1,
        "packageId": 11,
        "stickerId": 12,
        "stickerResourceType": "sample string 13",
        "duration": 14
      },
      "postback": {
        "data": "sample string 1",
        "type": "sample string 2",
        "label": "sample string 3",
        "text": "sample string 4",
        "value": "sample string 5"
      }
    },
    {
      "type": "sample string 1",
      "replyToken": "sample string 2",
      "source": {
        "userId": "sample string 1",
        "type": "sample string 2"
      },
      "timestamp": 3,
      "mode": "sample string 4",
      "message": {
        "type": "sample string 1",
        "id": "sample string 2",
        "quoteToken": "sample string 3",
        "fileName": "sample string 4",
        "fileSize": "sample string 5",
        "text": "sample string 6",
        "title": "sample string 7",
        "address": "sample string 8",
        "latitude": 9.1,
        "longitude": 10.1,
        "packageId": 11,
        "stickerId": 12,
        "stickerResourceType": "sample string 13",
        "duration": 14
      },
      "postback": {
        "data": "sample string 1",
        "type": "sample string 2",
        "label": "sample string 3",
        "text": "sample string 4",
        "value": "sample string 5"
      }
    }
  ],
  "destination": "sample string 1"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ("sample string 1");