Are your albums all private? I don't see any public albums for that user. Cheers, -Jeff
On Thu, Jan 15, 2009 at 6:10 PM, caton <[email protected]> wrote: > > hello, I am new java developer, > i try to use the example "Request a list of albums"(http:// > code.google.com/intl/zh-TW/apis/picasaweb/ > developers_guide_java.html#Albums<http://code.google.com/intl/zh-TW/apis/picasaweb/developers_guide_java.html#Albums>) > , and return error in Message > [ Invalid value for attribute : 'null' ]. > > But I try another example such as "List photos in album" (http:// > code.google.com/intl/zh-TW/apis/picasaweb/ > developers_guide_java.html#ListPhotos<http://code.google.com/intl/zh-TW/apis/picasaweb/developers_guide_java.html#ListPhotos>) > , can return the photo list. > > if you know why? please tell me , thank you! > > > > my test code > > ----------------------------------------------------------------------------- > > import java.net.URL; > import java.util.Properties; > > import com.google.gdata.client.photos.PicasawebService; > import com.google.gdata.data.photos.AlbumEntry; > import com.google.gdata.data.photos.UserFeed; > > > public class picasaTest { > > public static void main(String[] args) { > > try{ > PicasawebService myService = new > PicasawebService("example > Picasa"); > myService.setUserCredentials("[email protected] > ", > "MyPassword"); > URL feedUrl = new URL(" > http://picasaweb.google.com/data/feed/ > api/user/chiachunchuang?kind=album<http://picasaweb.google.com/data/feed/api/user/chiachunchuang?kind=album> > "); > > UserFeed myUserFeed = myService.getFeed(feedUrl, > UserFeed.class);---> error in this line > > for (AlbumEntry myAlbum : myUserFeed.getAlbumEntries()) > { > > System.out.println(myAlbum.getTitle().getPlainText()); > } > } > > catch(Exception ex){ > System.err.println("Expection:"+ex.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 -~----------~----~----~----~------~----~------~--~---
