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
. | |
├── books | |
│ ├── handlers.go | |
│ └── models.go | |
├── config | |
│ └── db.go | |
└── main.go |
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
/* | |
0. This only works with the new Teams client | |
1. Open the chat in which you want to delete your messages | |
2. Open the developer console | |
3. Copy and paste the following code into the console | |
4. Press enter | |
5. Wait until all messages are deleted or the script finishes | |
6. If there are messages left, rerun the script either through running main() again or by refreshing and pasting the code again | |
*/ |
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
/* | |
1. Open the chat in which you want to delete your messages | |
2. Open the developer console | |
3. Copy and paste the following code into the console | |
4. Press enter | |
5. Wait until all messages are deleted or the script finishes | |
6. If there are messages left, rerun the script either through running main() again or by refreshing and pasting the code again | |
*/ |
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: |