public static void CreateUser(string token, string name, string email, string title, string password) { HipchatClient client = new HipchatClient(token); HipchatApiV2.Requests.CreateUserRequest request = new HipchatApiV2.Requests.CreateUserRequest(); request.Name = name; request.MentionName = name.Replace(" ", ""); request.Title = title; request.Email = email; request.Password = password; HipchatCreateUserResponse response = client.CreateUser(request); }
public UpdateUserTests() { HipchatApiConfig.AuthToken = TestsConfig.AuthToken; _client = new HipchatClient(); try { _client.GetUserInfo(UserEmail); } catch (Exception) { _client.CreateUser(new CreateUserRequest() { Email = UserEmail, Name = UserName }); } }