Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
サーバサイドを Google Apps Script で書く
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Tiny Mouse
January 25, 2019
Programming
370
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
サーバサイドを Google Apps Script で書く
Mobile Act NAGOYA 2019/1/25
Tiny Mouse
January 25, 2019
More Decks by Tiny Mouse
See All by Tiny Mouse
今年がんばったこと
tinymouse
0
81
今年がんばったこと
tinymouse
0
130
【LT会】インプット・アウトプットどうしてる?
tinymouse
0
60
今年がんばったこと
tinymouse
0
190
.NET MAUI+Blazor を使ってみた
tinymouse
0
210
【LT会】この技術書がすごい
tinymouse
1
210
蔵書管理アプリを作り直した
tinymouse
1
1.1k
Windows アプリの開発手段の選択肢をまとめてみた
tinymouse
0
180
蔵書管理アプリを作りました
tinymouse
0
680
Other Decks in Programming
See All in Programming
AI 輔助遺留系統現代化的經驗分享
jame2408
1
1.2k
Foundation Models frameworkで画像分析
ryodeveloper
1
120
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
220
AIエージェントで 変わるAndroid開発環境
takahirom
2
660
PHP に部分適用が来るぞ!……ところで何それ?おいしいの? #phpcon / phpcon-2026
shogogg
0
190
PHP Application における Kubernetes 内 gRPC 通信
ganchiku
0
430
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
0
160
『コードを書く以外の』エンジニアリング〜課金基盤移行プロジェクト推進のためのTips4選
yuriko1211
0
500
Welcome to the "Parametricity" 🏙️ − Generic だけど Specific な世界 −
guvalif
PRO
1
170
鹿野さんに聞く!『TypeScriptコードレシピ集』で磨く実践力
tonkotsuboy_com
4
1.1k
LaravelLive Japan の裏方のすべて — 第188回 PHP勉強会@東京 (2026-06-24)
suguruooki
2
150
Embedded SREと共に達成した会員管理システムのAWS移行 - SRE NEXT 2026 ランチスポンサーセッション
niftycorp
PRO
1
2.5k
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Evolving SEO for Evolving Search Engines
ryanjones
0
240
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
120k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
67k
YesSQL, Process and Tooling at Scale
rocio
174
15k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
220
Designing for Timeless Needs
cassininazir
1
360
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Transcript
Tiny Mouse サーバサイドを Google Apps Script で書く Mobile Act NAGOYA
2019/1/25
n @tinymouse_jp n SI 企業の SE n 日曜プログラマ n 二児の父
n 静岡県浜松市出身 n 東京都品川区在住。名古屋市在住。 n Windows 愛用。iPhone Android スマホ n Android の会浜松支部、よちよち Android の会、 Hamamatsu.js Tiny Mouse 自己紹介
よくあるモバイルアプリとサーバサイドアプリ JavaScript が好きな場合 GET メソッド、POST メソッドを受けて JSON などでレスポンスする
Google Apps Script n Google が提供する開発環境 n JavaScript ベース n
Google のサーバ上で開発および実行する n Google Spreadsheet などを操作するオブジェクトが用意さ れている n Google ドキュメントの変更などのイベント、予め指定されたス ケジュール、外部からの指示などで実行できる
サーバサイドに Google Apps Script を使う 「ウェブアプリケーションとして公開」 GET メソッド、POST メソッドを受けて JSON
などでレスポンスできる スプレッドシートをデータベースとして使う
楽でいいね! サーバサイドに Google Apps Script を使う
サーバサイドに Google Apps Script を使う 誰でもアクセス可能 「ウェブアプリケーションとして公開」 GET メソッド、POST メソッドを受けて
JSON などでレスポンスできる
「実行可能 API として公開」 サーバサイドに Google Apps Script を使う 実装はちょっと面倒
GAS の「実行可能 API として公開」の仕組
クライアントを特定できる情報をクライアントアプリ、サーバサイド両方に仕込んでおく OAuth を使って API を呼出する仕組
Cordova アプリで OAuth を使って API を呼出する 認可サーバと遣り取りしてアクセストークンを貰うのが Cordova アプリだと面倒
Cordova アプリで GAS で書いたプログラムを呼出する Qiita に書いた https://qiita.com/tinymouse/items/3d40b17663cea2dfc394
サーバサイドは開発者のリソースを使う よくあるモバイルアプリとサーバサイドアプリ クライアントアプリは配布できる
サーバサイドに Google Apps Script を使う 自分のGoogle ドライブのオブジェクトを他人に使わせるか
GAS のコードやドライブのオブジェクトはコピーできる 実は・・
GAS のコードやドライブのオブジェクトはコピーできる Qiita に書いた https://qiita.com/tinymouse/items/352aa8582b6c2ef1ddf0
クライアント情報がコピーできない 認可と API 呼出は開発者のリソースを使うしかないか ところが・・
なかなか大変だ! ということで・・