You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Get the path and filename to process from the user.
62
-
Console.WriteLine("Analyze an image:");
63
-
Console.Write(
64
-
"Enter the path to the image you wish to analyze: ");
65
-
stringimageFilePath=Console.ReadLine();
67
+
// Call the API
68
+
MakeAnalysisRequest(imageFilePath).Wait();
66
69
67
-
if (File.Exists(imageFilePath))
68
-
{
69
-
// Call the REST API method.
70
-
Console.WriteLine("\nWait for the results to appear.\n");
71
-
awaitMakeAnalysisRequest(imageFilePath);
72
-
}
73
-
else
74
-
{
75
-
Console.WriteLine("\nInvalid file path");
76
-
}
77
70
Console.WriteLine("\nPress Enter to exit...");
78
71
Console.ReadLine();
79
72
}
@@ -162,7 +155,7 @@ namespace CSHttpClientSample
162
155
163
156
## Examine the response
164
157
165
-
A successful response is returned in JSON. The sample application parses and displays a successful response in the console window, similar to the following example:
158
+
A successful response is returned in JSON (based on your own image used) in the console window, similar to the following example:
0 commit comments