WhatSupYap / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Gdata Photo API impossible to change the Album.Published #539

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a new album with a Published in 2010 for example
2. The created album date is always today 
3.

What is the expected output? What do you see instead?

The same problem happen with modification.
My code is like that :

private Album CreateAlbum(PicasaService session, PicasaFeed albumFeed, string 
targetAlbumName, AlbumAccessEnum albumAccess)
        {
            //create album (doesn't exist)
            WriteOutput(string.Concat("Creating Album: ", targetAlbumName), true);
            AlbumEntry newAlbumEntry = new AlbumEntry();
            newAlbumEntry.Title.Text = targetAlbumName;
            newAlbumEntry.Summary.Text = targetAlbumName;
            newAlbumEntry.Published = new DateTime (2010, 12, 31);

            Album newAlbum = new Album();
            newAlbum.AtomEntry = newAlbumEntry;
            newAlbum.Access = albumAccess.ToString().ToLower();

            Uri insertAlbumFeedUri = new Uri(PicasaQuery.CreatePicasaUri(this.PicasaUsername));
            newAlbum.AtomEntry = (PicasaEntry)session.Insert(insertAlbumFeedUri, newAlbumEntry);
            m_albumCreateCount++;

            return newAlbum;
        }

Please use labels and text to provide additional information.

Original issue reported on code.google.com by sebastie...@gmail.com on 30 Aug 2011 at 2:00

GoogleCodeExporter commented 8 years ago
Published and Modification are read-only fields and cannot be set with the API.

Original comment by ccherub...@google.com on 2 Sep 2011 at 12:54

GoogleCodeExporter commented 8 years ago
I understand that we cannot change Published and Updated date time.

BUT can we create our own properties called "MyPublishedDateTime" associated to 
each document that we upload for instance !

If this is possible, can you point me in the right direction with some sample 
code in .NET.

How to upload a document with our own extra metadata !
How to download and read our extra metadata !

Thank you very much

Original comment by dnazarki...@gmail.com on 6 Sep 2011 at 4:09

GoogleCodeExporter commented 8 years ago
+1 

Anyway if you really need to modify an album date, you can do it with the 
python API :
http://blog.slucas.fr/blog/backup-photo-picasaweb-2
http://stackoverflow.com/questions/4559030/not-able-to-change-a-date-of-my-picas
a-web-albums-album-via-python-api

Original comment by sebastie...@gmail.com on 6 Sep 2011 at 4:13

GoogleCodeExporter commented 8 years ago
I don't know if the Picasa Web Albums API allows to add custom properties, 
please ask this question in the specific API forum:

https://groups.google.com/forum/#!forum/google-picasa-data-api

Original comment by ccherub...@google.com on 6 Sep 2011 at 5:15