We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c9501b + 8d4e917 commit 57376adCopy full SHA for 57376ad
dotnet/Search/BingEntitySearchv7.cs
@@ -6,13 +6,13 @@ namespace EntitySearchSample
6
{
7
class Program
8
9
- static string host = "https://api.cognitive.microsoft.com";
+ static string host = Environment.GetEnvironmentVariable("BING_ENTITY_SEARCH_ENDPOINT");
10
static string path = "/bing/v7.0/entities";
11
12
static string market = "en-US";
13
14
// NOTE: Replace this example key with a valid subscription key.
15
- static string key = "ENTER YOUR KEY HERE";
+ static string key = Environment.GetEnvironmentVariable("BING_ENTITY_SEARCH_SUBSCRIPTION_KEY");
16
17
static string query = "italian restaurant near me";
18
@@ -38,4 +38,4 @@ static void Main(string[] args)
38
}
39
40
41
-}
+}
0 commit comments