Google Calendar API - 找不到构造函数 [英] Google Calendar API - No constructor found
问题描述
我开始使用Google Calendar API。
但是,当我尝试在链接 https://developers.google .com / google-apps / calendar / instantiate 我有一个很大的问题。
我尝试实现构造函数
日历服务=新日历(httpTransport,accessProtectedResource,jsonFactory);
但是这个不在库中,这个构造函数不存在。
任何人都可以帮我找到解决这个问题的新方法吗?
谢谢
com.google.api.services.calendar.model.Calendar
中定义的模型类。 I'm start to use Google Calendar API. But when I try the Set Up in the link https://developers.google.com/google-apps/calendar/instantiate I have a big problem.
I try to implement the constructor
Calendar service = new Calendar(httpTransport, accessProtectedResource, jsonFactory);
but this ins't in the library, this constructor not exists.
Can anybody help me to found a new solution for this problem?
Thanks
Make sure you are referring to the Calendar service class defined in com.google.api.services.calendar.Calendar
and not the model class defined in com.google.api.services.calendar.model.Calendar
.
这篇关于Google Calendar API - 找不到构造函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!