Fullcalendar:它可以与谷歌日历设置为私人? [英] Fullcalendar: can it work with Google Calendars set to private?

查看:113
本文介绍了Fullcalendar:它可以与谷歌日历设置为私人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个项目中工作,我需要使用Google日历(或类似的)来提供日历功能。但是,每次将任务添加到日历时,我都需要将其添加到我自己的数据库中。另外,我可能想要分类哪些数据发送到每个地方。例如,我正在为某个特定的日期和时间安排一个活动,并使用特定的标题和说明,最后一个参数仅存储在我的数据库中,而另外三个存储在Google日历后端(因为它通常会发生)和我的数据库中。



我浏览互联网寻找解决方案并找到了答案 - http://www.google.com/support/forum/p/apps-apis/thread?tid=1a58d12f0b69d9b0&hl=zh-TW - 这导致我到Fullcalendar。



但现在当我打开Fullcalendar的文档时,我读到第1步是公开日历...是否真的没有办法与私人日历一起工作?因为如果您想象某人可能想要将某些事件的数据存储在Google DB以外的其他数据库中,则可能出于机密性原因。

解决方案 div>

可以将Google用作日历的后端 - 请参阅我的问题和答案:安全共享Google日历。如果你不使用Zend框架,它不会有直接的帮助,但它会表明可以使用Googles GData API从安全日历中获取数据,你只需要做更多的工作来完成做Zend已经完成的工作。
您还可以在Google日历数据库上存储额外信息(使用API​​),这些信息在任何Google GUI上均未显示,这意味着您不需要使用像您所建议的那样的两个数据存储区。
但是,如果您仍想继续使用Google和您的数据库,则可以使用API​​,在Google日历上创建事件,存储创建事件时返回的ID,然后在数据库中添加任何附加内容你需要连同谷歌身份证。
然后在代码中为日历创建Feed(类似于上面的链接),只需添加一个查询来检查您的数据库中Google刚刚返回的事件的ID。


I’m working in a project in which I need to use the Google Calendar (or similar) to provide the calendar functionality. However, every time a task is added to the calendar I need it to be added to my own database too. Also, I may want to sort which data goes to each place. For example, I’m scheduling an activity for a certain day and time and with a certain title and description and this last parameter is stored only in my DB, whilst the other 3 are stored both in the Google Calendar back-end (as it normally happens) and in my database.

I browsed the internet for a solution and found this answer - http://www.google.com/support/forum/p/apps-apis/thread?tid=1a58d12f0b69d9b0&hl=en - which led me to Fullcalendar.

But now when I open Fullcalendar's documentation I read that step 1 is to make the calendar public... Is there really no way to work with a private calendar? Because if you imagine that one may want to store some events' data in a DB other that Google DB, it could well be for confidentiality reasons.

解决方案

It is possible to use Google as your backend for the calendar - see my question and answer: Secure shared Google Calendar. If you are not using the Zend framework, it won't be of direct help, but it will show that it is possible to get the data from a secure calendar using Googles GData API, you will just have to do a bit more work to do what Zend have already done. You can also store extra information on the Google Calendar DB (using the API) which isn't shown on any of the Google GUI thus meaning you don't need to use two datastores like you suggest. However if you did still want to pursue using Google and your DB, you could use the API, create an event on the Google calendar, store the ID it returns when the event is created, then in your DB add whatever extras you want along with Googles ID. Then in your code where you create the feed for the calendar (similar to the link above) just add a query to check your DB for the ID of the event which Google just returned.

这篇关于Fullcalendar:它可以与谷歌日历设置为私人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆