示例#1
0
 /// <remarks/>
 public void GetUserInformationAsync(GetUserInformationRequest GetUserInformationRequest) {
     this.GetUserInformationAsync(GetUserInformationRequest, null);
 }
示例#2
0
 /// <remarks/>
 public void GetUserInformationAsync(GetUserInformationRequest GetUserInformationRequest, object userState) {
     if ((this.GetUserInformationOperationCompleted == null)) {
         this.GetUserInformationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetUserInformationOperationCompleted);
     }
     this.InvokeAsync("GetUserInformation", new object[] {
                 GetUserInformationRequest}, this.GetUserInformationOperationCompleted, userState);
 }
示例#3
0
        static bool getUserInformation(string url, Credentials c, string userId)
        {
            Console.WriteLine("Get user information...");

            ArticulateOnline ao = new ArticulateOnline();
            ao.Url = url;
            GetUserInformationRequest request = new GetUserInformationRequest();
            request.Credentials = c;
            request.UserID = userId;
            GetUserInformationResponse response = ao.GetUserInformation(request);
            if (response.Success)
            {
                Console.WriteLine(String.Format("{0} {1} {2}", response.Profile.EmailAddress, response.Profile.FirstName, response.Profile.LastName));

                Console.WriteLine("Member of:");
                foreach (string groupID in response.MemberOfGroupIDs)
                {
                    Console.WriteLine("\t" + groupID);
                }
            }

            return response.Success;
        }