Google calendar 사용하기
본문 바로가기


Programmer/etc.

Google calendar 사용하기

https://console.developers.google.com 에서 API 사용가능하도록 설정 필요

 

* 특정 캘린더에 일정 추가하기

1. 원하는 캘린더 존재하는지 확인

https://developers.google.com/calendar/v3/reference/calendars/patch

Calendars: patch  |  Calendar API  |  Google Developers

Note: Requires authorization. Updates metadata for a calendar. This method supports patch semantics. Try it now. Request HTTP request PATCH https://www.googleapis.com/calendar/v3/calendars/calendarId Parameters Parameter name Value Description Path paramet

developers.google.com

1-1. 일정을 추가할 구글 캘린더 만들기

https://developers.google.com/calendar/v3/reference/calendars/insert

Calendars: insert  |  Calendar API  |  Google Developers

Note: Requires authorization. Creates a secondary calendar. Try it now or see an example. Request HTTP request POST https://www.googleapis.com/calendar/v3/calendars Authorization This request requires authorization with the following scope: Scope https://w

developers.google.com

2. 캘린더에 정보 추가

https://developers.google.com/calendar/v3/reference/events/insert

Events: insert  |  Calendar API  |  Google Developers

Note: Requires authorization. Creates an event. Try it now or see an example. Request HTTP request POST https://www.googleapis.com/calendar/v3/calendars/calendarId/events Parameters Parameter name Value Description Path parameters calendarId string Calenda

developers.google.com

 

 

 

* 내 캘린더 일정 확인하기

1. 캘린더 ID 확인하기

https://developers.google.com/calendar/v3/reference/calendarList/list

CalendarList: list  |  Calendar API  |  Google Developers

Note: Requires authorization. Returns the calendars on the user's calendar list. Try it now or see an example. Request HTTP request GET https://www.googleapis.com/calendar/v3/users/me/calendarList Parameters Parameter name Value Description Optional query

developers.google.com

2. 캘린더ID로 일정 가져오기

https://developers.google.com/calendar/v3/reference/events/list

Events: list  |  Calendar API  |  Google Developers

Note: Authorization optional. Returns events on the specified calendar. Try it now or see an example. Request HTTP request GET https://www.googleapis.com/calendar/v3/calendars/calendarId/events Parameters Parameter name Value Description Path parameters ca

developers.google.com