Neil
Neil

Reputation: 2058

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.

Upvotes: 3

Views: 3252

Answers (1)

ovie
ovie

Reputation: 621

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

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

Upvotes: 5

Related Questions