0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

GASを使って定時実行でConnpassの勉強会をSlackに投稿する

Last updated at Posted at 2021-09-16

はじめに

職場のSlackがConnpassの勉強会情報を収集していて、便利だったので自宅でも再現してみようと思いました。
職場の実装内容がわかっていませんが、ConnpassがWebAPIを用意しているのでやりたいことはできそうです。

必要なモノ

Let's 構築

  1. Slackのチャンネル作成、Webhook発行
  2. GASの製造
  3. connpass APIをリクエスト
  4. レスポンスをSlackに投稿する文章に加工
  5. SlackのWebhookに投稿
  6. GASのトリガーなどを設定

GASの製造以外については、下記の記事内の手順をコピペでやり過ごしました。
https://qiita.com/mabubu0203/items/50be232ddb68fe723df6

コード

Github: https://github.com/mabubu0203/GAS/tree/main/slack-connpass

見え方

スクリーンショット 2021-09-16 17.27.58.png

まとめ

Qiita内でconnpassAPIで調べたところ記事があまりヒットしませんでした。
GASでの実装は難易度が低めな印象なので、個人でSlackを運用している方はお試ししてくださると良いかなと思います。

参考さいと

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?