This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import os | |
| import csv | |
| def get_completed_tasks(offset=0, access_token=None): | |
| url = "https://api.todoist.com/sync/v9/completed/get_all" | |
| headers = { | |
| "Authorization": f"Bearer {access_token}" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import os | |
| import csv | |
| from datetime import datetime, timedelta | |
| def get_completed_tasks(date, access_token): | |
| url = "https://api.todoist.com/sync/v9/completed/get_all" | |
| headers = { | |
| "Authorization": f"Bearer {access_token}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import praw | |
| import json | |
| from dotenv import load_dotenv | |
| import os | |
| load_dotenv() | |
| user_agent='python_saved' | |
| with open('config.json') as f: |