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 ito install all the dependencies - run
tscto compile the ts files to js - Now a new folder named
distwill 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 + ifor chrome. - Navigate to the
Applicationspanel. - 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 steps#
Please refer to the api section to see all the methods available in the classes.