Permalink
Browse files

updated readme

  • Loading branch information...
1 parent fddc607 commit 402c5fd7ae5f97a1a6ffd1e6f014dac1056ba29c Daniel Lewis committed Sep 14, 2012
Showing with 36 additions and 1 deletion.
  1. +36 −1 README.md
View
@@ -1,4 +1,39 @@
Apigee.Net
==========
-C# Client for the apigee usergrid
+C# Client for the Apigee Usergrid : https://apigee.com/usergrid/
+
+Client is in early Alpha - only works with basic User functionality
+Results May Vary
+
+Usage is as follows :
+
+
+ ApigeeClient apiClient = new ApigeeClient("http://api.usergrid.com/xxx/sandbox/");
+
+ //Get a collection of all users
+ var allUsers = apiClient.GetUsers();
+
+ string un = "apigee_" + Guid.NewGuid();
+
+ //Create a new Account
+ apiClient.CreateAccount(new UserModel
+ {
+ Username = un,
+ Password = "abc123",
+ Email = un + "@sympletech.com"
+ });
+
+ //Update an Existing Account
+ apiClient.UpdateAccount(new UserModel
+ {
+ Username = un,
+ Password = "abc123456",
+ Email = un + "@sympletech.com"
+ });
+
+ //Login User - Get Token
+ var token = apiClient.GetToken(un, "abc123456");
+
+ //Lookup a user by token ID
+ var username = apiClient.LookUpToken(token);

0 comments on commit 402c5fd

Please sign in to comment.