Пример #1
0
 public ApiResponse <LoginResponse> RegistrationWithRecaptcha(string apikey, LoginRadiusAccountUpdateModel model)
 {
     Validate(new ArrayList {
         apikey
     });
     return(ConfigureAndExecute <LoginResponse>(RequestType.Authentication, HttpMethod.Post, "register/captcha",
                                                model.ConvertToJson()));
 }
Пример #2
0
        public ApiResponse <LoginRadiusUserIdentity> UpdateAccount(string uId, LoginRadiusAccountUpdateModel user)
        {
            Validate(new ArrayList {
                uId
            });
            var pattern      = new LoginRadiusResoucePath("{0}").ToString();
            var resourcePath = SDKUtil.FormatURIPath(pattern, new object[] { uId });

            return(ConfigureAndExecute <LoginRadiusUserIdentity>(RequestType.Identity, HttpMethod.Put, resourcePath,
                                                                 user.ConvertToJson()));
        }