10. My Opinion:
If you feel naming is difficult,
split your functions/variables
into the smaller ones.
11. Table of Contents (Re:)
1.About Me
2.Today’s Goal
3.Overview of Google Apps Script
4.Get Data From SpreadSheet
5.Post Data To Chat App
6.Appendix
12. 3.Overview of Google Apps Script
- Cloud-based Application Development Platform
- Based on JavaScript
- Integrate Easily with Google/Third-Party Apps
- Also Allows Scripts to Return HTML
Source;
Image: www.lucidchart.com
Cf. My Sample Script’s URL
14. Table of Contents (Re:)
1.About Me
2.Today’s Goal
3.Overview of Google Apps Script
4.Get Data From
SpreadSheet
5.Post Data To Chat App
6.Appendix
Function 3
postOnly()
Function 2
getData()
Function 1
setUp()
15. 4.Get Data From SpreadSheet
See A Demo
Source;
Demo: @gkzvoice
Code: github.com/gkzz/gas-handson
16. Table of Contents (Re:)
1.About Me
2.Today’s Goal
3.Overview of Google Apps Script
4.Get Data From
SpreadSheet
5.Post Data To Chat App
6.Appendix
Function 3
postOnly()
Function 2
getData()
Function 1
setUp()
17. 5.Post Data To Chat App
See A Demo
Source;
Demo: @gkzvoice
Code: github.com/gkzz/gas-handson
18. Source; sinap.jp
6.Appendix
1.Run Apps Script
2.Use Debugger
3.Add Libraries
4.Get Incoming Webhook URL
5.Add BOT User
6.Change Permissions
7.Get userID through Tester
8. Deploy as Web App, Enable Events
9. All Sample Codes
-mailDraft, getUserList, getChannelHistory, etc
21. 3.Push “View” and “Logs” Button,
See the Logged Output
1.Predict Value of Variable
2.Set Logger.log(“val: %s”, val),
Run Script
Develop
& Debug
6-2.Appendix
Use Debugger