Google Calendar API - No constructor found

陌路散爱 提交于 2019-12-25 04:15:33

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/10152775/google-calendar-api-no-constructor-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!