Skip to content

Commit 82e469d

Browse files
authored
Updated endpoint and key
Endpoints are not region-based anymore, but rather custom domain -based. Although regional endpoints will still work. Also, the authentication information is moving to a standard of getting it from environment variables with standard naming conventions.
1 parent 3b06248 commit 82e469d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/InkRecognition/quickstart/recognize-ink.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
};
1919

2020
function recognizeInk() {
21-
var SERVER_ADDRESS = "https://api.cognitive.microsoft.com";
21+
var SERVER_ADDRESS = process.env["INK_RECOGNITION_ENDPOINT"];
2222
var ENDPOINT_URL = SERVER_ADDRESS + "/inkrecognizer/v1.0-preview/recognize";
23-
var SUBSCRIPTION_KEY = "YOUR_SUBSCRIPTION_KEY";
23+
var SUBSCRIPTION_KEY = process.env["INK_RECOGNITION_SUBSCRIPTION_KEY"];
2424

2525

2626
if (SUBSCRIPTION_KEY === "") {
@@ -68,4 +68,4 @@ <h2>Result</h2>
6868
<input type='file' accept='text/plain' onchange='openFile(event)'><br>
6969
</body>
7070

71-
</html>
71+
</html>

0 commit comments

Comments
 (0)