You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**queries**|[**string[]**](../Model/string.md)| A list of queries to be live searched, analyzed, distilled, and structured. ||
59
-
|**lookback**|**int**| Number of days back to allow the websearch to look. Defaults to All time |[optional]|
61
+
|**lookback**|**int**| Number of hours back to allow the websearch to look. Defaults to All time |[optional]|
60
62
|**domains**|[**string[]**](../Model/string.md)| A list of domains to search. |[optional]|
63
+
|**strict**|**bool**| If true, the websearch will only return results that have a known publication date and are within the lookback period. |[optional][default to false]|
64
+
|**offset**|**int**| The number of results to offset for followup queries. |[optional]|
**queries** | **string[]** | The queries to use for the web search. This is a list of strings. |
8
+
**domains** | **string[]** | | [optional]
9
+
**strict** | **bool** | If true, the web search will only return results that have a known publication date and are within the lookback period. | [optional][default to true]
10
+
**lookback** | **int** | The number of hours back to accept for the web search. If not provided, no lookback will be applied. | [optional][default to 24]
11
+
12
+
[[Back to Model list]](../../README.md#models)[[Back to API list]](../../README.md#endpoints)[[Back to README]](../../README.md)
Copy file name to clipboardExpand all lines: lib/Api/WebsearchApi.php
+44-14Lines changed: 44 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -114,17 +114,19 @@ public function getConfig()
114
114
* Run a live websearch.
115
115
*
116
116
* @param string[] $queries A list of queries to be live searched, analyzed, distilled, and structured. (required)
117
-
* @param int $lookback Number of days back to allow the websearch to look. Defaults to All time (optional)
117
+
* @param int $lookback Number of hours back to allow the websearch to look. Defaults to All time (optional)
118
118
* @param string[] $domains A list of domains to search. (optional)
119
+
* @param bool $strict If true, the websearch will only return results that have a known publication date and are within the lookback period. (optional, default to false)
120
+
* @param int $offset The number of results to offset for followup queries. (optional)
119
121
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['liveWebSearch'] to see the possible values for this operation
120
122
*
121
123
* @throws \AskNews\ApiException on non-2xx response or if the response body is not in the expected format
@@ -134,17 +136,19 @@ public function liveWebSearch($queries, $lookback = null, $domains = null, strin
134
136
* Run a live websearch.
135
137
*
136
138
* @param string[] $queries A list of queries to be live searched, analyzed, distilled, and structured. (required)
137
-
* @param int $lookback Number of days back to allow the websearch to look. Defaults to All time (optional)
139
+
* @param int $lookback Number of hours back to allow the websearch to look. Defaults to All time (optional)
138
140
* @param string[] $domains A list of domains to search. (optional)
141
+
* @param bool $strict If true, the websearch will only return results that have a known publication date and are within the lookback period. (optional, default to false)
142
+
* @param int $offset The number of results to offset for followup queries. (optional)
139
143
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['liveWebSearch'] to see the possible values for this operation
140
144
*
141
145
* @throws \AskNews\ApiException on non-2xx response or if the response body is not in the expected format
142
146
* @throws \InvalidArgumentException
143
147
* @return array of \AskNews\Model\WebSearchResponse|\AskNews\Model\HTTPValidationError, HTTP status code, HTTP response headers (array of strings)
@@ -295,16 +299,18 @@ public function liveWebSearchWithHttpInfo($queries, $lookback = null, $domains =
295
299
* Run a live websearch.
296
300
*
297
301
* @param string[] $queries A list of queries to be live searched, analyzed, distilled, and structured. (required)
298
-
* @param int $lookback Number of days back to allow the websearch to look. Defaults to All time (optional)
302
+
* @param int $lookback Number of hours back to allow the websearch to look. Defaults to All time (optional)
299
303
* @param string[] $domains A list of domains to search. (optional)
304
+
* @param bool $strict If true, the websearch will only return results that have a known publication date and are within the lookback period. (optional, default to false)
305
+
* @param int $offset The number of results to offset for followup queries. (optional)
300
306
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['liveWebSearch'] to see the possible values for this operation
* @param string[] $queries A list of queries to be live searched, analyzed, distilled, and structured. (required)
321
-
* @param int $lookback Number of days back to allow the websearch to look. Defaults to All time (optional)
327
+
* @param int $lookback Number of hours back to allow the websearch to look. Defaults to All time (optional)
322
328
* @param string[] $domains A list of domains to search. (optional)
329
+
* @param bool $strict If true, the websearch will only return results that have a known publication date and are within the lookback period. (optional, default to false)
330
+
* @param int $offset The number of results to offset for followup queries. (optional)
323
331
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['liveWebSearch'] to see the possible values for this operation
* @param string[] $queries A list of queries to be live searched, analyzed, distilled, and structured. (required)
373
-
* @param int $lookback Number of days back to allow the websearch to look. Defaults to All time (optional)
381
+
* @param int $lookback Number of hours back to allow the websearch to look. Defaults to All time (optional)
374
382
* @param string[] $domains A list of domains to search. (optional)
383
+
* @param bool $strict If true, the websearch will only return results that have a known publication date and are within the lookback period. (optional, default to false)
384
+
* @param int $offset The number of results to offset for followup queries. (optional)
375
385
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['liveWebSearch'] to see the possible values for this operation
0 commit comments