As far as I’m aware, no, there is no simple way of doing it. Remember that while you know it’s your account, Google doesn’t - from their servers’ perspective you’re just a user making REST requests. Clearly, Google can’t accept requests to private photos without any form of authentication.
Whilst it’s annoying that user/pass auth isn’t supported any more, writing OAuth isn’t that hard and there are plenty of examples out there. On 29 May 2015, at 15:44, Ben Donovan <bendonovan1...@googlemail.com> wrote: Hi Mark/anyone else, Since the setUserCredentials has been deprecated is there any way to simply connect with your own picasa account to upload photos, without the need to get user authentication which I don't need since it is my own account? I have tried the following code and I am still getting the same error: "The remote server returned an error: (404) Not Found." error. {"Execution of request failed: https://picasaweb.google.com/data/feed/api/user/default/albumid/myalbumid"} ----------------- My Code: Uri postUri = new Uri(PicasaQuery.CreatePicasaUri("default", AlbumID)); const string ServiceAccountEmail = "em...@developer.gserviceaccount.com"; var certificate = new X509Certificate2(HttpContext.Current.Server.MapPath("bin/key2.p12"), "notasecret", X509KeyStorageFlags.Exportable); var serviceAccountCredentialInitializer = new ServiceAccountCredential.Initializer(ServiceAccountEmail) { Scopes = new[] { "https://picasaweb.google.com/data/" } }.FromCertificate(certificate); var credential = new ServiceAccountCredential(serviceAccountCredentialInitializer); if (!credential.RequestAccessTokenAsync(System.Threading.CancellationToken.None).Result) throw new InvalidOperationException("Access token request failed."); var requestFactory = new GDataRequestFactory(null); requestFactory.CustomHeaders.Add("Authorization: Bearer " + credential.Token.AccessToken); PicasaService service = new PicasaService("My App"); service.RequestFactory = requestFactory; string sContentType = "image/jpeg"; PicasaEntry entry = (PicasaEntry)service.Insert(postUri, fileStream, sContentType, sFilename); fileStream.Close(); sPicasaURL = entry.Media.Content.Url.ToString(); Any help would be appreciated. Thanks! On Friday, 29 May 2015 15:29:43 UTC+1, Francesco Defazio wrote: Hi all, since 27th May 2015 I'm not able to upload pictures using picasa Api. I get always the same error: Execution of authentication request returned unexpected result: 404 The crediantials it wasn't change and by browser I can login without problems. My application running succesfully since October 2011. The code of my application is: Dim reqSet As New Google.GData.Client.RequestSettings("GM") Dim picasarequest As Google.Picasa.PicasaRequest Dim service As New Google.GData.Photos.PicasaService("") reqSet.Timeout = 600000 picasarequest = New Google.Picasa.PicasaRequest(reqSet) service = picasarequest.Service service.setUserCredentials(PicasaUserName, PicasaPassword) reqSet = Nothing picasarequest = Nothing Dim feed As Google.GData.Photos.PicasaFeed Dim entry As Google.GData.Photos.PicasaEntry Dim postUri As Uri Dim album As Google.GData.Photos.AlbumAccessor Dim StartIndex As Integer = 1 Dim AlbumId As String = "" Dim newEntry As New Google.GData.Photos.AlbumEntry Dim feedUri As Uri Dim AlbumSummary As String AlbumSummary = GetAlbumSummary(AlbumNameCurrent) newEntry.Title.Text = AlbumNameCurrent newEntry.Summary.Text = AlbumSummary album = New Google.GData.Photos.AlbumAccessor(newEntry) If PhotoTypeCurrent = enPhotoType.Shipment Then album.Access = "private" Else album.Access = "public" End If feedUri = New Uri(Google.GData.Photos.PicasaQuery.CreatePicasaUri(PicasaUserName)) album = New Google.GData.Photos.AlbumAccessor(service.Insert(feedUri, newEntry)) I got the error in the last operation: album = New Google.GData.Photos.AlbumAccessor(service.Insert(feedUri, newEntry)) I also get the error with: feed = service.Query(query) Dim query As Google.GData.Photos.AlbumQuery Dim feed As Google.GData.Photos.PicasaFeed query = New Google.GData.Photos.AlbumQuery(Google.GData.Photos.PicasaQuery.CreatePicasaUri(PicasaUserName)) query.StartIndex = 1 query.NumberToRetrieve = 1000 feed = service.Query(query) Thank in advance -- You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-picasa-data-api+unsubscr...@googlegroups.com <mailto:google-picasa-data-api+unsubscr...@googlegroups.com>. To post to this group, send email to google-picasa-data-api@googlegroups.com <mailto:google-picasa-data-api@googlegroups.com>. Visit this group at http://groups.google.com/group/google-picasa-data-api <http://groups.google.com/group/google-picasa-data-api>. For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-picasa-data-api+unsubscr...@googlegroups.com. To post to this group, send email to google-picasa-data-api@googlegroups.com. Visit this group at http://groups.google.com/group/google-picasa-data-api. For more options, visit https://groups.google.com/d/optout.