protected void Page_Load(object sender, EventArgs e) { RunAsync().Wait(); } static async Task RunAsync() { SearchAPIRequest req = new SearchAPIRequest(email: "clark.kent@example.com"); SearchAPIResponse resp = await req.SendAsync(); Console.Out.WriteLine(resp.Image.GetThumbnailUrl(200, 100, true, true)); Console.Out.WriteLine(resp.Name); Console.Out.WriteLine(resp.Education); Console.Out.WriteLine(resp.Username); Console.Out.WriteLine(resp.Address); var jobs = resp.Person.Jobs.Select(j => j.ToString()); Console.Out.WriteLine(String.Join(", ", jobs)); Console.Out.WriteLine(); var relationships = resp.Person.Relationships.Select(r => r.Names[0]); Console.Out.WriteLine(String.Join(", ", relationships)); Console.Out.WriteLine(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)