| topic | sample | ||
|---|---|---|---|
| languages |
|
||
| products |
|
These samples are quickstarts that show how to use various Search APIs, such as Bing Web Search.
- Create an Azure resource for the service you'd like to try, for example a Bing Web Search resource.
- Add your key and endpoint from your resource to your environment variables with the variable names suggested in the sample.
- Download the Gson library and add to your project, or create a
libfolder and add it there.
Gson library: https://github.com/google/gson
- Copy/paste the sample into an IDE or text editor.
- Build/run in your IDE or from the command line, for example:
javac BingWebSearchv7.java -cp .;lib\*
java -cp .;lib\*BingWebSearchv7