正如 google api python 客户端文档中所写
service.calendars().delete('secondaryCalendarId').execute()
此函数调用返回以下内容:method() 只接受 1 个参数(给定 2 个)
有谁知道这个错误是什么意思?显然我刚刚传递了 1 个参数,那就是需要删除的 calendarId。或者有没有人使这个功能工作?需要帮忙。
谢谢。
正如 google api python 客户端文档中所写
service.calendars().delete('secondaryCalendarId').execute()
此函数调用返回以下内容:method() 只接受 1 个参数(给定 2 个)
有谁知道这个错误是什么意思?显然我刚刚传递了 1 个参数,那就是需要删除的 calendarId。或者有没有人使这个功能工作?需要帮忙。
谢谢。
您必须提供参数名称:
service.calendars().delete(calendarId='secondaryCalendarId').execute()
http://api-python-client-doc.appspot.com/calendar/v3/calendars