Learn how to write the code to parse the Face Detect API response. The API response is in JSON, and you choose to use the JArray type from the Newtonsoft library to process the resulting JSON.
- [Instructor] Now that we've set up our HTTP request…and we've been able to open our file,…let's submit this file to the API and see what we get back.…I've set a breakpoint on line 33.…And if I made no mistakes, no typos,…we should be able to reach that breakpoint.…I'll click the play button up here to run the application.…And remember it is a console application.…You had to set the debug properties…to specify your API key in file name…in the properties dialog for the project.…
Otherwise it will not appear as command line parameters.…Let's see if we did it right.…And we made it down here.…Let's see.…It sets getResponse.…Let me hover over each of these variables…or look at them in the locals window.…So from Debug, Windows.…You can use Watch, Autos, or Locals.…In each case it'll tell you whether you've got it done right…in terms of loading the command line parameters,…processing them, setting up the target,…the URL, and so forth.…
Okay, if all your variables are populated correctly…let's scroll down.…I'll press F10 or the Step Over button.…
Skill Level Intermediate
1. Problem 1: Pond Oreille
2. Problem 2: Where Am I?
3. Problem 3: Eight Queens
4. Problem 4: Accessing Peripherals
5. Problem 5: Facial Recognition
6. Problem 6: Real-Time Information Dashboard
Next steps2m 46s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.