rackspace/csharp-cloudfiles — Issue #67: Code examples?
Author: brid
Created: 2012-03-08 20:03:05+00:00
State: open

The 3.0 release looks great, but it's given with one hand, and snatched away with the other!

The website shows examples which require little more than your api key, login and the choice of which authentication server(s) to use.

Now we have to go looking for this url, and the code examples aren't very helpful, apart from their adherence to best practices in development.

Some code we have now looks like :

UserCredentials creds = new UserCredentials(
ConfigurationManager.AppSettings["RackspaceAPILogin"],
ConfigurationManager.AppSettings["RackspaceAPIKey"],
ConfigurationManager.AppSettings["RackspaceCDNAuthUrl"]);

Client client = new Client();

Connection conn = new CF_Connection(creds, client);

conn.Authenticate(); <------------- CODE FAILS HERE WITH "The given key was not present in the dictionary."
conn.UserCreds.AuthToken = "put-object";

The auth url i'm using is : https://lon.auth.api.rackspacecloud.com/v2.0/ and the key and login are unchanged from this morning when i was using your 1.x release.]

Is there any quickstart guidance on how to use the new libraries? I'm confident this will be aswesome once we have it working (specifically for its support of CORS) but for the time being some help would be great for many of us ;)