{"id":20084589,"url":"https://github.com/dhtmlx/scheduler-google-calendar","last_synced_at":"2025-05-06T01:32:14.868Z","repository":{"id":9958270,"uuid":"11979737","full_name":"DHTMLX/scheduler-google-calendar","owner":"DHTMLX","description":"Data wrapper, for loading data from google calendar into the dhtmlxScheduler and visa verse","archived":false,"fork":false,"pushed_at":"2016-02-03T10:19:36.000Z","size":379,"stargazers_count":8,"open_issues_count":1,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-24T05:28:45.825Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DHTMLX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-08T15:29:03.000Z","updated_at":"2023-07-17T20:22:12.000Z","dependencies_parsed_at":"2022-09-10T03:42:41.530Z","dependency_job_id":null,"html_url":"https://github.com/DHTMLX/scheduler-google-calendar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHTMLX%2Fscheduler-google-calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHTMLX%2Fscheduler-google-calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHTMLX%2Fscheduler-google-calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHTMLX%2Fscheduler-google-calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DHTMLX","download_url":"https://codeload.github.com/DHTMLX/scheduler-google-calendar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224479940,"owners_count":17318299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T15:52:35.288Z","updated_at":"2024-11-13T15:52:35.882Z","avatar_url":"https://github.com/DHTMLX.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Date converter between dhtmlxScheduler and Google Calendar\n----------------------------------------------------------\n\nThis class can be used to load a data from the Google Calendar to the dhtmlxScheduler,\nor to save changes from the dhtmlxScheduler back to the Google Calendar.\n\n\n### Usage\n\n#### Preparing credentials\n\n- login to google API console - https://code.google.com/apis/console\n- press \"Create new project\"\n- enable Calendar API on \"Services\" screen\n- go to API Access screen and click on \"Create an OAuth2.0 Client ID\", enter your name, upload a logo, and click Next, select the Service account option and press Create client ID. As result you will have private key file, Client ID and  Email address - they will be necessary later\n- login to the google calendar, which you want to use for the app, and share it on \"Email address\", which was generated on previous step\n- locate and save the calendar id \n\n\nLocation of calendar id - https://drupal.org/node/589310\n\n\n\n#### Server side code\n\nCreate a php file data.php with code like\n\n~~~php\n\u003c?php\n\ninclude('../src/google_proxy.php');\n\n$calendar = new GoogleCalendarProxy(\n\t\"\u003caccount\u003e@developer.gserviceaccount.com\",\n\t\"\u003caccount\u003e.apps.googleusercontent.com\",\n    file_get_contents(\"\u003ckey\u003e\"),\n    \"\u003ccalendar id\u003e\"\n);\n\n$calendar-\u003econnect();\n?\u003e\n~~~\n\n- \u003caccount\u003e - take from Google Console API\n- \u003ckey\u003e - path to private key from Google Console API\n- \u003ccalendar id\u003e - can be taken from the settings of the related Google Calendar\n\n#### Client side code\n\nOn client side you can init scheduler in any legal way, with any configuration. \nAfter scheduler's initialization, place the next lines\n\n~~~js\n\t//load data from google calendar\n\tscheduler.load(\"./data.php\", \"json\");\n\n\t//save changes back to google calendar\n\tvar dp =  new dataProcessor(\"./data.php\");\n\tdp.init(scheduler);\n\tdp.setTransactionMode(\"POST\", false);\n~~~\n\nIf you need readonly access - just ignore the second part of above code. \n\n### Troubleshooting\n\nIf you have some problems with data loading, try to open the data.php directly in the browser - it will show details of authorization error. \n\n### License\n\nDistributed under the MIT software license  \nCopyright (c) 2013 Dinamenta UAB\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhtmlx%2Fscheduler-google-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhtmlx%2Fscheduler-google-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhtmlx%2Fscheduler-google-calendar/lists"}