Scribd.NET 2010.09.20

Rating: No reviews yet
Downloads: 318
Change Set: 61265
Released: Sep 20, 2010
Updated: Sep 20, 2010 by JPaulDuncan
Dev status: Stable Help Icon

Recommended Download

Application Scribd.NET (.NET 4.0)
application, 48K, uploaded Sep 20, 2010 - 195 downloads

Other Available Downloads

Application Scribd.NET (.NET 2.0)
application, 49K, uploaded Sep 20, 2010 - 58 downloads
Application Scribd.NET (.NET 3.5)
application, 49K, uploaded Sep 20, 2010 - 65 downloads

Release Notes

+ Collection support. New AddToCollection members for adding a document to a Collection
+ Change that spans several files. SecretKey ==> SecretKeyBytes. A little more secure if the secret key isn't included in the binary in string form. So the library now supports initializing the secret key as a byte array. Can still initialize the SecretKey as a string. But better yet is to use the Service.SecretKeyBytes setter. Internally the library just deals with the byte array.
+ Remove redundant calls to Service.OnErrorOccurred. Already called from Service.PostRequest where the error message is what was returned from the service.
+ Made library available for the following .NET Framework versions: 2.0, 3.5, and 4.0

+ Enumerations.cs
- Added DownloadAndDRMTypes enum

+ DocumentStore.cs
- Refactored some code into this class. Added ListPrice property. And noted that Min/MaxPrice properties are now obsolete
- Added support for uploading For Sale items. Refactored some code out of here and into DocumentStore to better share code. Also improve structure and std upload vs asynch to allow for more sharing.
- Added Subcategory property
- Fix a bug in Save() where it wasn't returning after an error (documentId == 0)
- Tweaked how Title/Description fields were initialized in Save, e.g. allowing Save to leave description unchanged
- Added limit and offset parameters and explicit Document.GetList() method (now you can paginate your document list).

+ ScribdEventArgs.cs:
- Enhanced to include an optional Exception object for richer error reporting

+ Request.cs:
- Enhanced User support. A Request can now specify the User and thus override the Service.InternalUser value
- Encode Key/Value pairs when building the URL
- Fix GetAPISig(). The parameters needs to be alphabetically sorted before running through the HD5 hash.

+ Response.cs:
- Small change to error handling. Basically return Message, rather then the entire ex.ToString(). And entire exception is available to any error handlers using the new Exception member in ScribdEventArgs.

+ Service.cs:
- In PostRequest & PostFileUploadRequest don't override Request.user when Request.SpecifiedUser is true
- In the FileUploader() fix a couple minor issues in the multi-part POST.

+ User.cs:
- Added Logout API and BeforeLogut and AfterLogout events, modeled after the other similar events in the library. Logout() clears the currently logged in user state.
- Added ValidateCredentials API. Like Login, except that it doesn't set the internal "state" of the library. Allows a client to verify credentials statelessly.
- Improved Signup API so that it worked even when there was currently a "logged in" user. Previously the API would fail if logged in.
- Fixed GetAutoSigninUrl. This API does NOT take a user_id param. Rather it infers the user from the session Id. Thus this API works on the currently logged in user.

+ Category.cs:
- New object that encapsulates scribd's notion of a category: id, name, parent, and child categories
- Includes APIs to get all the categories in Scribd's category system

+ Collection.cs:
- New object that encapsulates a Scribd Collection. Id, name, number of documents
- API to get the collections associated with a User
  • A big shout-out to the amazing work of Peter Protebic!

Reviews for this release

No reviews yet for this release.