File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -58,19 +58,21 @@ there you go.
5858``` typescript
5959import {
6060 // main APIs
61- Client ,
61+ messagingApi ,
6262 middleware ,
63+
64+ // webhook
65+ webhook ,
6366
6467 // exceptions
6568 JSONParseError ,
6669 SignatureValidationFailed ,
67-
68- // types
69- TemplateMessage ,
70- WebhookEvent ,
7170} from " @line/bot-sdk" ;
71+
72+ // For example, you can use MessagingApiClient like this:
73+ const { MessagingApiClient } = messagingApi ;
7274```
7375
7476Message object and webhook event types can be also imported from ` @line/bot-sdk ` ,
75- e.g. ` TemplateMessage ` or ` Event ` . For declarations of the types, please
77+ e.g. ` messagingApi. TemplateMessage` or ` webhook. Event` . For declarations of the types, please
7678refer to [ lib/] ( https://github.com/line/line-bot-sdk-nodejs/blob/master/lib/ ) .
You can’t perform that action at this time.
0 commit comments