Hi all:
I can not get a list of albums,but I can add an album.
What is the problem?

import java.net.URL;
import java.util.List;

import com.google.gdata.client.photos.*;
import com.google.gdata.data.photos.*;

public class picasa {

    public static void main(String[] args) {
        // TODO code application logic here
        try {
            PicasawebService myService = new PicasawebService
("exampleCo-exampleApp-1");
            myService.setUserCredentials("[email protected]", "xxxx");

            URL feedUrl = new URL("http://picasaweb.google.com/data/
feed/api/user/info.anvii?kind=album");

UserFeed myUserFeed = myService.getFeed(feedUrl, UserFeed.class);
            List<AlbumEntry> myAlbums=myUserFeed.getAlbumEntries();
            System.out.println(myAlbums.size());--->the answer is 0

        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
    }
}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums 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://groups.google.com/group/Google-Picasa-Data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to