** Slackと連係 [#e9e0defd]

 $ yo hubot 
 ... ウィザードにしたがって adapterを slackを選択
 $ export HUBOT_SLACK_TOKEN=xoxb-xxxxxxxxxx   ←Slackの画面から取得
 $ bin/hubot --adapter slack


** HTTPでPOSTする [#b6782685]
 robot.respond /hoge/i, (res) ->
   url = "https://script.google.com/xxxx"
   res.http(url)
     .query(param1: "value1")
     .post() (error, response, body) ->
       res.send body

https://github.com/technoweenie/node-scoped-http-client これが使われているっぽい。

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS