草庐IT

CALENDAR_COLOR

全部标签

php - 通过 Google Calendar API 获取 Google Calendar 的时区

我正在使用GoogleCalendarAPI在我客户的GoogleCalendars中插入事件。我想在他们日历的时区中插入事件,但目前我只能通过GoogleCalendarAPI使用一个时区。如何使用Google日历API获取特定Google日历的时区?现在我正在使用以下代码将事件添加到Google日历:$eventName='YouhaveListingAppointments.comAppointment';$Address='testing-456';$Ausers='test48@gmail.com';if($client->getAccessToken()){$_SESSIO

php - Google Calendar API 日期时间

我正在尝试让GoogleCalendarApi正常工作。如果不使用我的$_POST日期时间,它就可以完美运行。但是日期是硬编码的,就像谷歌的那样,这不是我想要的。当我使用我的$_POST变量时,它向我显示了这个错误:Fatalerror:Uncaughtexception'Google_Service_Exception'withmessage'ErrorcallingPOSThttps://www.googleapis.com/calendar/v3/calendars/%40group.calendar.google.com/events?key=:(400)**Startande

php - 使用 coreylib 显示 Google Calendar Feed 事件

在过去的四个小时里,我一直在研究如何解析xml并回显谷歌日历提要。我首先使用thistutorial轻松完成了此操作但是遇到命名空间问题,我可以轻松打印出事件的摘要和标题,但我无法打印出startTime和endTime,因为在提要中他们使用等等。我找到了coreylib听到很多关于它简单的赞美,但我仍然不知道如何做到这一点。有人可以给我指明方向或给我一个从“完整”谷歌提要中检索一些事件的示例代码(http://www.google.com/calendar/feeds/developer-calendar@google.com/public/full-提要示例)。即使它只是检索到事件

php - Google Calendar API PHP listEvents 不检索所有事件

我正在尝试使用Google_CalendarService检索所有事件。到目前为止,我正在通过重复事件检索所有内容,但有些事件没有出现。示例:我在22-okt、23-okt和24-okt有事件。它们都是正常事件,但我得到的只有22和23。24没有出现,但它确实存在于我的日历中![更新]发现另一个问题!每次我通过我的应用程序编辑现有事件时,该事件都会消失,但确实存在于日历中!这是我获取数据的代码:API设置:functioncalSettings(){$client=newGoogle_Client();$cal=newGoogle_CalendarService($client);$c

php - 在 php 中使用 google calendar api v3 获取重复事件

我正在使用googlecalendarapiv3来获取日历事件。但是如何获取所有重复发生的事件。它只返回带有一些提示的单个事件,例如:DAILY;UNTIL=20等。请帮我解决这个问题…… 最佳答案 如果您使用事件:列表API方法,请添加singleEvents=true参数。来自APIdocs:singleEventsbooleanWhethertoexpandrecurringeventsintoinstancesandonlyreturnsingleone-offeventsandinstancesofrecurringeve

php - 使用 Google Calendar API (PHP) 插入包含非 ASCII 字符的事件

我在使用GoogleCalendarAPI(PHP)v3插入事件时遇到问题。如果事件的描述包含井号£等字符,则事件会在日历中创建,但描述留空。似乎对于初始7位字符代码(ASCII代码0-127)之外的所有字符都是如此。通过使用htmlentities函数,我可以将井号的所有实例替换为:£如果用户使用的是基于网络的Google日历版本,这很好,但移动应用程序不会将其转换回井号。这是一个相当大的问题,因为事件通常是从使用非ASCII引号的MicrosoftWord中复制/粘贴的。是否有某种编码方法可以解决这个问题?我目前在MySQL数据库和PHP脚本中使用UTF-8编码。我正在使用以下代码

php - 为什么我会收到此错误 : Class "Google_Service_Calendar" not found?

这是我的代码:这只是来自GoogleDevelopers的示例Quickstart.php:require__DIR__.'/vendor/autoload.php';define('APPLICATION_NAME','GoogleCalendarAPIPHPQuickstart');define('CREDENTIALS_PATH','~/.credentials/calendar-php-quickstart.json');define('CLIENT_SECRET_PATH',__DIR__.'/client_secret.json');define('SCOPES',impl

c# - 找不到 sendNotifications 选项 Google Calendar api v3 .NET

我正在.Net上测试GoogleCalendarAPIv3。我已经设法将事件添加到日历中,如下所示:Google.Apis.Calendar.v3.Data.EventAttendeeattendee=newGoogle.Apis.Calendar.v3.Data.EventAttendee();attendee.Email="[email]@gmail.com";Listevent_attendees=newList();event_attendees.Add(attendee);Google.Apis.Calendar.v3.Data.Eventnew_event=newGoogl

php - Google Calendar API 出错 - 添加日历事件时需要 401 登录

因为我正在使用Codeigniter和GoogleapiService/apiCalendarService开发导出和导入到Google日历应用程序。当我从此页面向Google授权我的应用程序时,我已经完美地设置了一切,没问题:包含的代码是重定向发生时发生的事情:session_start();require(APPPATH.'libraries/google/apiClient.php');require(APPPATH.'libraries/google/contrib/apiCalendarService.php');$apiClient=newapiClient();$apiC

php - OAuth2 token ,消息 : '{ "error": "access_denied" }' returned when I try to update Google Calendar using OAuth (Service Account)

我正在使用适用于PHP的Google标准库来使用日历服务,并且我已经通过GoogleAPI控制台为OAuth2.0身份验证设置了一个服务帐户类型。我的主要目标是通过批量更新用户的谷歌日历(例如:user@organisationname.com)(当用户不在线时)。例如。更新用户日历中的事件。当用户登录应用程序(使用OAuth2.0)时,他/她将为应用程序提供“管理您的日历”、“查看您的日历”和“在我不使用应用”以下代码用于使用OAuth2.0登录setApplicationName("GoogleCalendarPHPStarterApplication");$client->set