LoginSignup
3
1

More than 3 years have passed since last update.

GooglePhotoへランダムに写真をLine送信する

Last updated at Posted at 2021-04-14

やりたいこと

  • GooglePhotoの写真を取得し、Lineへ送信する。週に1回送信をする
  • フォトフレームに送信するなどできます。
  • 3日間ほどかかった。。。世界中の先人たちに感謝

環境

Gas
Line

初期ロードマップ

  • 1 アルバム名を取得

    • 1-1 googlePhotoで取得したアルバム名をgooglespreadsheetのセルへ一覧で書き出す
    • 1-2 共有アルバムのIDを取得し、googlespreadsheetのセルへ一覧で書き出す
  • 3 画像をURLで保持

  • 4 Lineへ送信

    • 4-1 sampleLine送信する(テキスト)
    • 4-2 sampleLine送信する(URL化の画像一枚)
    • 4-3 Line送信する(URL化の画像一枚)

ソースは以下のMain。

コツはちいさくできることから少しづつやることでしたね。

PropertiesService.getScriptProperties().getProperty →最初はこの意味が不明。3時間後プロパティかと納得

作成は、以下を利用。

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