Google Tasks API 를 (Tasks) 조, , , 리 . OAuth 2.0 Tasks 근.
미 구 린, 과 :
pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib
cd /Users/andrew/.openclaw/workspace/google-tasks
python3 scripts/tasks_ops.py
첫 리고 Google 그 .
목 :
:
:
경:
취:
from scripts.tasks_ops import list_tasklists
tasklists = list_tasklists()
for tl in tasklists:
print(f"{tl['title']} - {tl['id']}")
~/.google-tasks-token.pickle ~/.google-credentials.json (린, 과 공).gitignore https://www.googleapis.com/auth/tasks (Tasks 체 근)"OAuth " :
~/.google-credentials.json :
rm ~/.google-tasks-token.pickle:
rm ~/.google-tasks-token.pickle && python3 scripts/tasks_ops.pySame OAuth credentials (~/.google-credentials.json) are shared with google-calendar and google-sheets skills, so you only need to authenticate once!
共 1 个版本