File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 3636
3737public class UploadImage2 {
3838
39- static String endpoint = "https://api.cognitive.microsoft.com/bing/v7.0/images/visualsearch" ;
40- static String subscriptionKey = "<yoursubscriptionkeygoeshere" ;
39+ // Add your Bing Search V7 endpoint to your environment variables.
40+ static String endpoint = System .getenv ("BING_SEARCH_V7_ENDPOINT" ) + "/bing/v7.0/images/visualsearch" ;
41+ // Add your Bing Search V7 subscription key to your environment variables.
42+ static String subscriptionKey = System .getenv ("BING_SEARCH_V7_SUBSCRIPTION_KEY" );
4143 static String imagePath = "<pathtoyourimagetouploadgoeshere>" ;
4244
4345 /**
@@ -83,4 +85,4 @@ public static String prettify(String json_text) {
8385 return gson .toJson (json );
8486 }
8587
86- }
88+ }
You can’t perform that action at this time.
0 commit comments