public class BingImageSearchClient extends LiteHttpClient
Constructor and Description |
---|
BingImageSearchClient(String apikey)
Client for Bing Image Search
|
Modifier and Type | Method and Description |
---|---|
BingImageSearchResponse |
searchImage(BingImageSearchRequest searchReq)
Search images
|
addHeader, open, send, send, setUserAgent
public BingImageSearchClient(String apikey)
API document "https://www.microsoft.com/cognitive-services/en-us/bing-image-search-api"
Pricing "https://www.microsoft.com/cognitive-services/en-us/pricing"
How to create API Keys.
How to get key(s) for Bing Image Search API
Step1. Access https://portal.azure.com
Step2. Click "+" mark on the left top.
Step3. Enter "Cognitive Services APIs" in the search box.
Step4. Select "Cognitive Services APIs" and "Create" it.
Step5. Create window will be shown and you can select "Bing Search APIs"
in the "API type" selection box.
Step6. After entering required items, the resource will be created.
Step7. Select resource you created, and click "Keys" in the RESOURCE
MANAGEMENT category.
Step8. Check key for Bing Search API.
public BingImageSearchResponse searchImage(BingImageSearchRequest searchReq) throws BingImageSearchException
keyword
- BingImageSearchException
Exception
Copyright © 2017. All rights reserved.