Download the PHP package vadgab/yii2-google-calendar-api without Composer
On this page you can find all versions of the php package vadgab/yii2-google-calendar-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vadgab/yii2-google-calendar-api
More information about vadgab/yii2-google-calendar-api
Files in vadgab/yii2-google-calendar-api
Package yii2-google-calendar-api
Short Description The application is a YII2-Extension for the Google Calendar API
License MIT
Informations about the package yii2-google-calendar-api
Yii2 Google Calendar Api Extension
Installation
The preferred way to install this extension is through composer:
Basic information
This application operates with Google Calendar Service Account-based authentication, meaning the login process happens in the background. It enables querying, creating, modifying, and deleting calendar-related events for third-party users without the need for authentication in a pop-up window.
Configuration
You will need to create a Service Account in the Google Cloud Console, to which you must grant the appropriate permissions to access the calendar, as well as a authentication key, which you download and place for the application to access, and provide the path to it.
Basic Usage
getEvents() - Get event, list
parameters
- Params (opcional) - full param list : https://developers.google.com/calendar/api/v3/reference/events/list
insertEvent() - Add event on your calendar
parameters
- payload (require) - full param list : https://developers.google.com/calendar/api/v3/reference/events/insert
Response
array(18) { ["kind"]=> string(14) "calendar#event" ["etag"]=> string(18) ""****"" ["id"]=> string(26) "tme6m9k9g4p0n6sr48693oq4fo" ["status"]=> string(9) "confirmed" ["htmlLink"]=> string(93) "https://www.google.com/calendar/event?eid=***" ["created"]=> string(24) "2023-05-05T11:17:57.000Z" ["updated"]=> string(24) "2023-05-05T11:17:57.483Z" ["summary"]=> string(11) "Teszt Event" ["description"]=> string(17) "Teszt description" ["location"]=> string(8) "Budapest" ["creator"]=> array(1) { ["email"]=> string(75) "**" } ["organizer"]=> array(2) { ["email"]=> string(19) "****" ["self"]=> bool(true) } ["start"]=> array(2) { ["dateTime"]=> string(25) "2023-05-10T12:00:00+02:00" ["timeZone"]=> string(3) "UTC" } ["end"]=> array(2) { ["dateTime"]=> string(25) "2023-05-10T13:00:00+02:00" ["timeZone"]=> string(3) "UTC" } ["iCalUID"]=> string(37) "**" ["sequence"]=> int(0) ["reminders"]=> array(1) { ["useDefault"]=> bool(true) } ["eventType"]=> string(7) "default" }
updateEvent() - Add event on your calendar
parameters
- payload (require) - full param list : https://developers.google.com/calendar/api/v3/reference/events/update
Response
array(18) { ["kind"]=> string(14) "calendar#event" ["etag"]=> string(18) ""****"" ["id"]=> string(26) "tme6m9k9g4p0n6sr48693oq4fo" ["status"]=> string(9) "confirmed" ["htmlLink"]=> string(93) "https://www.google.com/calendar/event?eid=***" ["created"]=> string(24) "2023-05-05T11:17:57.000Z" ["updated"]=> string(24) "2023-05-05T11:17:57.483Z" ["summary"]=> string(11) "Teszt Event update" ["description"]=> string(17) "Teszt description update" ["location"]=> string(8) "Budapest" ["creator"]=> array(1) { ["email"]=> string(75) "**" } ["organizer"]=> array(2) { ["email"]=> string(19) "****" ["self"]=> bool(true) } ["start"]=> array(2) { ["dateTime"]=> string(25) "2023-05-10T12:00:00+02:00" ["timeZone"]=> string(3) "UTC" } ["end"]=> array(2) { ["dateTime"]=> string(25) "2023-05-10T13:00:00+02:00" ["timeZone"]=> string(3) "UTC" } ["iCalUID"]=> string(37) "**" ["sequence"]=> int(0) ["reminders"]=> array(1) { ["useDefault"]=> bool(true) } ["eventType"]=> string(7) "default" }