Closed GoogleCodeExporter closed 9 years ago
Towards the end of my code I am assuming that gDataPhoto.photoData contains the
actual image data, is that correct? Again, if you could point me to
documentation for these classes that would be fantastic.
Thanks again,
Ben.
Original comment by benjamin...@gmail.com
on 2 Dec 2011 at 2:43
I have now changed the visibility of these albums to Public, so if you click on
the link to the failed albums, you will see that they do in fact exist.
Original comment by benjamin...@gmail.com
on 2 Dec 2011 at 2:49
403 means "Forbidden", which typically indicates an authorization problem.
You should turn on http logging as mentioned in the GData library's
introduction documentation, and examine the actual server requests and
responses.
Your code is repeatedly creating service objects and authorization objects, but
that is not how they are intended to be used. Just make one instance of the
GData service for the application, and create one an authorization object for
the user.
Documentation for the photos API is at
http://code.google.com/apis/picasaweb/docs/2.0/developers_guide.html
The Objective-C GData library includes a GooglePhotosSample application which
shows how to use the library to download and upload photos and videos.
The issue tracker is intended for filing bugs and feature requests. For support
in using the library to write your application, please use the discussion
groups rather than opening issues.
Original comment by grobb...@google.com
on 3 Dec 2011 at 6:18
Thanks for your help, I changed the code so the service object is implemented
as a singleton, which fixed up the 403 errors I was seeing.
Cheers,
Ben.
Original comment by benjamin...@gmail.com
on 5 Dec 2011 at 4:41
Original issue reported on code.google.com by
benjamin...@gmail.com
on 2 Dec 2011 at 2:37Attachments: