LoginSignup
0
0

More than 1 year has passed since last update.

Chatworkにメッセージを送るGASスクリプト

Posted at

20211017-01.JPG
20211017-02.JPG

function myFunction() {
  var WK_ROOM_ID = "(ROOMID)";
  var WK_TOKEN = "(TOKEN)";
  var WK_TEXT = "Chatworkにメッセージを送るGASスクリプト";
  // 送信データ
  var params = {
     headers : {"X-ChatWorkToken" : WK_TOKEN},
     method : "post",
     payload : {
       body : WK_TEXT
     }
   };
  var url = `https://api.chatwork.com/v2/rooms/${WK_ROOM_ID}/messages`;
  UrlFetchApp.fetch(url, params);
} 
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0