line-api-msg
Version:
I write japanese at bottom.
44 lines (40 loc) • 1.24 kB
Markdown
# 日本語は下に書いてあります。
I write japanese at bottom.
# How to install this
``` shell
npm install --save line-api-msg
```
# How to use this
Please access [here](https://business.line.me/ja/services/bot) .
If you don't have a "LINE bot Account".
You have to make a account.
And, please get accessToken and channelSecret.
```javascript
var lineTemp = require("line-msg-api");
var lineReplyData = lineTemp.pushData;
lineReplyData.headers = lineTemp.header;
lineReplyData.body.messages.push({
"type": "text",
"text": "sampleですよ"
});
lineTemp.sendFunc(lineReplyData);
```
# インストール
``` shell
npm install --save line-api-msg
```
# 使い方
下記のサイトにアクセスしてください.
[here](https://business.line.me/ja/services/bot)
LINE bot アカウントを所持していない場合はアカウントを作成してください.
"accessToken"と"channelSecret"の2つを取得しheadersに記載してください.
```javascript
var lineTemp = require("line-msg-api");
var lineReplyData = lineTemp.pushData;
lineReplyData.headers = lineTemp.header;
lineReplyData.body.messages.push({
"type": "text",
"text": "sampleですよ"
});
lineTemp.sendFunc(lineReplyData);
```