我开发了一个带google任务的命令行小应用,但是返回指定任务列表中的所有任务不返回已完成的任务,希望showCompleted默认为true
所以我在 Live API 中尝试了很多次,只返回未完成的任务,请自行查看:https ://developers.google.com/tasks/v1/reference/tasks/list
不明白的去Gmail给你添加一个未结束的任务和一个结束的任务,然后去live API测试一下,你会发现即使你把showCompleted设置为True,也没有出现结束的任务!他们如何在 Google Tasks 的在线版本中完成任务?
tasks = service.tasks().list(tasklist='@default').execute()
for task in tasks['items']:
print task['title']
print task['status']
print task['completed']