PicasawebService myService = new PicasawebService("exampleCo-exampleApp-1"); // just id myService.setUserCredentials( "liz@gmail.com", "mypassword"); // your mailaddress, password // change "username", "albumid" and "photoid" URL feedUrl = new URL( "https://picasaweb.google.com/data/feed/api/" + "user/username/albumid/albumid/photoid/photoid"); CommentEntry myComment = new CommentEntry(); myComment.setContent( new PlainTextConstruct("great photo!")); // there is comment myService.insert(feedUrl, myComment);
/** * Declare the extensions of the feeds for the Picasa Web Albums Data API. */ private void declareExtensions() { extProfile.setAutoExtending(true); new AlbumEntry().declareExtensions(extProfile); new AlbumFeed().declareExtensions(extProfile); new CommentEntry().declareExtensions(extProfile); new PhotoEntry().declareExtensions(extProfile); new PhotoFeed().declareExtensions(extProfile); new TagEntry().declareExtensions(extProfile); new UserEntry().declareExtensions(extProfile); new UserFeed().declareExtensions(extProfile); }
/** * Declare the extensions of the feeds for the Picasa Web Albums Data API. */ private void declareExtensions() { extProfile.setAutoExtending(true); new AlbumEntry().declareExtensions(extProfile); new AlbumFeed().declareExtensions(extProfile); new CommentEntry().declareExtensions(extProfile); new PhotoEntry().declareExtensions(extProfile); new PhotoFeed().declareExtensions(extProfile); new TagEntry().declareExtensions(extProfile); new UserEntry().declareExtensions(extProfile); new UserFeed().declareExtensions(extProfile); }