BingWebSearchService
Wisej.AI.Services.BingWebSearchService
Last updated
Wisej.AI.Services.BingWebSearchService
Last updated
Namespace: Wisej.AI.Services
Assembly: Wisej.AI (3.5.0.0)
Represents a web search service using Bing's API.
This class extends to provide specific implementation details for interacting with the Bing Web Search API.
Initializes a new instance of the class with the specified URL.
url
The base URL for the Bing Web Search API. Default is "https://api.bing.microsoft.com/v7.0/search".
: Gets the authentication header name specific to Bing's API. (Default: "api-key"
)
The authentication header for Bing's API is "Ocp-Apim-Subscription-Key".
Performs an asynchronous search using Bing's Web Search API with the specified query.
query
The search query string.
This method formats the query string, sends a GET request to the Bing API, and processes the response to extract and format the search results.
Represents a service for performing web searches.
Returns: . A task representing the asynchronous operation, with a result of the search response as a formatted string.