Yes. Source code would have been good. So here it is:

package mycalendar;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import com.google.gdata.client.*;
import com.google.gdata.client.calendar.*;
import com.google.gdata.data.*;
import com.google.gdata.data.acl.*;
import com.google.gdata.data.calendar.*;
import com.google.gdata.data.extensions.*;
import com.google.gdata.util.*;

import java.net.*;
import java.io.*;


import sample.util.*;

/**
 *
 * @author william
 */
public class CalendarTest {

    public static void main(String[] args) {
CalendarService myService = new CalendarService("exampleCo-exampleApp-1.0");
        try {
            myService.setUserCredentials("[email protected]", "pa$$word");
        }
        catch (AuthenticationException e1) {
        }

        try {
URL feedUrl = new URL("http://www.google.com/calendar/feeds/default/allcalendars/full";);
        }
        catch (MalformedURLException e2) {
        }
CalendarFeed resultFeed = myService.getFeed(feedUrl, CalendarFeed.class);

        System.out.println("Your calendars:");
        System.out.println();

        for (int i = 0; i < resultFeed.getEntries().size(); i++) {
            CalendarEntry entry = resultFeed.getEntries().get(i);
            System.out.println("\t" + entry.getTitle().getPlainText());
        }

    }
}

The variable feedUrl used as the first parameter in the call to myService.getFeed is identified as undefined by netbeans. However the line that begins URL does not generate an error, so I am assuming that the variable is properly created. (netbeans identifies as unused).

Other possibly relevant info:

OS - Kubuntu 10.04 64 bit

Java version - 1.6.0_24

NetBeans IDE 6.8

The user credentials provided here are those from the google web site. I will provide my own before I actually try to run this.


On 11-04-27 06:01 AM, Pierre Pasteau wrote:
No source code ? No possible answer... Please be sensible and provide
relevant data.

--
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html

--
I know you believe you understand what you think I said, but I am not sure that you realize that what you heard was not what I meant.

--
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html

Reply via email to