Skip to content

Commit

Permalink
Explanation for developers added
Browse files Browse the repository at this point in the history
adding sample code to save developers from looking up how argparse module works.
  • Loading branch information
snoop2head authored Jan 24, 2020
1 parent 56b7a90 commit e5f7c08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run_smoke_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

from notion.smoke_test import run_live_smoke_test

# Following code is a sample. Input the code onto the terminal, with your own notion page URL and token_v2
# python3 run_smoke_test.py --page https://www.notion.so/fitcuration/Myam-Myam-Love-a0d22196f58f4efb8a38bcf9b3e06459 --token e26b797ce5beaf4170f2699fdab0b6be375175fa6ca66c9d1a06ca08bc70d578ae2203f408bbbc38554c20357876387a9942152d868ac7c98240be964fd88496257bf0fbe8372de88db5a41c106a

if __name__ == "__main__":
description = "Run notion-py client smoke tests"
parser = argparse.ArgumentParser(description=description)
Expand All @@ -15,6 +18,7 @@

token = args.token
if not token:
# if you don't want your terminal to be filled with messy token, then input your token_v2 at "NOTION_TOKEN"
token = os.environ.get("NOTION_TOKEN")
if not token:
print(
Expand Down

0 comments on commit e5f7c08

Please sign in to comment.