Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Calendar API not found - Calendar classes missing

I am trying to make an application that uses Google's API for their calendar service. I am referencing this guide and am now stuck on a step. Specifically, this step.

It tells me to import these classes:

import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.jackson.JacksonFactory;
import com.google.api.services.calendar.Calendar;
import com.google.api.services.calendar.model.*;

Now, I have downloaded the (what I thought was complete) library at: this source. But it still gives me an error on the following two lines:

import com.google.api.services.calendar.Calendar;
import com.google.api.services.calendar.model.*;

Where can I get those two classes? Or should I follow another example? Any help would be appreciated.

like image 970
Neil Avatar asked Jan 29 '26 20:01

Neil


1 Answers

To use google calendar api you need two particular libs here they are:

  • Calendar service java: https://developers.google.com/resources/api-libraries/download/calendar/v3/java
  • Google api client java: https://code.google.com/p/google-api-java-client/downloads/detail?name=google-api-java-client-1.15.0-rc.zip&can=2&q=

And be sure you import all the required jars. That's all.

like image 86
ovie Avatar answered Jan 31 '26 08:01

ovie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!