return _httpClient.sendPut(_baseUrl + userPath + "/" + username + "/password",
jsonObj.toString());
}
public ResponseWrapper updateUserInfo( String username, UserPayload payload )
throws APIConnectionException,APIRequestException
<BUG>{
Preconditions.checkArgument( !StringUtils.isTrimedEmpty(username), "username should not be empty");
Preconditions.checkArgument(!StringUtils.isLineBroken(username), "username must not contain line feed character. ");</BUG>
Preconditions.checkArgument( !(null == payload), "payload should not be null");
return _httpClient.sendPut(_baseUrl + userPath + "/" + username, payload.toString());

return _httpClient.sendPut(_baseUrl + userPath + "/" + username + "/password",
jsonObj.toString());
}
public ResponseWrapper updateUserInfo( String username, UserPayload payload )
throws APIConnectionException,APIRequestException
{
Preconditions.checkArgument(StringUtils.isUsernameValid(username), "The username is illegal, please check again");
Preconditions.checkArgument( !(null == payload), "payload should not be null");
return _httpClient.sendPut(_baseUrl + userPath + "/" + username, payload.toString());
