Google Apps ScriptでLINEボット試してみましたsteemCreated with Sketch.

in Steem Japan2 years ago

こんにちは、@yasuです。

今回も、LINENのオウム返しボットです。

アクセストークンは、スクリプトプロパティから取得するようにしています。
image.png

ファイル作成は、Google ドライブから、Google Apps Script(GAS)を選択します。
image.png

上記のコードは、LINEボットSDKを利用すると、もっと簡単に記述できます。
image.png

スクリプトプロパティ
image.png

デプロイしたあと、URLが公開されるので、そのURLをLINEに登録します。

image.png

image.png

GASで作成した場合は、httpsの設定を意識する必要はありません。

https://steemitimages.com/u/yasu/avatar/
https://steemitimages.com/300x0/

ありがとうございました。

いらすとや
steemit サインアップ
steemit 知識
日本語 Steemit Discord (超初心者~誰でも)

image.png

image.png

@yasu.witness は、Witness Node、Seed Node、 Full API Nodeを立ち上げています。STEEMブロックチェーン安定化に貢献できるよう取り組んでいます。30票の1つを与えてくださると嬉しいです。

Simply go to the Steemit Wallet Witness list, scroll to the bottom, and fill in the form:
yasu.witness.gif

Sort:  
 2 years ago 

@yasu さん、こんにちは。

tomoyan.witnessに投票お願いします👇

https://steemitwallet.com/~witnesses

SPデレゲーション報酬

Wintessに投票すると毎日の報酬がアップ!詳しくは👇
https://steemit.com/hive-161179/@japansteemit/sp-delegation-reward-update

💡 アップボートガイド 💡

分からない事は何でも質問して下さい🙇

Coin Marketplace

STEEM 0.19
TRX 0.13
JST 0.029
BTC 58728.31
ETH 3185.59
USDT 1.00
SBD 2.43