When disabling HttpWebRequest buffering, use a temporary file instead
of a MemoryStream. Enable automatic decompression of the response in
all requests.
* src/Mono.Google.PicasaPicture.cs:
* src/Mono.Google.GDataApi.cs: Adding support for picture tagging and
a new public constructor for pictures.
* sample/*: new tag-image.cs sample.
svn path=/trunk/google-sharp/; revision=75233
* configure.ac: switch to gmcs.
* src/Mono.Google/GoogleService.cs: changing this enum to a class,
adding a ServiceCode method.
* src/Mono.Google/Authentication.cs:
* src/Mono.Google/GoogleConnection.cs: changes to authenticate against
ClientLogin as described at
http://code.google.com/apis/accounts/AuthForInstalledApps.html. No
longer send cookies but the Authentication header instead (if the user
is authenticated). Make it fails on Authenticate with null password.
* src/Mono.Google/MultipartRequest.cs: use multipart/related, get the
auth token from GoogleConnection.
* src/Mono.Google.Picasa/XmlUtil.cs: Some chages to fit the protocol
changes, some new helper methods.
* src/Makefile.am:
* src/Mono.Google.Picasa/Makefile.am:
* src/Mono.Google.Picasa/PicasaV1.cs:
* src/Mono.Google.Picasa/GDataApi.cs: removed PicasaV1 replaced by GDataApi.
GDataApi contain urls for accessing PicasaWeb using GData, as detailed
at http://code.google.com/apis/picasaweb/gdata.html.
* src/Mono.Google.PicasaWeb.cs:
* src/Mono.Google.PicasaAlbum.cs:
* src/Mono.Google.PicasaPicture.cs: Some changes in the API and the
code to reflect the way of how the protocol works (e.g. UploadPicture
return a PicasaPicture, the <entry> related to the top level gallery
is parsed at construct time for PicasaWeb, ...). The
PicasaWeb.DeleteAlbum code is disabled for now.
* sample/*: adapation for some minor API changes, new upload-image.cs
sample.
svn path=/trunk/google-sharp/; revision=75075
* src/Mono.Google.Picasa/PicasaAlbum.cs: Fixes the namespaces in
GetPictures ().
* src/Mono.Google.Picasa/PicasaPicture.cs: Fixes the date parsing in
ParsePictureInfo ().
svn path=/trunk/google-sharp/; revision=74457
* src/Mono.Google.Picasa/PicasaWeb.cs: there have been some changes in
picasaweb.google.com and this change is "needed" now. Patch from
Stephane Delcroix.
svn path=/trunk/google-sharp/; revision=68309
* src/Mono.Google/Authentication.cs: make the captcha_url relative to
the url given in the error response.
svn path=/trunk/google-sharp/; revision=66288
* src/Mono.Google/GoogleConnection.cs:
* src/Mono.Google/Authentication.cs:
* src/Mono.Google/CaptchaException.cs:
* src/Mono.Google/Makefile.am:
* src/Mono.Google/AuthErrorCode.cs:
* src/Makefile.am: handle the case when google sends a captcha
challenge. We will now throw a CaptchaException with the image url and
and token. We should show the user the image and request authentication
again using the token and the user input. If this is not possible,
the user should be told about CaptchaException.UnlockCaptchaURL if he
wants to disable captchas fos his IP/machine/user.
svn path=/trunk/google-sharp/; revision=66277
* src/Mono.Google/GoogleConnection.cs: some changes to make it work on
the MS runtime. Copied from System.Net.
svn path=/trunk/google-sharp/; revision=65486
* src/Mono.Google.Picasa/PicasaV1.cs: send the authtoken in the query
string. This will give us the cookie for further access.
* src/Mono.Google/GoogleConnection.cs: add an ApplicationName property that
needs to be set when Assembly.GetEntryAssembly returns null (non-root
appdomains). Also keep the authtoken around.
* src/Mono.Google/Authentication.cs: use the same method as picasa2 to
authenticate. Two requests, no redirects, and we get 2 cookies plus the
authtoken.
* src/Makefile.am: reference System.Web.
svn path=/trunk/google-sharp/; revision=65480
* src/Mono.Google.Picasa/PicasaWeb.cs: fix nullref when the user is not
authenticated and tries to create or delete an album. Should fix b.g.o.
#354621.
svn path=/trunk/google-sharp/; revision=65023
* src/Mono.Google.Picasa/PicasaWeb.cs: use the invariant culture when
generating the creation date. Hopefully fixes b.g.o. #354295.
svn path=/trunk/google-sharp/; revision=64914
* src/Mono.Google.Picasa/Makefile.am:
* src/Makefile.am:
* src/Mono.Google.Picasa/PicasaWeb.cs:
* src/Mono.Google.Picasa/XmlUtil.cs:
* src/Mono.Google.Picasa/PicasaAlbum.cs: use System.Xml to write the
POST requests. Support the 'description' argument.
svn path=/trunk/google-sharp/; revision=64450
* sample/Makefile.am:
* src/Makefile.am:
* src/Mono.Google.Picasa/Makefile.am:
* src/Mono.Google.Picasa/UploadProgressEventArgs.cs:
* src/Mono.Google.Picasa/UploadProgressEventHandler.cs: upload progress
event handler.
* src/Mono.Google.Picasa/PicasaPicture.cs: use the right format for date
parsing. Some fields are now optional, as we can download public albums
or private albums with known id without the need for an authenticated
user.
* src/Mono.Google.Picasa/PicasaAlbum.cs: new static method to get the
pictures from known albums (user, album id needed). New
UploadProgress event to give feedback while uploading.
* src/Mono.Google.Picasa/PicasaV1.cs: retrieve the upgrade storage link
* and album RSS.
* src/Mono.Google/MultipartRequest.cs: if the response throws, don't
intercept that exception so that the user knows what's going on. Support
for buffering in a stream different than the request stream, needed when
the upload progress event is used.
svn path=/trunk/google-sharp/; revision=64349
* src/Mono.Google.Picasa/PicasaWeb.cs: added a new overload of
DeleteAlbum.
* src/Mono.Google.Picasa/PicasaAlbumCollection.cs:
* src/Mono.Google.Picasa/PicasaPictureCollection.cs: rename a
parameter.
svn path=/trunk/google-sharp/; revision=63073
* src/Mono.Google.Picasa/PicasaWeb.cs: simplify building POST requests
and added DeleteAlbum.
* src/Mono.Google.Picasa/PicasaAlbum.cs: simplify buildint POST
request.
* src/Mono.Google.Picasa/DeleteAlbumException.cs: new exception.
* src/Mono.Google/MultipartRequest.cs: wrapper for easy creation of a
multipart/form-data web request.
svn path=/trunk/google-sharp/; revision=63069