问题
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