/// <summary> /// Create user and update profile /// </summary> public static void CreateUserAndUpdateProfile() { // TODO: WHAT var createRequest = new CreateRequest( email: "*****@*****.**", externalAccountData: "SampleData", fieldValues: new List <FieldValueModelBase> { new TextFieldValueModel("companyName", "Sample Compa123123123221ny Name") }, firstName: "Dohn", lastName: "Jonny", password: "******", thirdPartyUniqueId: "123112" ); var user = ApiClient.CreateUser(createRequest); var updateRequest = new UpdateUserProfileFormValuesRequest( new List <FieldValueModelBase>(new FieldValueModelBase[] { new TextFieldValueModel("companyName", "Yet Another Company Name") }) ); ApiClient.UpdateUserProfileFormValues(user.Id, updateRequest); }
/// <summary> /// Update user profile by id 8009 and set first name "Yet Another Submitter" /// </summary> public static void UpdateProfile() { const int userId = 8009; var profileRequest = new UpdateUserProfileFormValuesRequest(new List <FieldValueModelBase> { new TextFieldValueModel("firstName", "Yet Another Submitter") }); ApiClient.UpdateUserProfileFormValues(userId, profileRequest); }