简体   繁体   English

Google Calendar API-不显示日历

[英]Google Calendar API - Not showing calendar

I've downloaded the Google API Client and installed it on my Server. 我已经下载了Google API客户端并将其安装在服务器上。 I set up my API and my client ID. 我设置了我的API和我的客户ID。 I configured the PHP file and now I'm trying to open it: http://euotm.net/google-api-php-client/examples/calendar/simple.php 我配置了PHP文件,现在尝试打开它: http : //euotm.net/google-api-php-client/examples/calendar/simple.php

I signin using a Google Account, but then all I get is a code. 我使用Google帐户登录,但是得到的只是一个代码。

WHy does that happen? 为什么会这样? I need it to show a calendar. 我需要它来显示日历。 I'm new to this API, so I really don't know much. 我是这个API的新手,所以我真的并不了解。

Thanks ahead, 谢谢,

Tom. 汤姆

Indeed google calendar api doesn't provide a display widget to integrate calendar to your application. 实际上,谷歌日历api并未提供用于将日历集成到您的应用程序的显示小部件。 The api only gives you the possibility to retrieve every details about your calendars and their events, and then you'll have to find a way to display it on your screen if you want a nice layout. 该API仅使您能够检索有关日历及其事件的每个详细信息,然后,如果您想要一个不错的布局,就必须找到一种在屏幕上显示它的方法。

have you 有你吗

require_once 'google-api-php-client/src/Google_Client.php';
require_once 'google-api-php-client/src/contrib/Google_CalendarService.php';

these files in your code ? 这些文件在您的代码中? i think you may miss it. 我想你可能会想念它。 what error, you are getting kindly make more sense about this 什么错误,请您对此有所了解

I am having the same issue. 我有同样的问题。 From what I've found so far, it looks like RadASM is right, but I was wondering what you moved on to in terms of which widget/gadget you used to display your actual calendar. 从到目前为止的发现来看,RadASM似乎是正确的,但是我想知道您在使用哪个小部件/小工具来显示实际日历方面前进了。

If you haven't found it yet, you may be looking for this: 如果尚未找到它,则可能正在寻找:

https://developers.google.com/google-apps/calendar/gadgets/event/ https://developers.google.com/google-apps/calendar/gadgets/event/

Please let me know what you went with. 请让我知道您的处理方式。

RadASM is right. RadASM是正确的。 Google Calendar API provides well structured data for the calendars and calendar events, allowing data manipulation, too. Google Calendar API为日历和日历事件提供了结构良好的数据,也允许进行数据操作。 Desiring your custom layout, you need to take care of it. 需要您的自定义布局,您需要照顾好它。

Here is a detailed explanatory article with full demo code within a single HTML file - Easy and compact access to your Google calendars . 这是一篇详细的说明性文章,在单个HTML文件中包含完整的演示代码- 轻松,紧凑地访问您的Google日历

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM