23 messages in com.googlegroups.google-picasa-data-apiRe: Adding a new album with .NET Phot...
FromSent OnAttachments
Shiv06 Oct 2007 08:44 
Ryan Boyd (Google)06 Oct 2007 08:58 
Shiv06 Oct 2007 09:11 
Shiv06 Oct 2007 09:16 
Augustin Calin08 Oct 2007 07:59 
Frank Mantek08 Oct 2007 08:20 
Augustin Calin08 Oct 2007 11:00 
Frank Mantek08 Oct 2007 11:07 
Augustin Calin08 Oct 2007 11:17 
Shiv11 Oct 2007 21:58 
Frank Mantek11 Oct 2007 22:49 
Shiv14 Oct 2007 13:34 
Frank Mantek15 Oct 2007 05:36 
Shiv15 Oct 2007 14:54 
Frank Mantek16 Oct 2007 00:16 
Shiv16 Oct 2007 15:38 
Shiv16 Oct 2007 18:44 
Frank Mantek17 Oct 2007 01:57 
Shiv17 Oct 2007 08:12 
Shiv17 Oct 2007 19:37 
Frank Mantek18 Oct 2007 01:11 
Ryan Boyd (Google)18 Oct 2007 08:08 
Shiv19 Oct 2007 06:56 
Subject:Re: Adding a new album with .NET Photo API
From:Shiv (Shiv@gmail.com)
Date:10/06/2007 09:11:21 AM
List:com.googlegroups.google-picasa-data-api

Thanks. Works now.

Replaced all that stuff with

myEntry.Title.Text = "Tennis with Beth";

and that turned the trick.

Regards, Shiv

On Oct 6, 10:59 am, "Ryan Boyd (Google)" <api.@google.com> wrote:

Hi Shiv,

The easiest way to figure this out is probably to determine what the response is from the server.

See the following for help on
that:http://code.google.com/p/google-gdata/wiki/ErrorHandlinghttp://code.google.com/support/bin/answer.py?answer=70891&topic=11369...http://code.google.com/support/bin/answer.py?answer=71567&topic=11369...

Also, you shouldn't need to set the 'MaxPhotosPerAlbum' or 'NumPhotos', as these aren't configurable. The 'Author' value will be determined by the server, so it is also not necessary for the PWA API.

Off the top of my head, setting just the 'Title' should be sufficient, though the access and commenting might be required too. The GPhotoNameTable.Name should get auto-populated on the server side based upon the title:

myEntry.Title.Text = "Tennis with Beth";

We'll be working on a full developer guide with examples for these types of operations.

Hope this works in the meantime -- let us know if you have other questions.

Cheers, -Ryan

On 10/6/07, Shiv <Shiv@gmail.com> wrote:

Hi All,

I obtain the token and am able to view albums and images for the user. Now I am trying to create a new album for the default user and am always encountering an "Internal Server Error" problem. I tried replacing default with a real username with no success. It has got to be the code...

/////////////////////////////////////////////

Uri postUrl = new Uri("http://picasaweb.google.com/data/ feed/api/user/default"); AlbumEntry myEntry = new AlbumEntry();

myEntry.setPhotoExtension(GPhotoNameTable.Name, album.Name); myEntry.Summary.Text = album.Comment; myEntry.setPhotoExtension(GPhotoNameTable.Access, "public");

myEntry.setPhotoExtension(GPhotoNameTable.CommentingEnabled, "true");

myEntry.setPhotoExtension(GPhotoNameTable.MaxPhotosPerAlbum, "1000"); myEntry.setPhotoExtension(GPhotoNameTable.NumPhotos, "0");

AtomPerson author = new AtomPerson(AtomPersonType.Author, "default"); myEntry.Authors.Add(author);

// Send the request and receive the response: AlbumEntry insertedEntry = props.PService.Insert(postUrl, myEntry) as AlbumEntry;

/////////////////////////////////////////////

Any clues?

Thanks, Shiv- Hide quoted text -

- Show quoted text -