在 JAVA 中使用 Smack API 连接到 Google 日历
谁能告诉我如何使用 Smack API 连接到 Google 日历服务器(如果我能做到的话)。
Can anyone tell me how to connect to Google Calendar server using the Smack API, if i can do that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 Smack 连接到 Google 日历是什么意思? Smack 会让你连接到 XMPP 服务器,这是一种即时消息传递方式。如果您想要类似于 http://clockwerx.blogspot .com/2008/10/interacting-with-google-calendar-via.html 然后有两个方面:实现机器人,然后连接到它并与其交谈。
但一般来说,下面是一个可以让您连接到 GTalk 的代码示例:
What do you mean by connecting to Google Calendar using Smack? Smack will let you connect to an XMPP server, which is an instant messaging means. If you want something similar to http://clockwerx.blogspot.com/2008/10/interacting-with-google-calendar-via.html then there are two sides: implement the bot and then connect to it and talk to it.
But generally speaking, here's a code sample that will let you connect to GTalk:
我怀疑这个问题在这么长时间后仍然存在。但对于未来寻找答案的用户,我会提供它。
Smack API 用于 XMPP 消息传递。您不太可能通过它获得日历访问权限。
大多数(基于云的)日历都基于 WebDAV 的专门化工作,称为 CalDAV。合适的客户端库是 caldav4j。
I doubt the problem still persists after that long time. But for future users searching for an answer I will provide it.
Smack API is used for XMPP messaging. It is unlikely you get calendar access with that.
Most (cloud based) calendars do work based on a specialization of WebDAV which is called CalDAV. A suitable client library is caldav4j.