PR

【連絡】SKE48インスタライブ通知botの運用を再開します。

スポンサーリンク

仕組み

  1. スマホのプッシュ通知をサーバに送る
    こちらのアプリを使ってAndroidに来たInstagramの通知をサーバに送る
    pushbullet
    https://www.pushbullet.com/
  2. サーバ
    1. 通知を受け取とる 
      1. 受け取れるデータ(json)
        https://docs.pushbullet.com/#mirrored-notifications
    1. 受け取った通知がInstagramの通知の場合、ツイートする
      pythonですと下記のような感じ
        if message["type"] == "push":
            push = message["push"]
            if push["type"] == "mirror":
                title = push["title"]
                if title == "Instagram":

SKE48インスタ配信BOT
https://twitter.com/SKE48il_info

フォローいただけると嬉しいです☺

コメント

Translate »
タイトルとURLをコピーしました