예제 #1
0
파일: User.cs 프로젝트: a1lic/Mystique
 /// <summary>
 /// Get user information
 /// </summary>
 /// <param name="provider">credential provider</param>
 /// <param name="userId">target user id</param>
 public static TwitterUser GetUser(this CredentialProvider provider, long userId)
 {
     return(provider.GetUser("users/show.json", CredentialProvider.RequestMethod.GET, userId, null));
 }
예제 #2
0
파일: User.cs 프로젝트: a1lic/Mystique
 /// <summary>
 /// Get user by screen name
 /// </summary>
 /// <param name="provider">credential provider</param>
 /// <param name="screenName">target user screen name</param>
 public static TwitterUser GetUserByScreenName(this CredentialProvider provider, string screenName)
 {
     return(provider.GetUser("users/show.json", CredentialProvider.RequestMethod.GET, null, screenName));
 }