Microsoft To Do API client
Project description
pymstodo ✔️
Python wrapper to deal with Microsoft To Do.
Installation
pip3 install pymstodo
Requirements
- python >= 3.10
- requests_oauthlib >= 1.3.0
Usage
- Get an API key before using
pymstodo. - Use it to initialize the client. Here is an example:
from pymstodo import ToDoConnection
client_id = 'PLACE YOUR CLIENT ID'
client_secret = 'PLACE YOUR CLIENT SECRET'
auth_url = ToDoConnection.get_auth_url(client_id)
redirect_resp = input(f'Go here and authorize:\n{auth_url}\n\nPaste the full redirect URL below:\n')
token = ToDoConnection.get_token(client_id, client_secret, redirect_resp) # you have to save it somewhere
print(token)
todo_client = ToDoConnection(client_id=client_id, client_secret=client_secret, token=token)
lists = todo_client.get_lists()
task_list = lists[0]
tasks = todo_client.get_tasks(task_list.list_id)
print(task_list)
print(*tasks, sep='\n')
-
Full documentation: https://inbalboa.github.io/pymstodo/
-
API description by Microsoft see at https://docs.microsoft.com/en-us/graph/api/resources/todo-overview
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pymstodo-0.2.1.tar.gz
(21.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pymstodo-0.2.1-py3-none-any.whl
(20.9 kB
view details)
File details
Details for the file pymstodo-0.2.1.tar.gz.
File metadata
- Download URL: pymstodo-0.2.1.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38ce1bffbd81a01dc04aacfb7da465241319b4ab18b4f9e2a579cac064d73521
|
|
| MD5 |
be4138d9bc1ef6921901a326b65c98eb
|
|
| BLAKE2b-256 |
0d2defa9432594df6f5d08f62d200378b395e94f275327aa85b036a5a72234bc
|
File details
Details for the file pymstodo-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pymstodo-0.2.1-py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
009d1c121093341d84ad023be41ef1f74b7c0f23706897315b8903a1edce0fae
|
|
| MD5 |
ab181242e94a34699d108669ddead30c
|
|
| BLAKE2b-256 |
53c60c423af1cf17433cdfcf0d8f8c3ea25349a7467eda0a1ddc0d402e0cf538
|