• <bdo id='OlgF0'></bdo><ul id='OlgF0'></ul>
      <tfoot id='OlgF0'></tfoot>
      <i id='OlgF0'><tr id='OlgF0'><dt id='OlgF0'><q id='OlgF0'><span id='OlgF0'><b id='OlgF0'><form id='OlgF0'><ins id='OlgF0'></ins><ul id='OlgF0'></ul><sub id='OlgF0'></sub></form><legend id='OlgF0'></legend><bdo id='OlgF0'><pre id='OlgF0'><center id='OlgF0'></center></pre></bdo></b><th id='OlgF0'></th></span></q></dt></tr></i><div id='OlgF0'><tfoot id='OlgF0'></tfoot><dl id='OlgF0'><fieldset id='OlgF0'></fieldset></dl></div>
    1. <small id='OlgF0'></small><noframes id='OlgF0'>

      <legend id='OlgF0'><style id='OlgF0'><dir id='OlgF0'><q id='OlgF0'></q></dir></style></legend>

      1. 如何从谷歌日历获取活动详情

        how to get event details from google calendar(如何从谷歌日历获取活动详情)
        • <bdo id='sCb1X'></bdo><ul id='sCb1X'></ul>

            <tbody id='sCb1X'></tbody>
          <legend id='sCb1X'><style id='sCb1X'><dir id='sCb1X'><q id='sCb1X'></q></dir></style></legend>

            <i id='sCb1X'><tr id='sCb1X'><dt id='sCb1X'><q id='sCb1X'><span id='sCb1X'><b id='sCb1X'><form id='sCb1X'><ins id='sCb1X'></ins><ul id='sCb1X'></ul><sub id='sCb1X'></sub></form><legend id='sCb1X'></legend><bdo id='sCb1X'><pre id='sCb1X'><center id='sCb1X'></center></pre></bdo></b><th id='sCb1X'></th></span></q></dt></tr></i><div id='sCb1X'><tfoot id='sCb1X'></tfoot><dl id='sCb1X'><fieldset id='sCb1X'></fieldset></dl></div>
          1. <small id='sCb1X'></small><noframes id='sCb1X'>

                  <tfoot id='sCb1X'></tfoot>
                1. 本文介绍了如何从谷歌日历获取活动详情的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  当在日历中创建新事件时,我成功地从谷歌日历将推送通知发送到我的系统.推送通知在 POST 正文中没有数据,POST 标头如下:

                  i succeeded in getting a push notification from google calendar into my system, when a new event is created in the calendar. the push notification has no data in the POST body and the POST headers are these:

                  [Host] => xxxxxx.xxxx.com
                  [Content-Type] => application/json; charset=UTF-8
                  [Accept] => */*
                  [X-Goog-Channel-ID] => xxxxxxx-xxxxxxxx-8824-f0c2166878be
                  [X-Goog-Channel-Expiration] => Thu, 04 Dec 2014 04:27:13 GMT
                  [X-Goog-Resource-State] => exists
                  [X-Goog-Message-Number] => 11897215
                  [X-Goog-Resource-ID] => xxxxxxxxxx-xxxx-pSbC27qOUfg
                  [X-Goog-Resource-URI] => https://www.googleapis.com/calendar/v3/calendars/xxxxxxx@gmail.com/events?key=AIzaSyC_0nytiZWHfabrpWiExxxxxxxxxxx&alt=json
                  [Content-Length] => 0
                  [Connection] => Keep-alive
                  [Accept-Encoding] => gzip,deflate
                  [User-Agent] => APIs-Google; (+https://developers.google.com/webmasters/APIs-Google.html)
                  

                  在日历中创建的新活动详情在哪里?我如何获得它们?

                  where are the new event details that was created in the calendar? how do i get them?

                  没有在线信息,也没有谷歌文档中的信息(搜索了几个小时):https://developers.google.com/google-apps/calendar/v3/push

                  no information online and no information in google documentation (been searching for hours): https://developers.google.com/google-apps/calendar/v3/push

                  活动详情在哪里??

                  更新:

                  我使用以下代码在我的日历上设置了手表:

                  i set a watch on my calendar using this code:

                  service = new Google_Service_Calendar($client);         
                  $channel =  new Google_Service_Calendar_Channel($client);
                  $uuid = gen_uuid();
                  $channel->setId($uuid);
                  $channel->setType('web_hook');
                  $channel->setExpiration('1919995862000');
                  
                  global $sugar_config;
                  $address = $sugar_config['site_url'] . "/index.php?entryPoint=updateFromCal";
                  $channel->setAddress($address);
                  $watchEvent = $service->events->watch($bean->google_cal_id_c, $channel);
                  

                  这是我发送到谷歌日历 api 的频道详细信息:

                  This is the channel details i send to google calendar api:

                  [address] => https://mydomainXXXX/index.php?entryPoint=updateFromCal
                  [expiration] => 1919995862000
                  [id] => xxxxxxxxxxxxxxx--4558-ac19-b82e0ca32206
                  [kind] => 
                  [params] => 
                  [payload] => 
                  [resourceId] => 
                  [resourceUri] => 
                  [token] => 
                  [type] => web_hook
                  [modelData:protected] => Array
                      (
                      )
                  
                  [processed:protected] => Array
                      (
                      )
                  

                  对于我在日历中创建的每个新事件,我仍然在响应中获得相同的资源 ID!为什么我无法获取我刚刚创建的事件的事件 ID?我做错了什么?我在看活动或频道吗?

                  i still get the same resource ID in the response, with every new event i create in the calendar! why can't i get the event ID of the event i just created? what did i do wrong? am i watching events or channels?

                  我得到的回复还是上面提到的那个,一直都是同一个resource id.

                  the reply i get is still the one mentioned above, its with the same resource id all the time.

                  推荐答案

                  推送不包含任何数据.它只会告诉您该资源中的某些内容发生了变化.你需要做一个列表请求来找出它是什么.这个列表请求最好是增量同步.在此处查看如何进行同步:https://developers.google.com/google-apps/calendar/v3/sync

                  The push does not contain any data. It only tells you that something changed in that resource. You will need to do a list request to find out what it was. Preferably this list request will be an incremental sync. Take a look into how to do synchronization here: https://developers.google.com/google-apps/calendar/v3/sync

                  这篇关于如何从谷歌日历获取活动详情的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                2. <legend id='qR0jY'><style id='qR0jY'><dir id='qR0jY'><q id='qR0jY'></q></dir></style></legend>

                    <small id='qR0jY'></small><noframes id='qR0jY'>

                      <tfoot id='qR0jY'></tfoot>
                        <bdo id='qR0jY'></bdo><ul id='qR0jY'></ul>
                            <tbody id='qR0jY'></tbody>
                            <i id='qR0jY'><tr id='qR0jY'><dt id='qR0jY'><q id='qR0jY'><span id='qR0jY'><b id='qR0jY'><form id='qR0jY'><ins id='qR0jY'></ins><ul id='qR0jY'></ul><sub id='qR0jY'></sub></form><legend id='qR0jY'></legend><bdo id='qR0jY'><pre id='qR0jY'><center id='qR0jY'></center></pre></bdo></b><th id='qR0jY'></th></span></q></dt></tr></i><div id='qR0jY'><tfoot id='qR0jY'></tfoot><dl id='qR0jY'><fieldset id='qR0jY'></fieldset></dl></div>