Andrew Google Calendar
v1.0.0Google Calendar API ���� �� 조�, ��, ��, �� �리. OAuth 2.0 �� ��. ���� �� �린��� ��� ���고 �리�� � ��.
运行时依赖
安装命令
点击复制技能文档
Google Calendar Overview
Google Calendar API 를 ���� ���� ��� 조�, ��, ��, ���� � �� ������. OAuth 2.0 ��� ���� ���� �� �린�� �근����.
设置up
- OAuth ������� �� ��
# �� ��� � ����리� 복� cp ~/下载s/命令行工具ent_secret_*.json ~/.google-凭证s.json
- �존� ��
- �� ����
첫 ��� ����� �리고 Google ���� �그�� � ��� ����� ����.
Capabilities �� 조�
��� �� ��:
"�� 7 � ��� 보��" "�� ��� ��?" "�� 주 �� 목� �려�"
��� 기� 조�:
"4 � 15 ���� 20 ��� ��� 보��"
�� ��
� �� ��:
"�� �� 2 �� � 미� �� ����, 1 �� ��, Zoom ��" "�� 주 ��� 10 �� dentist ��, 30 �"
�� ��
�� �경:
"�� �� 2 � 미�� �� 3 �� ���" "�� �목� '� 미�'�� '����� ��� 미�'�� �경���"
�� ��
�� 취�:
"�� �� 2 � 미� 취����"
Usage Examples �� 1: ��� �� 조� from scripts.calendar_ops 导入 列出_事件, 格式化_event
# �� 7 � �� 조� 事件 = 列出_事件(max_结果s=10) for event in 事件: print(格式化_event(event))
�� 2: � �� �� from scripts.calendar_ops 导入 创建_event from datetime 导入 datetime, timedelta
# �� �� 2 � �� �� 启动 = datetime.now() + timedelta(days=1, hours=14) end = 启动 + timedelta(hours=1)
event = 创建_event( summary="� 미�", 启动_time=启动.iso格式化(), end_time=end.iso格式化(), description="주� ����� ���", location="Zoom" )
�� 3: �린� 목� �� from scripts.oauth_设置up 导入 列出_calendars
calendars = 列出_calendars() for cal in calendars: print(f"{cal['summary']} - {cal['访问角色']}")
Files Structure google-calendar/ ��� 技能.md ��� scripts/ � ��� oauth_设置up.py # OAuth 2.0 �� � ���� �리 � ��� calendar_ops.py # Calendar API �� ���� ��� references/
Security Notes OAuth ����� ~/.google-calendar-令牌.pickle � ����� ������� ��� ~/.google-凭证s.json � ����� � ���� .gitignore � ����� ���� �� ��: https://www.googleAPIs.com/auth/calendar (�기/�기 �체 �근) Troubleshooting
"OAuth ������� �� ��� ����" ��:
Google Cloud Console �� OAuth 2.0 ������� ��를 �� ���� 命令行工具ent_secret_XXXXXX.json ��� ~/.google-凭证s.json �� 복�
�� ���:
���� ��� ���고 ���: rm ~/.google-calendar-令牌.pickle Google Cloud Console �� API ��� ��
�� ��:
OAuth �� �면�� ��� �� �� ����� �� � ���