Access Notion API with 'OAuth2 for Apps Script' library
ฝัง
- เผยแพร่เมื่อ 26 พ.ค. 2024
- #GoogleAppsScript #NotionAPI #OAuth2
If you're a first time Google Apps Script OAuth2 library user like me then this video might be of help 🤓
In this video I take the Notion API (beta) as an example to demonstrate how to go about setting up the OAuth2 library inside your Apps Script project and going about configuring the right pieces of code.
Chapters:
0:00 Introduction
0:46 Resources
1:23 Getting started
4:08 Exploring samples
5:15 Copying sample code
6:14 Create a new integration
8:36 Adding OAuth2 library
10:15 Get client ID and secret
11:06 Configure Notion service
12:33 Configure "run" service
16:48 First run
17:45 Setting additional token headers
22:00 Reauthorization Notion
23:40 Disconnect integration
24:00 Reset OAuth workflow
24:16 Re-run the workflow
25:15 Debug and authorize all pages
26:15 The end
OAuth2 for Apps Script library: github.com/googleworkspace/ap...
Notion API documentation: developers.notion.com/
Codebase used in the video: github.com/googleworkspace/ap...
Reach out to me on any of the following for any feedback or any other content recommendations -
Twitter - / schoraria911
LinkedIn - / choraria
Website - script.gs