Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Free study Google Apps Script
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Masashi Sekine
August 25, 2017
Technology
1.2k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Free study Google Apps Script
Masashi Sekine
August 25, 2017
More Decks by Masashi Sekine
See All by Masashi Sekine
Introduction to HTTP2
ms76
0
960
AMPをかじってみた話 / The first impression of AMP
ms76
1
1.4k
とあるサービスの運営を追体験してみよう / Let's experience a certain services vicariously
ms76
1
970
1秒間に250通のメールをさばくAWSの使い方
ms76
2
2.2k
Other Decks in Technology
See All in Technology
攻撃 3 時間 vs 復旧 10 時間。アクセスキー流出の非対称性を体感するために CTF を作った話
kazzpapa3
1
150
今から始めるAWS環境の暗号移行 - ポスト量子時代に備える
sato4mi
0
150
続・ソフトウェアアーキテクトのための意思決定術: Decision Readiness, Revisited — When AI Changes the Economics of Software Architecture
snoozer05
PRO
9
2.4k
リアクションエンジニア ― 小さなリアクションから、話しかけやすい組織をつくる ―
ryuguyana
1
130
eBPF 簡介 2026 版
shunghsiyu
0
180
AI時代の組織作り:チーム開発から「個人×AI」への移行と、持続可能な「開発資本」の築き方
ham0215
1
140
Microsoft Entra Kerberos で実現するクラウド デバイス管理
tamaiyutaro
2
520
セキュリティ専任チームなしで攻撃を先回りするSREが実践したSIEM on Amazon OpenSearch Service
cscengineer
PRO
0
270
Building Audio Plugin Ecosystem for Android in 2026
atsushieno
2
150
Flutter Widget Previewerで始めるUIプレビューとVRTの自動化
sakusaku3939
0
210
"AWSはちょっと苦手"でも大丈夫。AWS Blocks で手軽に作る Flutter のバックエンド #FlutterKaigi
tacck
PRO
0
150
【dbts2026】AIエージェントの 判断と探索を変える、 データベース エンジニアリング― 既存DBの処理と依存関係から作る、オペレーショナルオントロジー ―
shisyu_gaku
0
170
Featured
See All Featured
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
560
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
590
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
43k
Accessibility Awareness
sabderemane
1
290
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
GraphQLとの向き合い方2022年版
quramy
50
15k
The Curse of the Amulet
leimatthew05
3
17k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
390
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Site-Speed That Sticks
csswizardry
13
1.6k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
330
Transcript
Նͷࣗ༝ݚڀ Google Apps Script @ms76 Tokyo Otaku Modeࣾษڧձ (2017/08/25)
Google Apps Script 1. Ͳ͏͍͏ݴޠʁ 2. ͲΜͳ͜ͱ͕Ͱ͖Δʁʢؾʹͳͬͨػೳʣ 3. Tips
1. Ͳ͏͍͏ݴޠʁ
Ͳ͏͍͏ݴޠʁ ”Google Apps Script is a scripting language for light-weight
application development in the Google Apps platform. It is based on JavaScript 1.6 with some portions of 1.7 and 1.8 and provides subset of ECMAScript 5 API “ https://en.wikipedia.org/wiki/Google_Apps_Script
2. Կ͕Ͱ͖Δʁ (ؾʹͳͬͨػೳ)
Կ͕Ͱ͖Δʁ • Google AppsͷΧελϚΠζ • Google AppsͱଞαʔϏεͱͷ࿈ܞ
Կ͕Ͱ͖Δʁ άϩʔόϧείʔϓʹͲΜͳΫϥε͕͋Δ͔ʁ
άϩʔόϧείʔϓ • CalendarApp • ContactsApp • DocumentApp • DriveApp •
FormApp • GmailApp • GroupsApp • LanguageApp • MailApp • ScriptApp • SitesApp • SpreadsheetApp • UiApp • UrlFetchApp • CacheService • ContentService • ErrorService • HomeroomService • HtmlService • LinearOptimization Service • LockService • PropertiesService • SoapService • XmlService • Browser • Charts • Jdbc • Logger • Maps • MimeType • ScriptProperties • Session • UserProperties • Utilities • Xml • console ؒͣΕͬΆ͍ Appܥ Serviceܥ ͦͷଞ
UIApp ৮ΕͪΌ͍͚ͳ͍ࢠͩͬͨ
UrlFetchApp https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app
UrlFetchApp https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app httpͰ֎෦Ϧιʔεͱ௨৴͕Ͱ͖ΔΫϥεɻ ֎෦αʔϏε࿈ܞʹ͔ܽͤͳ͍ɻ fetchͱ͍͏໊લ͚ͩͲ POSTͰ͖Δɻ
άϩʔόϧείʔϓ • CalendarApp • ContactsApp • DocumentApp • DriveApp •
FormApp • GmailApp • GroupsApp • LanguageApp • MailApp • ScriptApp • SitesApp • SpreadsheetApp • UiApp • UrlFetchApp • CacheService • ContentService • ErrorService • HomeroomService • HtmlService • LinearOptimization Service • LockService • PropertiesService • SoapService • XmlService • Browser • Charts • Jdbc • Logger • Maps • MimeType • ScriptProperties • Session • UserProperties • Utilities • Xml • console Appܥ Serviceܥ ͦͷଞ ͜Μͳͷ͋ΔΜͩܥ
CacheService https://developers.google.com/apps-script/reference/cache/cache
CacheService https://developers.google.com/apps-script/reference/cache/cache Cacheʹখ͞ͳσʔλΛอଘ͢Δ͜ͱ͕Ͱ͖ Δɻ TTLΛઃఆ͢ΕࣗಈͰexpireͯ͘͠ΕΔɻ ScopeΛ͖ͪΜͱཧղ͢ΕෳࡶͳΞϓϦέʔ γϣϯͭ͘Εͦ͏ɻ
ContentService https://developers.google.com/apps-script/guides/content
ContentService https://developers.google.com/apps-script/guides/content ScriptΛWebΞϓϦέʔγϣϯͱͯ͠ެ։ͨ͠ ࣌ʹར༻ɻ HTMLҎ֎ͷͷMIME TYPEΛࢦఆͯ͠ฦ͢ ͜ͱ͕Ͱ͖Δɻ
LockService https://developers.google.com/apps-script/reference/lock/lock-service
LockService https://developers.google.com/apps-script/reference/lock/lock-service 3ͭͷείʔϓʢdocument͝ͱ / user͝ͱ / script͝ͱ ʣʹରͯ͠1ͭͷϩοΫΛ͔͚Δ͜ͱ ͕Ͱ͖Δɻ ಉ࣌ʹ৮ΒΕΔͱࠔΔέʔεͰར༻Ͱ͖Δɻ
Jdbc https://developers.google.com/apps-script/guides/jdbc
Jdbc https://developers.google.com/apps-script/guides/jdbc JDBCΛαϙʔτͨ͠֎෦ͷσʔλϕʔεʹΞΫ ηεͰ͖Δɻ Πϯλʔωοτӽ͠ʹͳΔͷͰެ։͞Ε͍ͯΔ ΞΫηεݩͷIPͷΈڐՄ͢ΔΑ͏ʹઃఆ͢Δ͜ ͱ͕ඞཁɻ
άϩʔόϧείʔϓ • CalendarApp • ContactsApp • DocumentApp • DriveApp •
FormApp • GmailApp • GroupsApp • LanguageApp • MailApp • ScriptApp • SitesApp • SpreadsheetApp • UiApp • UrlFetchApp • CacheService • ContentService • ErrorService • HomeroomService • HtmlService • LinearOptimization Service • LockService • PropertiesService • SoapService • XmlService • Browser • Charts • Jdbc • Logger • Maps • MimeType • ScriptProperties • Session • UserProperties • Utilities • Xml • console Appܥ Serviceܥ ͦͷଞ ศརܥ
Utilities https://developers.google.com/apps-script/reference/utilities/utilities
Utilities https://developers.google.com/apps-script/reference/utilities/utilities ศརܥϝιου͕·ͱ·͍ͬͯΔɻ base64Τϯίʔυ/σίʔυɺHashͷܭࢉɺ UUIDͷੜɺCSVͷύʔεɺzip/unzipͳͲɻ
PropertiesService https://developers.google.com/apps-script/guides/properties
PropertiesService https://developers.google.com/apps-script/guides/properties ڥมͷΑ͏ʹϓϩδΣΫτʹΛอଘ͢Δ͜ͱ͕Ͱ͖Δɻ
3. Tips
Tips ᶃ खܰͳdebugLogger.log()Ͱɻ
Tips ᶄ ࣮clonsole͕͑Δɻʢlog, time, error ͳͲʣ ϩάGCPͷStackdriver logingͱ͍͏ίϯιʔϧʹͰ·͢ɻ
Tips ᶅ functionͷ࠷ޙʹΞϯμʔείΞΛ͚Δͱprivate functionʹͳΔɻ
Tips ᶆ Google AppsͷυΩϡϝϯτʹඥ͍ͨScriptͱͦ͏͡Όͳ͍Script͕͋Δʢ࠷ ॳށ͏ʣɻτϦΨʔʹҧ͍͋Γɻ
Tips extra • ϥΠϒϥϦػೳΛ͑ϥΠϒϥϦԽͨ͠ momentlodash͑Δɻ • browserify + babelify +
gasify Λ͑exportΛ ͬͨΓES2015ͷߏจͰॻ͚Δʢग़དྷ্͕ͬͨ ιʔε…ʣ • ͦͯ͠ node-google-apps-script Λ͑։ൃ ڥͱGoogle DriveͷಉظࣗಈͰͰ͖Δɻ
Ҏ্Ͱ͢