/// <summary> /// Change a user's password. /// </summary> /// <param name="apiChangePasswordRequest">The change password request details.</param> /// <param name="callback"></param> /// <param name="state"></param> public virtual void BeginChangePassword(ApiChangePasswordRequestDTO apiChangePasswordRequest, ReliableAsyncCallback callback, object state) { string uriTemplate = "/changePassword"; _client.BeginRequest(RequestMethod.POST, "session", uriTemplate , new Dictionary<string, object> { { "apiChangePasswordRequest", apiChangePasswordRequest} },ContentType.JSON,ContentType.JSON, TimeSpan.FromMilliseconds(0), 30000,0 ,callback, state); }
/// <summary> /// Change a user's password. /// </summary> /// <param name="apiChangePasswordRequest">The change password request details.</param> /// <param name="callback"></param> /// <param name="state"></param> public virtual void BeginChangePassword(ApiChangePasswordRequestDTO apiChangePasswordRequest, ApiAsyncCallback<ApiChangePasswordResponseDTO> callback, object state) { _client.BeginRequest(callback, state, "session", "/changePassword", "POST", new Dictionary<string, object> { { "apiChangePasswordRequest", apiChangePasswordRequest} }, TimeSpan.FromMilliseconds(0), "data"); }
// *********************************** // ChangePassword // *********************************** /// <summary> /// Change a user's password. /// </summary> /// <param name="apiChangePasswordRequest">The change password request details.</param> public virtual ApiChangePasswordResponseDTO ChangePassword(ApiChangePasswordRequestDTO apiChangePasswordRequest) { string uriTemplate = "/changePassword"; return _client.Request<ApiChangePasswordResponseDTO>(RequestMethod.POST,"session", uriTemplate , new Dictionary<string, object> { { "apiChangePasswordRequest", apiChangePasswordRequest} },ContentType.JSON,ContentType.JSON, TimeSpan.FromMilliseconds(0),30000,0 ); }
// *********************************** // ChangePassword // *********************************** /// <summary> /// Change a user's password. /// </summary> /// <param name="apiChangePasswordRequest">The change password request details.</param> public virtual ApiChangePasswordResponseDTO ChangePassword(ApiChangePasswordRequestDTO apiChangePasswordRequest) { return _client.Request<ApiChangePasswordResponseDTO>("session", "/changePassword", "POST", new Dictionary<string, object> { { "apiChangePasswordRequest", apiChangePasswordRequest} }, TimeSpan.FromMilliseconds(0), "data"); }