dropio / dropio-csharp

The official C# library for drop.io.

This URL has Read+Write access

whoisjake (author)
Mon Nov 02 10:25:21 -0800 2009
commit  9e55551d00d5d4b3d81f34b2323c2dd216106b7c
tree    8e47a39063cf2d5a3bc73e9ed4c569865fa64c3e
parent  76f49deec8638492c90950b4f53d167996fce9af
name age message
file .gitignore Loading commit data...
directory Dropio.Core/
file LICENSE.txt Wed Jan 28 11:28:05 -0800 2009 Added a license [whoisjake]
file README.markdown
README.markdown

drop.io API library for C#

Before using the Dropio library, the application must set an API key. This key will be used for all requests to the server. To get an API key, go to http://api.drop.io/. Then make sure you set the API key before you use the API:

ServiceProxy.Instance.ServiceAdapter.ApiKey = "e27079f977e83facedcba464b7580d2a0318131b";

The Drop object

There are two ways to get a Drop object. The first is to access an existing drop:

Drop drop = Drop.find("mystuff");
Drop auth_drop = Drop.find("mystuff", "b9b2c8f2b8e655679d2fb62b83f8efec4fb4c8af")

Drop#find takes two arguments: the name of the drop to get, and a credential token. This can be an admin token, a user token, an admin password, or a guest password. The drop's capabilities will be limited by the token, and the token is optional. If the drop is authenticated with the admin token, it will be able to do anything. If the drop is not authenticated with a token, it will have the same capabilities as any user visiting the drop. If the drop is not found or the token is not accepted, #find will return null.