Permalink
Browse files

Get twitter user info

  • Loading branch information...
1 parent 7d6b2b8 commit ba8004419620db068e0e0bbf3e4ae6346e469d44 @ermau committed May 4, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 Windows Phone/StackMob.NET/StackMobClient.cs
@@ -716,6 +716,19 @@ public void LinkAccountToTwitter (string twitterToken, string twitterSecret, Act
failure);
}
+ public void GetTwitterUserInfo (Action<IDictionary<string, object>> success, Action<Exception> failure)
+ {
+ if (success == null)
+ throw new ArgumentNullException ("success");
+ if (failure == null)
+ throw new ArgumentNullException ("failure");
+
+ var req = GetRequest (this.userObjectName + "/getTwitterUserInfo", "GET");
+ Execute (req,
+ s => success (JsonSerializer.DeserializeFromStream<IDictionary<string, object>> (s)),
+ failure);
+ }
+
public void Tweet (string contents, Action success, Action<Exception> failure)
{
CheckArgument (contents, "contents");

0 comments on commit ba80044

Please sign in to comment.