Getting Started
Since this repo has not been published as a package yet, please clone the repo and use it for you automation purpose.
#
Cloning- Navigate to the directory you want to clone into
- Type
git clone https://github.com/Devorein/Nishan.git
- Navigate to the created directory
- run
npm i
to install all the dependencies - run
tsc
to compile the ts files to js - Now a new folder named
dist
will be created, which will contain all the javascript files.
#
Initial Configurations- Please login to your notion account
- Now open your browser devtools using appropriate shortcut,
Ctrl + shift + i
for chrome. - Navigate to the
Applications
panel. - Click on cookie drawer and select
https://www.notion.so/
to view all the cookie stored by notion client. - The only cookie that you'll need is the
token_v2
- Please copy it as it'll be used for auth purposes.
note
You should never reveal/disclose/share your token with anyone else. Please store the token as an environment variable to minimize accidental disclose.
#
First stepsPlease refer to the api section to see all the methods available in the classes.