Skip to content

1.1.0 / 2021-10-04

Latest
Compare
Choose a tag to compare
@chentsulin chentsulin released this 04 Oct 06:20
· 18 commits to master since this release

messaging-api-line

  • [new] Added support for broadcast API:
await client.broadcast([
  {
    type: 'text',
    text: 'Hello, world1',
  },
]);
  • [new] Added .getBotInfo():
await client.getBotInfo();
// {
//   "userId": "Ub9952f8...",
//   "basicId": "@216ru...",
//   "displayName": "Example name",
//   "pictureUrl": "https://obs.line-apps.com/...",
//   "chatMode": "chat",
//   "markAsReadMode": "manual"
// }
  • [new] Added support for webhook APIs:
await client.getWebhookEndpointInfo();
// {
//   "endpoint": "https://example.com/test",
//   "active": true
// }
await client.setWebhookEndpointUrl('https://www.example.com/callback');
await client.testWebhookEndpoint();
// {
//   "success": true,
//   "timestamp": "2020-09-30T05:38:20.031Z",
//   "statusCode": 200,
//   "reason": "OK",
//   "detail": "200"
// }