Skip to content

Commit

Permalink
release(0.2.19): Release php SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin committed Nov 1, 2024
1 parent 5a32b71 commit 8e69f7a
Show file tree
Hide file tree
Showing 254 changed files with 991 additions and 267 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ Class | Method | HTTP request | Description
- [FinanceResponseTimeSeries](docs/Model/FinanceResponseTimeSeries.md)
- [FinanceResponseTimeSeriesData](docs/Model/FinanceResponseTimeSeriesData.md)
- [ForecastResponse](docs/Model/ForecastResponse.md)
- [GeoCoordinate](docs/Model/GeoCoordinate.md)
- [GraphResponse](docs/Model/GraphResponse.md)
- [HTTPValidationError](docs/Model/HTTPValidationError.md)
- [IntraClusterStatistics](docs/Model/IntraClusterStatistics.md)
Expand Down Expand Up @@ -227,7 +228,6 @@ Class | Method | HTTP request | Description
- **stories**: Stories related operations
- **profile**: Profile related operations
- **reddit**: Reddit related operations
- **forecast**: Forecast related operations



Expand Down
6 changes: 4 additions & 2 deletions docs/Api/NewsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ try {
## `searchNews()`

```php
searchNews($query, $n_articles, $start_timestamp, $end_timestamp, $return_type, $historical, $method, $similarity_score_threshold, $offset, $categories, $doc_start_delimiter, $doc_end_delimiter, $provocative, $reporting_voice, $domain_url, $page_rank, $diversify_sources, $strategy, $hours_back, $string_guarantee, $string_guarantee_op, $reverse_string_guarantee, $entity_guarantee, $entity_guarantee_op, $return_graphs, $languages, $countries, $continents, $sentiment): \AskNews\Model\SearchResponse
searchNews($query, $n_articles, $start_timestamp, $end_timestamp, $return_type, $historical, $method, $similarity_score_threshold, $offset, $categories, $doc_start_delimiter, $doc_end_delimiter, $provocative, $reporting_voice, $domain_url, $page_rank, $diversify_sources, $strategy, $hours_back, $string_guarantee, $string_guarantee_op, $reverse_string_guarantee, $entity_guarantee, $entity_guarantee_op, $return_graphs, $return_geo, $languages, $countries, $continents, $sentiment): \AskNews\Model\SearchResponse
```

Search for enriched real-time news context
Expand Down Expand Up @@ -204,13 +204,14 @@ $reverse_string_guarantee = array(new \AskNews\Model\string[]()); // string[] |
$entity_guarantee = array(new \AskNews\Model\string[]()); // string[] | Entity guarantee to filter by. This is a list of strings, where each string includes entity type and entity value separated by a colon. The first element is the entity type and the second element is the entity value. For example ['Location:Paris', 'Person:John']
$entity_guarantee_op = 'OR'; // string | Operator to use for entity guarantee list.
$return_graphs = false; // bool | Return graphs for the articles. Only available to Analyst tier and above.
$return_geo = false; // bool | Return GeoCoordinates associated with locations discussed inside the articles. Only available to Analyst tier and above.
$languages = array(new \AskNews\Model\string[]()); // string[] | Languages to filter by. This is the two-letter 'set 1' of the ISO 639-1 standard. For example: English is 'en'.
$countries = array(new \AskNews\Model\string[]()); // string[] | Countries to filter by, this is the two-letter ISO country codeFor example: United States is 'US', France is 'FR', Sweden is 'SE'.
$continents = array(new \AskNews\Model\string[]()); // string[] | Continents to filter by.
$sentiment = 'sentiment_example'; // string | Sentiment to filter articles by.

try {
$result = $apiInstance->searchNews($query, $n_articles, $start_timestamp, $end_timestamp, $return_type, $historical, $method, $similarity_score_threshold, $offset, $categories, $doc_start_delimiter, $doc_end_delimiter, $provocative, $reporting_voice, $domain_url, $page_rank, $diversify_sources, $strategy, $hours_back, $string_guarantee, $string_guarantee_op, $reverse_string_guarantee, $entity_guarantee, $entity_guarantee_op, $return_graphs, $languages, $countries, $continents, $sentiment);
$result = $apiInstance->searchNews($query, $n_articles, $start_timestamp, $end_timestamp, $return_type, $historical, $method, $similarity_score_threshold, $offset, $categories, $doc_start_delimiter, $doc_end_delimiter, $provocative, $reporting_voice, $domain_url, $page_rank, $diversify_sources, $strategy, $hours_back, $string_guarantee, $string_guarantee_op, $reverse_string_guarantee, $entity_guarantee, $entity_guarantee_op, $return_graphs, $return_geo, $languages, $countries, $continents, $sentiment);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NewsApi->searchNews: ', $e->getMessage(), PHP_EOL;
Expand Down Expand Up @@ -246,6 +247,7 @@ try {
| **entity_guarantee** | [**string[]**](../Model/.md)| Entity guarantee to filter by. This is a list of strings, where each string includes entity type and entity value separated by a colon. The first element is the entity type and the second element is the entity value. For example ['Location:Paris', 'Person:John'] | [optional] |
| **entity_guarantee_op** | **string**| Operator to use for entity guarantee list. | [optional] [default to 'OR'] |
| **return_graphs** | **bool**| Return graphs for the articles. Only available to Analyst tier and above. | [optional] [default to false] |
| **return_geo** | **bool**| Return GeoCoordinates associated with locations discussed inside the articles. Only available to Analyst tier and above. | [optional] [default to false] |
| **languages** | [**string[]**](../Model/.md)| Languages to filter by. This is the two-letter 'set 1' of the ISO 639-1 standard. For example: English is 'en'. | [optional] |
| **countries** | [**string[]**](../Model/.md)| Countries to filter by, this is the two-letter ISO country codeFor example: United States is 'US', France is 'FR', Sweden is 'SE'. | [optional] |
| **continents** | [**string[]**](../Model/.md)| Continents to filter by. | [optional] |
Expand Down
1 change: 1 addition & 0 deletions docs/Model/Article.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ Name | Type | Description | Notes
**provocative** | **string** | | [optional] [default to 'unknown']
**reporting_voice** | [**\AskNews\Model\ReportingVoice1**](ReportingVoice1.md) | | [optional]
**entity_relation_graph** | [**\AskNews\Model\AsknewsApiSchemaV1CommonGraphRelationships**](AsknewsApiSchemaV1CommonGraphRelationships.md) | | [optional]
**geo_coordinates** | [**array<string,\AskNews\Model\GeoCoordinate>**](GeoCoordinate.md) | | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11 changes: 11 additions & 0 deletions docs/Model/GeoCoordinate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# # GeoCoordinate

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**latitude** | **float** | |
**longitude** | **float** | |
**metadata** | **object** | |

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
1 change: 1 addition & 0 deletions docs/Model/SearchResponseDictItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Name | Type | Description | Notes
**provocative** | **string** | | [optional] [default to 'unknown']
**reporting_voice** | [**\AskNews\Model\ReportingVoice1**](ReportingVoice1.md) | | [optional]
**entity_relation_graph** | [**\AskNews\Model\AsknewsApiSchemaV1CommonGraphRelationships**](AsknewsApiSchemaV1CommonGraphRelationships.md) | | [optional]
**geo_coordinates** | [**array<string,\AskNews\Model\GeoCoordinate>**](GeoCoordinate.md) | | [optional]
**as_string_key** | **string** | |

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
2 changes: 1 addition & 1 deletion lib/Api/AnalyticsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* AskNews API
*
* The version of the OpenAPI document: 0.13.4
* The version of the OpenAPI document: 0.14.6
* Generated by: https://openapi-generator.tech
* Generator version: 7.5.0
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/ChatApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* AskNews API
*
* The version of the OpenAPI document: 0.13.4
* The version of the OpenAPI document: 0.14.6
* Generated by: https://openapi-generator.tech
* Generator version: 7.5.0
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/ForecastApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* AskNews API
*
* The version of the OpenAPI document: 0.13.4
* The version of the OpenAPI document: 0.14.6
* Generated by: https://openapi-generator.tech
* Generator version: 7.5.0
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/GraphApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* AskNews API
*
* The version of the OpenAPI document: 0.13.4
* The version of the OpenAPI document: 0.14.6
* Generated by: https://openapi-generator.tech
* Generator version: 7.5.0
*/
Expand Down
Loading

0 comments on commit 8e69f7a

Please sign in to comment.