Messaging APIs for multi-platform
await client.broadcast([
{
type: 'text',
text: 'Hello, world1',
},
]);
.getBotInfo()
:await client.getBotInfo();
// {
// "userId": "Ub9952f8...",
// "basicId": "@216ru...",
// "displayName": "Example name",
// "pictureUrl": "https://obs.line-apps.com/...",
// "chatMode": "chat",
// "markAsReadMode": "manual"
// }
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"
// }
The whole project has been rewritten with TypeScript and all APIs now accept camelcase keys instead of snakecase keys.
Please checkout the new API document.