Google Calendar API - 找不到构造函数 [英] Google Calendar API - No constructor found

查看:152
本文介绍了Google Calendar API - 找不到构造函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用Google Calendar API。
但是,当我尝试在链接 https://developers.google .com / google-apps / calendar / instantiate 我有一个很大的问题。



我尝试实现构造函数

 日历服务=新日历(httpTransport,accessProtectedResource,jsonFactory); 

但是这个不在库中,这个构造函数不存在。



任何人都可以帮我找到解决这个问题的新方法吗?

谢谢

com.google.api.services.calendar.Calendar 中定义的日历服务类,而不是解决方案在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆