Граф коммитов

44 Коммитов

Автор SHA1 Сообщение Дата
Gonzalo Paniagua Javier 7583328084 Use a temp file instead of buffering in-memory
When disabling HttpWebRequest buffering, use a temporary file instead
	of a MemoryStream. Enable automatic decompression of the response in
	all requests.
2010-08-23 20:34:12 -04:00
Gonzalo Paniagua Javier 972ce30464 Updated to avoid warning.
Updated samples to use 2.0 validation. Renamed upload-image.cs to
	upload-images.cs and make it take a directory instead of a file.
2010-08-23 20:32:07 -04:00
Gonzalo Paniagua Javier adf2eeb530 Ignore generated files 2010-08-20 23:03:52 -04:00
Gonzalo Paniagua Javier e24110e61b Fix makefile.am 2010-08-20 22:55:37 -04:00
Gonzalo Paniagua Javier 60d138c7e9 Remove generated files 2010-08-20 22:50:50 -04:00
Stephane Delcroix bf02d5a791 2007-05-20 Stephane Delcroix <stephane@delcroix.org>
* docs/: updated documentation

svn path=/trunk/google-sharp/; revision=77731
2007-05-20 19:43:24 +00:00
Stephane Delcroix cd16af4548 2007-05-09 Stephane Delcroix <stephane@delcroix.org>
* src/Mono.Google.Picasa/PicasaAlbum.cs: new UploadPicture (string,
	string, string) interface.


svn path=/trunk/google-sharp/; revision=76991
2007-05-09 08:53:40 +00:00
Stephane Delcroix 615935c3bc 2007-03-30 Stephane Delcroix <stephane@delcroix.org>
* 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
2007-03-30 19:57:10 +00:00
Stephane Delcroix 88274a8185 removing a test file from the Makefile.am
svn path=/trunk/google-sharp/; revision=75081
2007-03-28 15:41:40 +00:00
Stephane Delcroix 2f9e3f5442 2007-03-28 Stephane Delcroix <stephane@delcroix.org>
* 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
2007-03-28 15:02:37 +00:00
Stephane Delcroix 78f33aa2f8 2007-03-16 Stephane Delcroix <stephane@delcroix.org>
* src/Mono.Google.Picasa/PicasaPicture.cs: Add parser and get'er for
	reading Tags.

svn path=/trunk/google-sharp/; revision=74499
2007-03-16 21:20:38 +00:00
Stephane Delcroix c43f1b8374 2007-03-16 Stephane Delcroix <stephane@delcroix.org>
* 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
2007-03-16 10:50:37 +00:00
Stephane Delcroix 8fe7c2971a 2007-03-16 Stephane Delcroix <stephane@delcroix.org>
* src/Mono.Google.Picasa/PicasaWeb.cs: required patch to deal with
	latest picasaweb.google.com changes.


svn path=/trunk/google-sharp/; revision=74453
2007-03-16 08:52:04 +00:00
Gonzalo Paniagua Javier 5fb2f23ce3 2006-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* 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
2006-11-22 00:07:41 +00:00
Gonzalo Paniagua Javier ab409a0969 2006-11-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* src/Mono.Google.Picasa/PicasaAlbum.cs: allow using the new
	authkey value for URLs.
	* docs/*: updated.


svn path=/trunk/google-sharp/; revision=67952
2006-11-15 21:37:06 +00:00
Gonzalo Paniagua Javier ae2ea65e82 2006-10-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* 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
2006-10-05 14:14:52 +00:00
Gonzalo Paniagua Javier af58003a23 2006-10-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* src/Mono.Google/AuthErrorCode.cs: removed.
	* src/Mono.Google/Authentication.cs:
	* src/Mono.Google/Makefile.am:
	* src/Makefile.am: CaptchaRequired is reported as 'cr'.


svn path=/trunk/google-sharp/; revision=66287
2006-10-05 14:00:29 +00:00
Gonzalo Paniagua Javier c5bfdb1ae9 2006-10-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* src/Mono.Google/Authentication.cs: 'CaptchaRequired' is reported as
	'cr'. Fix typo in format.


svn path=/trunk/google-sharp/; revision=66286
2006-10-05 13:52:27 +00:00
Gonzalo Paniagua Javier 3beb2559e4 2006-10-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* 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
2006-10-05 04:59:05 +00:00
Gonzalo Paniagua Javier 4925217ac8 2006-09-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* src/Mono.Google/GoogleConnection.cs: avoid nullref.


svn path=/trunk/google-sharp/; revision=65521
2006-09-16 18:42:25 +00:00
Gonzalo Paniagua Javier 8905291943 remove console
svn path=/trunk/google-sharp/; revision=65520
2006-09-16 18:29:52 +00:00
Gonzalo Paniagua Javier c91a164a33 svn path=/trunk/google-sharp/; revision=65487 2006-09-15 20:24:45 +00:00
Gonzalo Paniagua Javier f7f1ed7f7f 2006-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* 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
2006-09-15 20:24:39 +00:00
Gonzalo Paniagua Javier de81558d84 ask for the password instead of getting it from the command line
svn path=/trunk/google-sharp/; revision=65482
2006-09-15 19:10:13 +00:00
Gonzalo Paniagua Javier c5e4d43348 updates
svn path=/trunk/google-sharp/; revision=65481
2006-09-15 19:09:53 +00:00
Gonzalo Paniagua Javier 5bc82506d8 2006-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* 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
2006-09-15 19:05:19 +00:00
Gonzalo Paniagua Javier 2b49c96687 2006-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* 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
2006-09-06 17:59:56 +00:00
Gonzalo Paniagua Javier 60e3dcc2e6 2006-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* 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
2006-09-05 04:07:45 +00:00
Gonzalo Paniagua Javier 30d7dc4c8f 2006-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* src/Mono.Google.Picasa/PicasaAlbum.cs: they added a new 'bytesused'
	to tell the size of the album.


svn path=/trunk/google-sharp/; revision=64502
2006-08-28 21:53:09 +00:00
Gonzalo Paniagua Javier 1ca6f3c400 2006-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* 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
2006-08-27 21:25:23 +00:00
Gonzalo Paniagua Javier 5656a35dd6 update docs
svn path=/trunk/google-sharp/; revision=64351
2006-08-25 10:15:56 +00:00
Gonzalo Paniagua Javier 4738ac1099 update docs
svn path=/trunk/google-sharp/; revision=64350
2006-08-25 10:15:31 +00:00
Gonzalo Paniagua Javier 6e3458b412 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* 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
2006-08-25 10:15:21 +00:00
Gonzalo Paniagua Javier 934bbcdd68 2006-08-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* src/Mono.Google/GoogleConnection.cs: make DownloadToStream work on
	slow connections.


svn path=/trunk/google-sharp/; revision=63667
2006-08-12 16:39:06 +00:00
Gonzalo Paniagua Javier e806869b5e 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* src/Mono.Google.Picasa/PicasaWeb.cs: actually send the description
	field when provided.


svn path=/trunk/google-sharp/; revision=63077
2006-07-28 14:19:04 +00:00
Gonzalo Paniagua Javier 118054c00c update documentation
svn path=/trunk/google-sharp/; revision=63074
2006-07-28 13:21:36 +00:00
Gonzalo Paniagua Javier 0a828fa28f 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* 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
2006-07-28 13:21:27 +00:00
Gonzalo Paniagua Javier 53880297b1 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* 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
2006-07-28 06:25:19 +00:00
Gonzalo Paniagua Javier 17de8a6fac fix the .pc file
svn path=/trunk/google-sharp/; revision=63063
2006-07-27 21:12:06 +00:00
Miguel de Icaza 5c634703b6 up
svn path=/trunk/google-sharp/; revision=63062
2006-07-27 21:00:20 +00:00
Miguel de Icaza 74b831271f Update
svn path=/trunk/google-sharp/; revision=63061
2006-07-27 21:00:03 +00:00
Gonzalo Paniagua Javier 1f82fbb1ae README
svn path=/trunk/google-sharp/; revision=63060
2006-07-27 20:25:49 +00:00
Gonzalo Paniagua Javier 520b5706cd README
svn path=/trunk/google-sharp/; revision=63059
2006-07-27 20:09:28 +00:00
Gonzalo Paniagua Javier 88d5e5a1eb Initial check-in
svn path=/trunk/google-sharp/; revision=63057
2006-07-27 20:04:08 +00:00