[英]Creating a Google Calendar remotely
I've been researching this question for the last few weeks and have had no success trying to connect to Google through OAuth1 OR 2. 我过去几周一直在研究这个问题,并且没有成功尝试通过OAuth1 OR 2连接到Google。
I have a client that needs a separate Calendar for each of the homes they are building. 我有一个客户需要为他们正在建造的每个房屋单独的日历。 On creation of a new home in the database, I want to create a calendar and save the Id of the created calendar.
在数据库中创建新主页时,我想创建一个日历并保存创建的日历的ID。
What options do I have to do this? 我有什么选择呢?
It seems like the only way is to have the user get redirected to Google and login to add a calendar... I want to use a static Google account and simply create the calendar that way, without having the annoying "Login to google" screen. 似乎唯一的方法就是让用户重定向到Google并登录以添加日历...我想使用静态Google帐户并简单地创建日历,而不会有恼人的“登录谷歌”屏幕。
Google api lets you to do whatever you need with a Calendar using their provided libraries. Google API允许您使用提供的库为日历执行任何操作。 Let's take a look: Google Developer: Instantiate Google Calendar
我们来看看: Google Developer:Instantiate Google Calendar
This SO posts discusses that. 这篇SO帖子讨论了这一点。 Specifically pay attention to the line in the accepted answer where it is mentions the process for adding a new calendar is similar to adding an event.
特别注意接受答案中的行,其中提到添加新日历的过程类似于添加事件。
SO: Google Calendar API Selecting and creating Calendars SO:Google Calendar API选择和创建日历
I also came across this tutorial which may be helpful in terms of other actions on the calendar once it has been created. 我也遇到过这个教程,它可能对创建日历上的其他操作有所帮助。
IBM Developer Works: Integrate your PHP Application with Google Calendar IBM Developer Works:将您的PHP应用程序与Google日历集成
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.