This commit is contained in:
unknown 2020-11-30 12:11:35 +02:00
Родитель 8c474cc66b
Коммит 3f591a5119
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -63,8 +63,8 @@ public class BingAutoSuggestSample {
//=============================================================
// Authenticate
// Add your Bing Autosuggest subscription key to your environment variables.
final String subscriptionKey = System.getenv("BING_AUTOSUGGEST_SUBSCRIPTION_KEY");
static String endpoint = System.getenv("BING_AUTOSUGGEST_ENDPOINT") + "/bing/v7.0/Suggestions";
String subscriptionKey = System.getenv("BING_AUTOSUGGEST_SUBSCRIPTION_KEY");
String endpoint = System.getenv("BING_AUTOSUGGEST_ENDPOINT") + "/bing/v7.0/Suggestions";
ServiceClientCredentials credentials = new ServiceClientCredentials() {
@Override
public void applyCredentialsFilter(Builder builder) {
@ -82,7 +82,7 @@ public class BingAutoSuggestSample {
}
);
}
}
};
AutoSuggestClientImpl client = new AutoSuggestClientImpl(endpoint,credentials);
runSample(client);
} catch (Exception e) {