File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 44
55public class HelloWorld {
66
7- static String host = "https://api.cognitive.microsoft.com" ;
7+ // Add your Bing Spell Check subscription key to your environment variables.
8+ static String host = System .getenv ("BING_SPELL_CHECK_ENDPOINT" );
89 static String path = "/bing/v7.0/spellcheck" ;
910
10- // NOTE: Replace this example key with a valid subscription key .
11- static String key = "ENTER KEY HERE" ;
11+ // Add your Bing Spell Check endpoint to your environment variables .
12+ static String key = System . getenv ( "BING_SPELL_CHECK_SUBSCRIPTION_KEY" ) ;
1213
1314 static String mkt = "en-US" ;
1415 static String mode = "proof" ;
@@ -46,4 +47,4 @@ public static void main(String[] args) {
4647 System .out .println (e );
4748 }
4849 }
49- }
50+ }
You can’t perform that action at this time.
0 commit comments