Skip to content

Commit 4b83302

Browse files
authored
Merge pull request #99 from wiazur/patch-58
Updated endpoint and key
2 parents 06234c6 + b9898f8 commit 4b83302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotnet/InkRecognition/quickstart/recognizeInk.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ namespace ConsoleApp7
1313
class Program
1414
{
1515
// Replace the subscriptionKey string with your valid subscription key.
16-
const string subscriptionKey = "YOUR_SUBSCRIPTION_KEY";
16+
const string subscriptionKey = Environment.GetEnvironmentVariable("INK_RECOGNITION_SUBSCRIPTION_KEY");
1717

1818
// Replace the dataPath string with a path to the JSON formatted ink stroke data.
1919
const string dataPath = @"PATH_TO_INK_STROKE_DATA";
2020

2121
// URI information for ink recognition:
22-
const string endpoint = "https://api.cognitive.microsoft.com";
22+
const string endpoint = Environment.GetEnvironmentVariable("INK_RECOGNITION_ENDPOINT");
2323
const string inkRecognitionUrl = "/inkrecognizer/v1.0-preview/recognize";
2424

2525
static async Task<string> Request(string apiAddress, string endpoint, string subscriptionKey, string requestData)

0 commit comments

Comments
 (0)