Skip to content

Commit 4f4e20d

Browse files
authored
Merge pull request #52 from wiazur/patch-12
Updated endpoint
2 parents 63ec331 + 8ffd64f commit 4f4e20d

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

dotnet/Face/Face1.0.cs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,9 @@ static class Program
1515
// *** Update or verify the following values. ***
1616
// **********************************************
1717

18-
// Replace the subscriptionKey string value with your valid subscription key.
19-
const string subscriptionKey = "Enter key here";
20-
21-
// Replace or verify the region.
22-
//
23-
// You must use the same region in your REST API call as you used to obtain your subscription keys.
24-
// For example, if you obtained your subscription keys from the westus region, replace
25-
// "westcentralus" in the URI below with "westus".
26-
//
27-
// NOTE: Free trial subscription keys are generated in the westcentralus region, so if you are using
28-
// a free trial subscription key, you should not need to change this region.
29-
const string uriBase = "https://westcentralus.api.cognitive.microsoft.com/face/v1.0/detect";
18+
// Add your Azure Face subscription key and endpoint to your environment variables
19+
const string subscriptionKey = Environment.GetEnvironmentVariable("FACE_SUBSCRIPTION_KEY");
20+
const string uriBase = Environment.GetEnvironmentVariable("FACE_ENDPOINT");
3021

3122

3223
static void Main()

0 commit comments

Comments
 (0)