コード例 #1
0
ファイル: Reference.cs プロジェクト: angeles890/localApps
 /// <remarks/>
 public void GetUserInformationAsync(GetUserInformationRequest GetUserInformationRequest) {
     this.GetUserInformationAsync(GetUserInformationRequest, null);
 }
コード例 #2
0
ファイル: Reference.cs プロジェクト: angeles890/localApps
 /// <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
ファイル: AoConsole.cs プロジェクト: angeles890/localApps
        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;
        }