Example #1
0
        private void getUserInfo(GooglePlusSocialUserInfo userInfo)
        {
            dynamic responseObj = WebClient.GetJson(GETUSERINFO_BASEURL, this, HTTPRequestMethod.GET,
                                                    headers: getAuthorizationHeader(userInfo.AccessToken)
                                                    );

            userInfo.LoginState  = SocialLoginState.LoggedIn;
            userInfo.ID          = responseObj[USERID_EMAIL_PARAMNAME];
            userInfo.AccessToken = userInfo.AccessToken;
            userInfo.Email       = responseObj[USERINFO_EMAIL_PARAMNAME];
            userInfo.UserName    = responseObj[USERINFO_NAME_PARAMNAME];
        }
Example #2
0
      private void getUserInfo(GooglePlusSocialUserInfo userInfo)
      {
        dynamic responseObj = WebClient.GetJsonAsDynamic(GETUSERINFO_BASEURL, this, HTTPRequestMethod.GET,
          headers: getAuthorizationHeader(userInfo.AccessToken)
        );

        userInfo.LoginState = SocialLoginState.LoggedIn;
        userInfo.ID = responseObj[USERID_EMAIL_PARAMNAME];
        userInfo.AccessToken = userInfo.AccessToken;
        userInfo.Email = responseObj[USERINFO_EMAIL_PARAMNAME];
        userInfo.UserName = responseObj[USERINFO_NAME_PARAMNAME];
      }