谷歌日历与 Rails 3 站点的完整集成

发布于 2024-10-26 13:35:23 字数 1027 浏览 1 评论 0 原文

我需要将我的 Rails 3 应用程序与谷歌日历集成。以下是应用程序的要求:

  1. 在我的应用程序中,我可以创建日历事件并邀请人们(几乎大多数谷歌日历功能)。
  2. 我希望能够提取用户现有的谷歌日历并同步? (可能)。
  3. 我需要能够以不同的形式(每日、每周、每月)显示日历,并在日历中添加额外的图形。
  4. 我需要将日历中创建的项目用于其他特性和功能。具体来说,我需要跟踪数据库中的某个日历项目。例如,新约会的 ID 与我的数据库中用户的 foo 相关联。

起初我想我应该将谷歌日历引入到我的应用程序中(直接引入到 div 中),但是对于#4,我真的需要的远不止于此。

我发现了以下内容 http://cookingandcoding.com/docs/gcal4ruby/(用于 API 集成)

http://www.web-delicious.com/jquery-plugins-demo/wdCalendar /sample.php (用于日历的可视化显示)

在我走这条路之前,我想看看其他人是否对此有意见。我最关心的是如何构建这个解决方案,具体来说:

  • 假设我使用上面列出的 api 专门为我在 google 日历中的应用程序创建一个日历,并且我与这个单一日历交互。
  • 我们还假设我可以在该日历中创建事件,从谷歌日历中获取 ID,并将每个事件的 ID 放入我的数据库中(我需要在其中存储它并引用我创建的特定事件)。
  • 我还想引入用户现有的日历(并重新同步它们)。这个API可以做到这一点吗?

这些是适合该架构的工具吗?

另外我认为我需要使用omniauth,这样我就不必存储用户的谷歌日历用户名和密码。

I need to integrate my rails 3 application with google calendar. The following are requirements of the application:

  1. Within my application I can create calendar events and invite people (pretty much most of the google calendar features).
  2. I want to be able to pull a users existing google calendars and sync? (potentially).
  3. I need to ability to show the calendar in different forms (daily, weekly, monthly) and put additional graphics in the calendar.
  4. I need to use items created in the calendar for other features and functions. Specifically I need to keep track of a calendar item with something in my database. For example, the ID of a new appointment is tied to a user's foo in my database.

At first I was thinking that I should just bring in google calendar into my application (directly into a div) but then with #4 I really need much more than that.

I found the following
http://cookingandcoding.com/docs/gcal4ruby/ (for API integration)

and

http://www.web-delicious.com/jquery-plugins-demo/wdCalendar/sample.php (for the visual display of calendars)

Before I go down this path I wanted to see if others had input on this. I'm mostly concerned about how to architect this solution, specifically:

  • let's assume I use the api listed above to create a calendar specifically for my application in google calendar and I interface with this single calendar.
  • let's also assume that I can create events in that calendar, get the ID back from google calendar and place that ID of each event in my database (where I need to store it and make reference to specific events I've created).
  • I also want to bring in existing calendars from the user (and resync them). Can this API do that?

Are these the right tools for this architecture?

Also I think I need to use omniauth so that I don't have to store the users google calendar user name and password.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

何以心动 2024-11-02 13:35:23

您可能想要查看的另一个 JQuery 日历插件是 完整日历。甚至还有一个演示项目,提供了将其与 Rails 3 集成的代码,位于 GitHub

Another JQuery Calendar plugin you might want to look at is Full Calendar. There is even a demo project that provides code to integrate it with Rails 3 available on GitHub

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文