public void InvalidEmail() { var api = new WealthEngineApi(_apiKey, "SANDBOX", "v1"); var response = api.GetProfileByEmailAsync <BasicProfileMatch>("john@doe", "John", "Doe").Result; var responseFull = api.GetProfileByEmailAsync <FullProfileMatch>("john@doe", "John", "Doe").Result; }
public async Task<ActionResult> ByPhonePost(string firstName, string lastName, string phone) { var api = new WealthEngineApi(_apiKey, _environment, "v1"); var response = await api.GetProfileByPhoneAsync<FullProfileMatch>(phone, firstName, lastName); return View("ApiResult", null, JObject.Parse(response.RawContent).ToString(Formatting.Indented)); }
public void ShouldNotThrowAnError() { var api = new WealthEngineApi(_apiKey, "SANDBOX", "v1"); var response = api.GetProfileByEmailAsync <BasicProfileMatch>("*****@*****.**", "John", "Doe").Result; var responseFull = api.GetProfileByEmailAsync <FullProfileMatch>("*****@*****.**", "John", "Doe").Result; }
public async Task<ActionResult> ByAddressPost(string firstName, string lastName, string address1, string address2, string city, string state, string zip) { var api = new WealthEngineApi(_apiKey, _environment, "v1"); var response = await api.GetProfileByNameAndAddressAsync<FullProfileMatch>(firstName, lastName, address1, address2, city, state, zip); return View("ApiResult", null, JObject.Parse(response.RawContent).ToString(Formatting.Indented)); }