├── .gitignore ├── .gitlab-ci.yml ├── .openapi-generator-ignore ├── .openapi-generator ├── FILES └── VERSION ├── .travis.yml ├── LICENSE ├── README.md ├── aylien_news_api ├── __init__.py ├── api │ ├── __init__.py │ └── default_api.py ├── api_client.py ├── configuration.py ├── exceptions.py ├── models │ ├── __init__.py │ ├── aggregated_sentiment.py │ ├── author.py │ ├── autocomplete.py │ ├── autocompletes.py │ ├── category.py │ ├── category_links.py │ ├── category_taxonomy.py │ ├── cluster.py │ ├── clusters.py │ ├── coverages.py │ ├── deprecated_entities.py │ ├── deprecated_entity.py │ ├── deprecated_entity_surface_form.py │ ├── deprecated_related_stories.py │ ├── deprecated_stories.py │ ├── deprecated_story.py │ ├── duns_number.py │ ├── entities.py │ ├── entity.py │ ├── entity_in_text.py │ ├── entity_links.py │ ├── entity_mention.py │ ├── entity_mention_index.py │ ├── entity_sentiment.py │ ├── entity_surface_form.py │ ├── error.py │ ├── error_links.py │ ├── errors.py │ ├── external_ids.py │ ├── histogram_interval.py │ ├── histograms.py │ ├── location.py │ ├── logicals.py │ ├── media.py │ ├── media_format.py │ ├── media_type.py │ ├── nested_entity.py │ ├── parameter.py │ ├── query.py │ ├── rank.py │ ├── rankings.py │ ├── related_stories.py │ ├── representative_story.py │ ├── scope.py │ ├── scope_level.py │ ├── sentiment.py │ ├── sentiment_polarity.py │ ├── sentiments.py │ ├── share_count.py │ ├── share_counts.py │ ├── source.py │ ├── stories.py │ ├── story.py │ ├── story_cluster.py │ ├── story_links.py │ ├── story_translation.py │ ├── story_translations.py │ ├── story_translations_en.py │ ├── summary.py │ ├── time_series.py │ ├── time_series_list.py │ ├── trend.py │ ├── trends.py │ └── warning.py └── rest.py ├── docs ├── AggregatedSentiment.md ├── Author.md ├── Autocomplete.md ├── Autocompletes.md ├── Category.md ├── CategoryLinks.md ├── CategoryTaxonomy.md ├── Cluster.md ├── Clusters.md ├── Coverages.md ├── DefaultApi.md ├── DeprecatedEntities.md ├── DeprecatedEntity.md ├── DeprecatedEntitySurfaceForm.md ├── DeprecatedRelatedStories.md ├── DeprecatedStories.md ├── DeprecatedStory.md ├── DunsNumber.md ├── Entities.md ├── Entity.md ├── EntityInText.md ├── EntityLinks.md ├── EntityMention.md ├── EntityMentionIndex.md ├── EntitySentiment.md ├── EntitySurfaceForm.md ├── Error.md ├── ErrorLinks.md ├── Errors.md ├── ExternalIds.md ├── HistogramInterval.md ├── Histograms.md ├── Location.md ├── Logicals.md ├── Media.md ├── MediaFormat.md ├── MediaType.md ├── NestedEntity.md ├── Parameter.md ├── Query.md ├── Rank.md ├── Rankings.md ├── RelatedStories.md ├── RepresentativeStory.md ├── Scope.md ├── ScopeLevel.md ├── Sentiment.md ├── SentimentPolarity.md ├── Sentiments.md ├── ShareCount.md ├── ShareCounts.md ├── Source.md ├── Stories.md ├── Story.md ├── StoryCluster.md ├── StoryLinks.md ├── StoryTranslation.md ├── StoryTranslations.md ├── StoryTranslationsEn.md ├── Summary.md ├── TimeSeries.md ├── TimeSeriesList.md ├── Trend.md ├── Trends.md └── Warning.md ├── git_push.sh ├── requirements.txt ├── setup.cfg ├── setup.py ├── test-requirements.txt ├── test ├── __init__.py ├── test_aggregated_sentiment.py ├── test_author.py ├── test_autocomplete.py ├── test_autocompletes.py ├── test_category.py ├── test_category_links.py ├── test_category_taxonomy.py ├── test_cluster.py ├── test_clusters.py ├── test_coverages.py ├── test_default_api.py ├── test_deprecated_entities.py ├── test_deprecated_entity.py ├── test_deprecated_entity_surface_form.py ├── test_deprecated_related_stories.py ├── test_deprecated_stories.py ├── test_deprecated_story.py ├── test_duns_number.py ├── test_entities.py ├── test_entity.py ├── test_entity_in_text.py ├── test_entity_links.py ├── test_entity_mention.py ├── test_entity_mention_index.py ├── test_entity_sentiment.py ├── test_entity_surface_form.py ├── test_error.py ├── test_error_links.py ├── test_errors.py ├── test_external_ids.py ├── test_histogram_interval.py ├── test_histograms.py ├── test_location.py ├── test_logicals.py ├── test_media.py ├── test_media_format.py ├── test_media_type.py ├── test_nested_entity.py ├── test_parameter.py ├── test_query.py ├── test_rank.py ├── test_rankings.py ├── test_related_stories.py ├── test_representative_story.py ├── test_scope.py ├── test_scope_level.py ├── test_sentiment.py ├── test_sentiment_polarity.py ├── test_sentiments.py ├── test_share_count.py ├── test_share_counts.py ├── test_source.py ├── test_stories.py ├── test_story.py ├── test_story_cluster.py ├── test_story_links.py ├── test_story_translation.py ├── test_story_translations.py ├── test_story_translations_en.py ├── test_summary.py ├── test_time_series.py ├── test_time_series_list.py ├── test_trend.py ├── test_trends.py └── test_warning.py └── tox.ini /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | env/ 12 | build/ 13 | develop-eggs/ 14 | dist/ 15 | downloads/ 16 | eggs/ 17 | .eggs/ 18 | lib/ 19 | lib64/ 20 | parts/ 21 | sdist/ 22 | var/ 23 | *.egg-info/ 24 | .installed.cfg 25 | *.egg 26 | 27 | # PyInstaller 28 | # Usually these files are written by a python script from a template 29 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 30 | *.manifest 31 | *.spec 32 | 33 | # Installer logs 34 | pip-log.txt 35 | pip-delete-this-directory.txt 36 | 37 | # Unit test / coverage reports 38 | htmlcov/ 39 | .tox/ 40 | .coverage 41 | .coverage.* 42 | .cache 43 | nosetests.xml 44 | coverage.xml 45 | *,cover 46 | .hypothesis/ 47 | venv/ 48 | .venv/ 49 | .python-version 50 | .pytest_cache 51 | 52 | # Translations 53 | *.mo 54 | *.pot 55 | 56 | # Django stuff: 57 | *.log 58 | 59 | # Sphinx documentation 60 | docs/_build/ 61 | 62 | # PyBuilder 63 | target/ 64 | 65 | #Ipython Notebook 66 | .ipynb_checkpoints 67 | -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | # ref: https://docs.gitlab.com/ee/ci/README.html 2 | 3 | stages: 4 | - test 5 | 6 | .nosetest: 7 | stage: test 8 | script: 9 | - pip install -r requirements.txt 10 | - pip install -r test-requirements.txt 11 | - pytest --cov=aylien_news_api 12 | 13 | nosetest-2.7: 14 | extends: .nosetest 15 | image: python:2.7-alpine 16 | nosetest-3.3: 17 | extends: .nosetest 18 | image: python:3.3-alpine 19 | nosetest-3.4: 20 | extends: .nosetest 21 | image: python:3.4-alpine 22 | nosetest-3.5: 23 | extends: .nosetest 24 | image: python:3.5-alpine 25 | nosetest-3.6: 26 | extends: .nosetest 27 | image: python:3.6-alpine 28 | nosetest-3.7: 29 | extends: .nosetest 30 | image: python:3.7-alpine 31 | nosetest-3.8: 32 | extends: .nosetest 33 | image: python:3.8-alpine 34 | -------------------------------------------------------------------------------- /.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | 5.0.0-SNAPSHOT -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # ref: https://docs.travis-ci.com/user/languages/python 2 | language: python 3 | python: 4 | - "2.7" 5 | - "3.2" 6 | - "3.3" 7 | - "3.4" 8 | - "3.5" 9 | - "3.6" 10 | - "3.7" 11 | - "3.8" 12 | # command to install dependencies 13 | install: 14 | - "pip install -r requirements.txt" 15 | - "pip install -r test-requirements.txt" 16 | # command to run tests 17 | script: pytest --cov=aylien_news_api 18 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2019 Aylien, Inc. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /aylien_news_api/api/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | 3 | # flake8: noqa 4 | 5 | # import apis into api package 6 | from aylien_news_api.api.default_api import DefaultApi 7 | -------------------------------------------------------------------------------- /aylien_news_api/models/__init__.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | # flake8: noqa 4 | """ 5 | AYLIEN News API 6 | 7 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 8 | 9 | The version of the OpenAPI document: 5.2.3 10 | Contact: support@aylien.com 11 | Generated by: https://openapi-generator.tech 12 | """ 13 | 14 | 15 | from __future__ import absolute_import 16 | 17 | # import models into model package 18 | from aylien_news_api.models.aggregated_sentiment import AggregatedSentiment 19 | from aylien_news_api.models.author import Author 20 | from aylien_news_api.models.autocomplete import Autocomplete 21 | from aylien_news_api.models.autocompletes import Autocompletes 22 | from aylien_news_api.models.category import Category 23 | from aylien_news_api.models.category_links import CategoryLinks 24 | from aylien_news_api.models.category_taxonomy import CategoryTaxonomy 25 | from aylien_news_api.models.cluster import Cluster 26 | from aylien_news_api.models.clusters import Clusters 27 | from aylien_news_api.models.duns_number import DunsNumber 28 | from aylien_news_api.models.entity import Entity 29 | from aylien_news_api.models.entity_in_text import EntityInText 30 | from aylien_news_api.models.entity_links import EntityLinks 31 | from aylien_news_api.models.entity_mention import EntityMention 32 | from aylien_news_api.models.entity_mention_index import EntityMentionIndex 33 | from aylien_news_api.models.entity_sentiment import EntitySentiment 34 | from aylien_news_api.models.entity_surface_form import EntitySurfaceForm 35 | from aylien_news_api.models.error import Error 36 | from aylien_news_api.models.error_links import ErrorLinks 37 | from aylien_news_api.models.errors import Errors 38 | from aylien_news_api.models.external_ids import ExternalIds 39 | from aylien_news_api.models.histogram_interval import HistogramInterval 40 | from aylien_news_api.models.histograms import Histograms 41 | from aylien_news_api.models.location import Location 42 | from aylien_news_api.models.logicals import Logicals 43 | from aylien_news_api.models.media import Media 44 | from aylien_news_api.models.media_format import MediaFormat 45 | from aylien_news_api.models.media_type import MediaType 46 | from aylien_news_api.models.nested_entity import NestedEntity 47 | from aylien_news_api.models.parameter import Parameter 48 | from aylien_news_api.models.query import Query 49 | from aylien_news_api.models.rank import Rank 50 | from aylien_news_api.models.rankings import Rankings 51 | from aylien_news_api.models.related_stories import RelatedStories 52 | from aylien_news_api.models.representative_story import RepresentativeStory 53 | from aylien_news_api.models.scope import Scope 54 | from aylien_news_api.models.scope_level import ScopeLevel 55 | from aylien_news_api.models.sentiment import Sentiment 56 | from aylien_news_api.models.sentiment_polarity import SentimentPolarity 57 | from aylien_news_api.models.sentiments import Sentiments 58 | from aylien_news_api.models.share_count import ShareCount 59 | from aylien_news_api.models.share_counts import ShareCounts 60 | from aylien_news_api.models.source import Source 61 | from aylien_news_api.models.stories import Stories 62 | from aylien_news_api.models.story import Story 63 | from aylien_news_api.models.story_cluster import StoryCluster 64 | from aylien_news_api.models.story_links import StoryLinks 65 | from aylien_news_api.models.story_translation import StoryTranslation 66 | from aylien_news_api.models.story_translations import StoryTranslations 67 | from aylien_news_api.models.summary import Summary 68 | from aylien_news_api.models.time_series import TimeSeries 69 | from aylien_news_api.models.time_series_list import TimeSeriesList 70 | from aylien_news_api.models.trend import Trend 71 | from aylien_news_api.models.trends import Trends 72 | from aylien_news_api.models.warning import Warning 73 | -------------------------------------------------------------------------------- /aylien_news_api/models/autocompletes.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from aylien_news_api.configuration import Configuration 20 | 21 | 22 | class Autocompletes(object): 23 | """NOTE: This class is auto generated by OpenAPI Generator. 24 | Ref: https://openapi-generator.tech 25 | 26 | Do not edit the class manually. 27 | """ 28 | 29 | """ 30 | Attributes: 31 | openapi_types (dict): The key is attribute name 32 | and the value is attribute type. 33 | attribute_map (dict): The key is attribute name 34 | and the value is json key in definition. 35 | """ 36 | openapi_types = { 37 | 'autocompletes': 'list[Autocomplete]' 38 | } 39 | 40 | attribute_map = { 41 | 'autocompletes': 'autocompletes' 42 | } 43 | 44 | def __init__(self, autocompletes=None, local_vars_configuration=None): # noqa: E501 45 | """Autocompletes - a model defined in OpenAPI""" # noqa: E501 46 | if local_vars_configuration is None: 47 | local_vars_configuration = Configuration() 48 | self.local_vars_configuration = local_vars_configuration 49 | 50 | self._autocompletes = None 51 | self.discriminator = None 52 | 53 | if autocompletes is not None: 54 | self.autocompletes = autocompletes 55 | 56 | @property 57 | def autocompletes(self): 58 | """Gets the autocompletes of this Autocompletes. # noqa: E501 59 | 60 | An array of autocompletes # noqa: E501 61 | 62 | :return: The autocompletes of this Autocompletes. # noqa: E501 63 | :rtype: list[Autocomplete] 64 | """ 65 | return self._autocompletes 66 | 67 | @autocompletes.setter 68 | def autocompletes(self, autocompletes): 69 | """Sets the autocompletes of this Autocompletes. 70 | 71 | An array of autocompletes # noqa: E501 72 | 73 | :param autocompletes: The autocompletes of this Autocompletes. # noqa: E501 74 | :type autocompletes: list[Autocomplete] 75 | """ 76 | 77 | self._autocompletes = autocompletes 78 | 79 | def to_dict(self): 80 | """Returns the model properties as a dict""" 81 | result = {} 82 | 83 | for attr, _ in six.iteritems(self.openapi_types): 84 | value = getattr(self, attr) 85 | if isinstance(value, list): 86 | result[attr] = list(map( 87 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 88 | value 89 | )) 90 | elif hasattr(value, "to_dict"): 91 | result[attr] = value.to_dict() 92 | elif isinstance(value, dict): 93 | result[attr] = dict(map( 94 | lambda item: (item[0], item[1].to_dict()) 95 | if hasattr(item[1], "to_dict") else item, 96 | value.items() 97 | )) 98 | else: 99 | result[attr] = value 100 | 101 | return result 102 | 103 | def to_str(self): 104 | """Returns the string representation of the model""" 105 | return pprint.pformat(self.to_dict()) 106 | 107 | def __repr__(self): 108 | """For `print` and `pprint`""" 109 | return self.to_str() 110 | 111 | def __eq__(self, other): 112 | """Returns true if both objects are equal""" 113 | if not isinstance(other, Autocompletes): 114 | return False 115 | 116 | return self.to_dict() == other.to_dict() 117 | 118 | def __ne__(self, other): 119 | """Returns true if both objects are not equal""" 120 | if not isinstance(other, Autocompletes): 121 | return True 122 | 123 | return self.to_dict() != other.to_dict() 124 | -------------------------------------------------------------------------------- /aylien_news_api/models/category_taxonomy.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from aylien_news_api.configuration import Configuration 20 | 21 | 22 | class CategoryTaxonomy(object): 23 | """NOTE: This class is auto generated by OpenAPI Generator. 24 | Ref: https://openapi-generator.tech 25 | 26 | Do not edit the class manually. 27 | """ 28 | 29 | """ 30 | allowed enum values 31 | """ 32 | IAB_QAG = "iab-qag" 33 | IPTC_SUBJECTCODE = "iptc-subjectcode" 34 | AYLIEN = "aylien" 35 | 36 | allowable_values = [IAB_QAG, IPTC_SUBJECTCODE, AYLIEN] # noqa: E501 37 | 38 | """ 39 | Attributes: 40 | openapi_types (dict): The key is attribute name 41 | and the value is attribute type. 42 | attribute_map (dict): The key is attribute name 43 | and the value is json key in definition. 44 | """ 45 | openapi_types = { 46 | } 47 | 48 | attribute_map = { 49 | } 50 | 51 | def __init__(self, local_vars_configuration=None): # noqa: E501 52 | """CategoryTaxonomy - a model defined in OpenAPI""" # noqa: E501 53 | if local_vars_configuration is None: 54 | local_vars_configuration = Configuration() 55 | self.local_vars_configuration = local_vars_configuration 56 | self.discriminator = None 57 | 58 | def to_dict(self): 59 | """Returns the model properties as a dict""" 60 | result = {} 61 | 62 | for attr, _ in six.iteritems(self.openapi_types): 63 | value = getattr(self, attr) 64 | if isinstance(value, list): 65 | result[attr] = list(map( 66 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 67 | value 68 | )) 69 | elif hasattr(value, "to_dict"): 70 | result[attr] = value.to_dict() 71 | elif isinstance(value, dict): 72 | result[attr] = dict(map( 73 | lambda item: (item[0], item[1].to_dict()) 74 | if hasattr(item[1], "to_dict") else item, 75 | value.items() 76 | )) 77 | else: 78 | result[attr] = value 79 | 80 | return result 81 | 82 | def to_str(self): 83 | """Returns the string representation of the model""" 84 | return pprint.pformat(self.to_dict()) 85 | 86 | def __repr__(self): 87 | """For `print` and `pprint`""" 88 | return self.to_str() 89 | 90 | def __eq__(self, other): 91 | """Returns true if both objects are equal""" 92 | if not isinstance(other, CategoryTaxonomy): 93 | return False 94 | 95 | return self.to_dict() == other.to_dict() 96 | 97 | def __ne__(self, other): 98 | """Returns true if both objects are not equal""" 99 | if not isinstance(other, CategoryTaxonomy): 100 | return True 101 | 102 | return self.to_dict() != other.to_dict() 103 | -------------------------------------------------------------------------------- /aylien_news_api/models/duns_number.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from aylien_news_api.configuration import Configuration 20 | 21 | 22 | class DunsNumber(object): 23 | """NOTE: This class is auto generated by OpenAPI Generator. 24 | Ref: https://openapi-generator.tech 25 | 26 | Do not edit the class manually. 27 | """ 28 | 29 | """ 30 | Attributes: 31 | openapi_types (dict): The key is attribute name 32 | and the value is attribute type. 33 | attribute_map (dict): The key is attribute name 34 | and the value is json key in definition. 35 | """ 36 | openapi_types = { 37 | 'id': 'str' 38 | } 39 | 40 | attribute_map = { 41 | 'id': 'id' 42 | } 43 | 44 | def __init__(self, id=None, local_vars_configuration=None): # noqa: E501 45 | """DunsNumber - a model defined in OpenAPI""" # noqa: E501 46 | if local_vars_configuration is None: 47 | local_vars_configuration = Configuration() 48 | self.local_vars_configuration = local_vars_configuration 49 | 50 | self._id = None 51 | self.discriminator = None 52 | 53 | if id is not None: 54 | self.id = id 55 | 56 | @property 57 | def id(self): 58 | """Gets the id of this DunsNumber. # noqa: E501 59 | 60 | 61 | :return: The id of this DunsNumber. # noqa: E501 62 | :rtype: str 63 | """ 64 | return self._id 65 | 66 | @id.setter 67 | def id(self, id): 68 | """Sets the id of this DunsNumber. 69 | 70 | 71 | :param id: The id of this DunsNumber. # noqa: E501 72 | :type id: str 73 | """ 74 | 75 | self._id = id 76 | 77 | def to_dict(self): 78 | """Returns the model properties as a dict""" 79 | result = {} 80 | 81 | for attr, _ in six.iteritems(self.openapi_types): 82 | value = getattr(self, attr) 83 | if isinstance(value, list): 84 | result[attr] = list(map( 85 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 86 | value 87 | )) 88 | elif hasattr(value, "to_dict"): 89 | result[attr] = value.to_dict() 90 | elif isinstance(value, dict): 91 | result[attr] = dict(map( 92 | lambda item: (item[0], item[1].to_dict()) 93 | if hasattr(item[1], "to_dict") else item, 94 | value.items() 95 | )) 96 | else: 97 | result[attr] = value 98 | 99 | return result 100 | 101 | def to_str(self): 102 | """Returns the string representation of the model""" 103 | return pprint.pformat(self.to_dict()) 104 | 105 | def __repr__(self): 106 | """For `print` and `pprint`""" 107 | return self.to_str() 108 | 109 | def __eq__(self, other): 110 | """Returns true if both objects are equal""" 111 | if not isinstance(other, DunsNumber): 112 | return False 113 | 114 | return self.to_dict() == other.to_dict() 115 | 116 | def __ne__(self, other): 117 | """Returns true if both objects are not equal""" 118 | if not isinstance(other, DunsNumber): 119 | return True 120 | 121 | return self.to_dict() != other.to_dict() 122 | -------------------------------------------------------------------------------- /aylien_news_api/models/errors.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from aylien_news_api.configuration import Configuration 20 | 21 | 22 | class Errors(object): 23 | """NOTE: This class is auto generated by OpenAPI Generator. 24 | Ref: https://openapi-generator.tech 25 | 26 | Do not edit the class manually. 27 | """ 28 | 29 | """ 30 | Attributes: 31 | openapi_types (dict): The key is attribute name 32 | and the value is attribute type. 33 | attribute_map (dict): The key is attribute name 34 | and the value is json key in definition. 35 | """ 36 | openapi_types = { 37 | 'errors': 'list[Error]' 38 | } 39 | 40 | attribute_map = { 41 | 'errors': 'errors' 42 | } 43 | 44 | def __init__(self, errors=None, local_vars_configuration=None): # noqa: E501 45 | """Errors - a model defined in OpenAPI""" # noqa: E501 46 | if local_vars_configuration is None: 47 | local_vars_configuration = Configuration() 48 | self.local_vars_configuration = local_vars_configuration 49 | 50 | self._errors = None 51 | self.discriminator = None 52 | 53 | if errors is not None: 54 | self.errors = errors 55 | 56 | @property 57 | def errors(self): 58 | """Gets the errors of this Errors. # noqa: E501 59 | 60 | 61 | :return: The errors of this Errors. # noqa: E501 62 | :rtype: list[Error] 63 | """ 64 | return self._errors 65 | 66 | @errors.setter 67 | def errors(self, errors): 68 | """Sets the errors of this Errors. 69 | 70 | 71 | :param errors: The errors of this Errors. # noqa: E501 72 | :type errors: list[Error] 73 | """ 74 | 75 | self._errors = errors 76 | 77 | def to_dict(self): 78 | """Returns the model properties as a dict""" 79 | result = {} 80 | 81 | for attr, _ in six.iteritems(self.openapi_types): 82 | value = getattr(self, attr) 83 | if isinstance(value, list): 84 | result[attr] = list(map( 85 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 86 | value 87 | )) 88 | elif hasattr(value, "to_dict"): 89 | result[attr] = value.to_dict() 90 | elif isinstance(value, dict): 91 | result[attr] = dict(map( 92 | lambda item: (item[0], item[1].to_dict()) 93 | if hasattr(item[1], "to_dict") else item, 94 | value.items() 95 | )) 96 | else: 97 | result[attr] = value 98 | 99 | return result 100 | 101 | def to_str(self): 102 | """Returns the string representation of the model""" 103 | return pprint.pformat(self.to_dict()) 104 | 105 | def __repr__(self): 106 | """For `print` and `pprint`""" 107 | return self.to_str() 108 | 109 | def __eq__(self, other): 110 | """Returns true if both objects are equal""" 111 | if not isinstance(other, Errors): 112 | return False 113 | 114 | return self.to_dict() == other.to_dict() 115 | 116 | def __ne__(self, other): 117 | """Returns true if both objects are not equal""" 118 | if not isinstance(other, Errors): 119 | return True 120 | 121 | return self.to_dict() != other.to_dict() 122 | -------------------------------------------------------------------------------- /aylien_news_api/models/external_ids.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from aylien_news_api.configuration import Configuration 20 | 21 | 22 | class ExternalIds(object): 23 | """NOTE: This class is auto generated by OpenAPI Generator. 24 | Ref: https://openapi-generator.tech 25 | 26 | Do not edit the class manually. 27 | """ 28 | 29 | """ 30 | Attributes: 31 | openapi_types (dict): The key is attribute name 32 | and the value is attribute type. 33 | attribute_map (dict): The key is attribute name 34 | and the value is json key in definition. 35 | """ 36 | openapi_types = { 37 | 'duns': 'list[DunsNumber]' 38 | } 39 | 40 | attribute_map = { 41 | 'duns': 'duns' 42 | } 43 | 44 | def __init__(self, duns=None, local_vars_configuration=None): # noqa: E501 45 | """ExternalIds - a model defined in OpenAPI""" # noqa: E501 46 | if local_vars_configuration is None: 47 | local_vars_configuration = Configuration() 48 | self.local_vars_configuration = local_vars_configuration 49 | 50 | self._duns = None 51 | self.discriminator = None 52 | 53 | if duns is not None: 54 | self.duns = duns 55 | 56 | @property 57 | def duns(self): 58 | """Gets the duns of this ExternalIds. # noqa: E501 59 | 60 | DUNS number(s) of the entity # noqa: E501 61 | 62 | :return: The duns of this ExternalIds. # noqa: E501 63 | :rtype: list[DunsNumber] 64 | """ 65 | return self._duns 66 | 67 | @duns.setter 68 | def duns(self, duns): 69 | """Sets the duns of this ExternalIds. 70 | 71 | DUNS number(s) of the entity # noqa: E501 72 | 73 | :param duns: The duns of this ExternalIds. # noqa: E501 74 | :type duns: list[DunsNumber] 75 | """ 76 | 77 | self._duns = duns 78 | 79 | def to_dict(self): 80 | """Returns the model properties as a dict""" 81 | result = {} 82 | 83 | for attr, _ in six.iteritems(self.openapi_types): 84 | value = getattr(self, attr) 85 | if isinstance(value, list): 86 | result[attr] = list(map( 87 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 88 | value 89 | )) 90 | elif hasattr(value, "to_dict"): 91 | result[attr] = value.to_dict() 92 | elif isinstance(value, dict): 93 | result[attr] = dict(map( 94 | lambda item: (item[0], item[1].to_dict()) 95 | if hasattr(item[1], "to_dict") else item, 96 | value.items() 97 | )) 98 | else: 99 | result[attr] = value 100 | 101 | return result 102 | 103 | def to_str(self): 104 | """Returns the string representation of the model""" 105 | return pprint.pformat(self.to_dict()) 106 | 107 | def __repr__(self): 108 | """For `print` and `pprint`""" 109 | return self.to_str() 110 | 111 | def __eq__(self, other): 112 | """Returns true if both objects are equal""" 113 | if not isinstance(other, ExternalIds): 114 | return False 115 | 116 | return self.to_dict() == other.to_dict() 117 | 118 | def __ne__(self, other): 119 | """Returns true if both objects are not equal""" 120 | if not isinstance(other, ExternalIds): 121 | return True 122 | 123 | return self.to_dict() != other.to_dict() 124 | -------------------------------------------------------------------------------- /aylien_news_api/models/media_format.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from aylien_news_api.configuration import Configuration 20 | 21 | 22 | class MediaFormat(object): 23 | """NOTE: This class is auto generated by OpenAPI Generator. 24 | Ref: https://openapi-generator.tech 25 | 26 | Do not edit the class manually. 27 | """ 28 | 29 | """ 30 | allowed enum values 31 | """ 32 | BMP = "BMP" 33 | GIF = "GIF" 34 | JPEG = "JPEG" 35 | PNG = "PNG" 36 | TIFF = "TIFF" 37 | PSD = "PSD" 38 | ICO = "ICO" 39 | CUR = "CUR" 40 | WEBP = "WEBP" 41 | SVG = "SVG" 42 | 43 | allowable_values = [BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG] # noqa: E501 44 | 45 | """ 46 | Attributes: 47 | openapi_types (dict): The key is attribute name 48 | and the value is attribute type. 49 | attribute_map (dict): The key is attribute name 50 | and the value is json key in definition. 51 | """ 52 | openapi_types = { 53 | } 54 | 55 | attribute_map = { 56 | } 57 | 58 | def __init__(self, local_vars_configuration=None): # noqa: E501 59 | """MediaFormat - a model defined in OpenAPI""" # noqa: E501 60 | if local_vars_configuration is None: 61 | local_vars_configuration = Configuration() 62 | self.local_vars_configuration = local_vars_configuration 63 | self.discriminator = None 64 | 65 | def to_dict(self): 66 | """Returns the model properties as a dict""" 67 | result = {} 68 | 69 | for attr, _ in six.iteritems(self.openapi_types): 70 | value = getattr(self, attr) 71 | if isinstance(value, list): 72 | result[attr] = list(map( 73 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 74 | value 75 | )) 76 | elif hasattr(value, "to_dict"): 77 | result[attr] = value.to_dict() 78 | elif isinstance(value, dict): 79 | result[attr] = dict(map( 80 | lambda item: (item[0], item[1].to_dict()) 81 | if hasattr(item[1], "to_dict") else item, 82 | value.items() 83 | )) 84 | else: 85 | result[attr] = value 86 | 87 | return result 88 | 89 | def to_str(self): 90 | """Returns the string representation of the model""" 91 | return pprint.pformat(self.to_dict()) 92 | 93 | def __repr__(self): 94 | """For `print` and `pprint`""" 95 | return self.to_str() 96 | 97 | def __eq__(self, other): 98 | """Returns true if both objects are equal""" 99 | if not isinstance(other, MediaFormat): 100 | return False 101 | 102 | return self.to_dict() == other.to_dict() 103 | 104 | def __ne__(self, other): 105 | """Returns true if both objects are not equal""" 106 | if not isinstance(other, MediaFormat): 107 | return True 108 | 109 | return self.to_dict() != other.to_dict() 110 | -------------------------------------------------------------------------------- /aylien_news_api/models/media_type.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from aylien_news_api.configuration import Configuration 20 | 21 | 22 | class MediaType(object): 23 | """NOTE: This class is auto generated by OpenAPI Generator. 24 | Ref: https://openapi-generator.tech 25 | 26 | Do not edit the class manually. 27 | """ 28 | 29 | """ 30 | allowed enum values 31 | """ 32 | IMAGE = "image" 33 | VIDEO = "video" 34 | 35 | allowable_values = [IMAGE, VIDEO] # noqa: E501 36 | 37 | """ 38 | Attributes: 39 | openapi_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | openapi_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self, local_vars_configuration=None): # noqa: E501 51 | """MediaType - a model defined in OpenAPI""" # noqa: E501 52 | if local_vars_configuration is None: 53 | local_vars_configuration = Configuration() 54 | self.local_vars_configuration = local_vars_configuration 55 | self.discriminator = None 56 | 57 | def to_dict(self): 58 | """Returns the model properties as a dict""" 59 | result = {} 60 | 61 | for attr, _ in six.iteritems(self.openapi_types): 62 | value = getattr(self, attr) 63 | if isinstance(value, list): 64 | result[attr] = list(map( 65 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 66 | value 67 | )) 68 | elif hasattr(value, "to_dict"): 69 | result[attr] = value.to_dict() 70 | elif isinstance(value, dict): 71 | result[attr] = dict(map( 72 | lambda item: (item[0], item[1].to_dict()) 73 | if hasattr(item[1], "to_dict") else item, 74 | value.items() 75 | )) 76 | else: 77 | result[attr] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, MediaType): 92 | return False 93 | 94 | return self.to_dict() == other.to_dict() 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | if not isinstance(other, MediaType): 99 | return True 100 | 101 | return self.to_dict() != other.to_dict() 102 | -------------------------------------------------------------------------------- /aylien_news_api/models/rankings.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from aylien_news_api.configuration import Configuration 20 | 21 | 22 | class Rankings(object): 23 | """NOTE: This class is auto generated by OpenAPI Generator. 24 | Ref: https://openapi-generator.tech 25 | 26 | Do not edit the class manually. 27 | """ 28 | 29 | """ 30 | Attributes: 31 | openapi_types (dict): The key is attribute name 32 | and the value is attribute type. 33 | attribute_map (dict): The key is attribute name 34 | and the value is json key in definition. 35 | """ 36 | openapi_types = { 37 | 'alexa': 'list[Rank]' 38 | } 39 | 40 | attribute_map = { 41 | 'alexa': 'alexa' 42 | } 43 | 44 | def __init__(self, alexa=None, local_vars_configuration=None): # noqa: E501 45 | """Rankings - a model defined in OpenAPI""" # noqa: E501 46 | if local_vars_configuration is None: 47 | local_vars_configuration = Configuration() 48 | self.local_vars_configuration = local_vars_configuration 49 | 50 | self._alexa = None 51 | self.discriminator = None 52 | 53 | if alexa is not None: 54 | self.alexa = alexa 55 | 56 | @property 57 | def alexa(self): 58 | """Gets the alexa of this Rankings. # noqa: E501 59 | 60 | 61 | :return: The alexa of this Rankings. # noqa: E501 62 | :rtype: list[Rank] 63 | """ 64 | return self._alexa 65 | 66 | @alexa.setter 67 | def alexa(self, alexa): 68 | """Sets the alexa of this Rankings. 69 | 70 | 71 | :param alexa: The alexa of this Rankings. # noqa: E501 72 | :type alexa: list[Rank] 73 | """ 74 | 75 | self._alexa = alexa 76 | 77 | def to_dict(self): 78 | """Returns the model properties as a dict""" 79 | result = {} 80 | 81 | for attr, _ in six.iteritems(self.openapi_types): 82 | value = getattr(self, attr) 83 | if isinstance(value, list): 84 | result[attr] = list(map( 85 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 86 | value 87 | )) 88 | elif hasattr(value, "to_dict"): 89 | result[attr] = value.to_dict() 90 | elif isinstance(value, dict): 91 | result[attr] = dict(map( 92 | lambda item: (item[0], item[1].to_dict()) 93 | if hasattr(item[1], "to_dict") else item, 94 | value.items() 95 | )) 96 | else: 97 | result[attr] = value 98 | 99 | return result 100 | 101 | def to_str(self): 102 | """Returns the string representation of the model""" 103 | return pprint.pformat(self.to_dict()) 104 | 105 | def __repr__(self): 106 | """For `print` and `pprint`""" 107 | return self.to_str() 108 | 109 | def __eq__(self, other): 110 | """Returns true if both objects are equal""" 111 | if not isinstance(other, Rankings): 112 | return False 113 | 114 | return self.to_dict() == other.to_dict() 115 | 116 | def __ne__(self, other): 117 | """Returns true if both objects are not equal""" 118 | if not isinstance(other, Rankings): 119 | return True 120 | 121 | return self.to_dict() != other.to_dict() 122 | -------------------------------------------------------------------------------- /aylien_news_api/models/scope_level.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from aylien_news_api.configuration import Configuration 20 | 21 | 22 | class ScopeLevel(object): 23 | """NOTE: This class is auto generated by OpenAPI Generator. 24 | Ref: https://openapi-generator.tech 25 | 26 | Do not edit the class manually. 27 | """ 28 | 29 | """ 30 | allowed enum values 31 | """ 32 | INTERNATIONAL = "international" 33 | NATIONAL = "national" 34 | LOCAL = "local" 35 | 36 | allowable_values = [INTERNATIONAL, NATIONAL, LOCAL] # noqa: E501 37 | 38 | """ 39 | Attributes: 40 | openapi_types (dict): The key is attribute name 41 | and the value is attribute type. 42 | attribute_map (dict): The key is attribute name 43 | and the value is json key in definition. 44 | """ 45 | openapi_types = { 46 | } 47 | 48 | attribute_map = { 49 | } 50 | 51 | def __init__(self, local_vars_configuration=None): # noqa: E501 52 | """ScopeLevel - a model defined in OpenAPI""" # noqa: E501 53 | if local_vars_configuration is None: 54 | local_vars_configuration = Configuration() 55 | self.local_vars_configuration = local_vars_configuration 56 | self.discriminator = None 57 | 58 | def to_dict(self): 59 | """Returns the model properties as a dict""" 60 | result = {} 61 | 62 | for attr, _ in six.iteritems(self.openapi_types): 63 | value = getattr(self, attr) 64 | if isinstance(value, list): 65 | result[attr] = list(map( 66 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 67 | value 68 | )) 69 | elif hasattr(value, "to_dict"): 70 | result[attr] = value.to_dict() 71 | elif isinstance(value, dict): 72 | result[attr] = dict(map( 73 | lambda item: (item[0], item[1].to_dict()) 74 | if hasattr(item[1], "to_dict") else item, 75 | value.items() 76 | )) 77 | else: 78 | result[attr] = value 79 | 80 | return result 81 | 82 | def to_str(self): 83 | """Returns the string representation of the model""" 84 | return pprint.pformat(self.to_dict()) 85 | 86 | def __repr__(self): 87 | """For `print` and `pprint`""" 88 | return self.to_str() 89 | 90 | def __eq__(self, other): 91 | """Returns true if both objects are equal""" 92 | if not isinstance(other, ScopeLevel): 93 | return False 94 | 95 | return self.to_dict() == other.to_dict() 96 | 97 | def __ne__(self, other): 98 | """Returns true if both objects are not equal""" 99 | if not isinstance(other, ScopeLevel): 100 | return True 101 | 102 | return self.to_dict() != other.to_dict() 103 | -------------------------------------------------------------------------------- /aylien_news_api/models/sentiment_polarity.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from aylien_news_api.configuration import Configuration 20 | 21 | 22 | class SentimentPolarity(object): 23 | """NOTE: This class is auto generated by OpenAPI Generator. 24 | Ref: https://openapi-generator.tech 25 | 26 | Do not edit the class manually. 27 | """ 28 | 29 | """ 30 | allowed enum values 31 | """ 32 | POSITIVE = "positive" 33 | NEUTRAL = "neutral" 34 | NEGATIVE = "negative" 35 | 36 | allowable_values = [POSITIVE, NEUTRAL, NEGATIVE] # noqa: E501 37 | 38 | """ 39 | Attributes: 40 | openapi_types (dict): The key is attribute name 41 | and the value is attribute type. 42 | attribute_map (dict): The key is attribute name 43 | and the value is json key in definition. 44 | """ 45 | openapi_types = { 46 | } 47 | 48 | attribute_map = { 49 | } 50 | 51 | def __init__(self, local_vars_configuration=None): # noqa: E501 52 | """SentimentPolarity - a model defined in OpenAPI""" # noqa: E501 53 | if local_vars_configuration is None: 54 | local_vars_configuration = Configuration() 55 | self.local_vars_configuration = local_vars_configuration 56 | self.discriminator = None 57 | 58 | def to_dict(self): 59 | """Returns the model properties as a dict""" 60 | result = {} 61 | 62 | for attr, _ in six.iteritems(self.openapi_types): 63 | value = getattr(self, attr) 64 | if isinstance(value, list): 65 | result[attr] = list(map( 66 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 67 | value 68 | )) 69 | elif hasattr(value, "to_dict"): 70 | result[attr] = value.to_dict() 71 | elif isinstance(value, dict): 72 | result[attr] = dict(map( 73 | lambda item: (item[0], item[1].to_dict()) 74 | if hasattr(item[1], "to_dict") else item, 75 | value.items() 76 | )) 77 | else: 78 | result[attr] = value 79 | 80 | return result 81 | 82 | def to_str(self): 83 | """Returns the string representation of the model""" 84 | return pprint.pformat(self.to_dict()) 85 | 86 | def __repr__(self): 87 | """For `print` and `pprint`""" 88 | return self.to_str() 89 | 90 | def __eq__(self, other): 91 | """Returns true if both objects are equal""" 92 | if not isinstance(other, SentimentPolarity): 93 | return False 94 | 95 | return self.to_dict() == other.to_dict() 96 | 97 | def __ne__(self, other): 98 | """Returns true if both objects are not equal""" 99 | if not isinstance(other, SentimentPolarity): 100 | return True 101 | 102 | return self.to_dict() != other.to_dict() 103 | -------------------------------------------------------------------------------- /aylien_news_api/models/story_translations.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from aylien_news_api.configuration import Configuration 20 | 21 | 22 | class StoryTranslations(object): 23 | """NOTE: This class is auto generated by OpenAPI Generator. 24 | Ref: https://openapi-generator.tech 25 | 26 | Do not edit the class manually. 27 | """ 28 | 29 | """ 30 | Attributes: 31 | openapi_types (dict): The key is attribute name 32 | and the value is attribute type. 33 | attribute_map (dict): The key is attribute name 34 | and the value is json key in definition. 35 | """ 36 | openapi_types = { 37 | 'en': 'StoryTranslation' 38 | } 39 | 40 | attribute_map = { 41 | 'en': 'en' 42 | } 43 | 44 | def __init__(self, en=None, local_vars_configuration=None): # noqa: E501 45 | """StoryTranslations - a model defined in OpenAPI""" # noqa: E501 46 | if local_vars_configuration is None: 47 | local_vars_configuration = Configuration() 48 | self.local_vars_configuration = local_vars_configuration 49 | 50 | self._en = None 51 | self.discriminator = None 52 | 53 | if en is not None: 54 | self.en = en 55 | 56 | @property 57 | def en(self): 58 | """Gets the en of this StoryTranslations. # noqa: E501 59 | 60 | 61 | :return: The en of this StoryTranslations. # noqa: E501 62 | :rtype: StoryTranslation 63 | """ 64 | return self._en 65 | 66 | @en.setter 67 | def en(self, en): 68 | """Sets the en of this StoryTranslations. 69 | 70 | 71 | :param en: The en of this StoryTranslations. # noqa: E501 72 | :type en: StoryTranslation 73 | """ 74 | 75 | self._en = en 76 | 77 | def to_dict(self): 78 | """Returns the model properties as a dict""" 79 | result = {} 80 | 81 | for attr, _ in six.iteritems(self.openapi_types): 82 | value = getattr(self, attr) 83 | if isinstance(value, list): 84 | result[attr] = list(map( 85 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 86 | value 87 | )) 88 | elif hasattr(value, "to_dict"): 89 | result[attr] = value.to_dict() 90 | elif isinstance(value, dict): 91 | result[attr] = dict(map( 92 | lambda item: (item[0], item[1].to_dict()) 93 | if hasattr(item[1], "to_dict") else item, 94 | value.items() 95 | )) 96 | else: 97 | result[attr] = value 98 | 99 | return result 100 | 101 | def to_str(self): 102 | """Returns the string representation of the model""" 103 | return pprint.pformat(self.to_dict()) 104 | 105 | def __repr__(self): 106 | """For `print` and `pprint`""" 107 | return self.to_str() 108 | 109 | def __eq__(self, other): 110 | """Returns true if both objects are equal""" 111 | if not isinstance(other, StoryTranslations): 112 | return False 113 | 114 | return self.to_dict() == other.to_dict() 115 | 116 | def __ne__(self, other): 117 | """Returns true if both objects are not equal""" 118 | if not isinstance(other, StoryTranslations): 119 | return True 120 | 121 | return self.to_dict() != other.to_dict() 122 | -------------------------------------------------------------------------------- /aylien_news_api/models/summary.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from aylien_news_api.configuration import Configuration 20 | 21 | 22 | class Summary(object): 23 | """NOTE: This class is auto generated by OpenAPI Generator. 24 | Ref: https://openapi-generator.tech 25 | 26 | Do not edit the class manually. 27 | """ 28 | 29 | """ 30 | Attributes: 31 | openapi_types (dict): The key is attribute name 32 | and the value is attribute type. 33 | attribute_map (dict): The key is attribute name 34 | and the value is json key in definition. 35 | """ 36 | openapi_types = { 37 | 'sentences': 'list[str]' 38 | } 39 | 40 | attribute_map = { 41 | 'sentences': 'sentences' 42 | } 43 | 44 | def __init__(self, sentences=None, local_vars_configuration=None): # noqa: E501 45 | """Summary - a model defined in OpenAPI""" # noqa: E501 46 | if local_vars_configuration is None: 47 | local_vars_configuration = Configuration() 48 | self.local_vars_configuration = local_vars_configuration 49 | 50 | self._sentences = None 51 | self.discriminator = None 52 | 53 | if sentences is not None: 54 | self.sentences = sentences 55 | 56 | @property 57 | def sentences(self): 58 | """Gets the sentences of this Summary. # noqa: E501 59 | 60 | An array of the suggested summary sentences # noqa: E501 61 | 62 | :return: The sentences of this Summary. # noqa: E501 63 | :rtype: list[str] 64 | """ 65 | return self._sentences 66 | 67 | @sentences.setter 68 | def sentences(self, sentences): 69 | """Sets the sentences of this Summary. 70 | 71 | An array of the suggested summary sentences # noqa: E501 72 | 73 | :param sentences: The sentences of this Summary. # noqa: E501 74 | :type sentences: list[str] 75 | """ 76 | 77 | self._sentences = sentences 78 | 79 | def to_dict(self): 80 | """Returns the model properties as a dict""" 81 | result = {} 82 | 83 | for attr, _ in six.iteritems(self.openapi_types): 84 | value = getattr(self, attr) 85 | if isinstance(value, list): 86 | result[attr] = list(map( 87 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 88 | value 89 | )) 90 | elif hasattr(value, "to_dict"): 91 | result[attr] = value.to_dict() 92 | elif isinstance(value, dict): 93 | result[attr] = dict(map( 94 | lambda item: (item[0], item[1].to_dict()) 95 | if hasattr(item[1], "to_dict") else item, 96 | value.items() 97 | )) 98 | else: 99 | result[attr] = value 100 | 101 | return result 102 | 103 | def to_str(self): 104 | """Returns the string representation of the model""" 105 | return pprint.pformat(self.to_dict()) 106 | 107 | def __repr__(self): 108 | """For `print` and `pprint`""" 109 | return self.to_str() 110 | 111 | def __eq__(self, other): 112 | """Returns true if both objects are equal""" 113 | if not isinstance(other, Summary): 114 | return False 115 | 116 | return self.to_dict() == other.to_dict() 117 | 118 | def __ne__(self, other): 119 | """Returns true if both objects are not equal""" 120 | if not isinstance(other, Summary): 121 | return True 122 | 123 | return self.to_dict() != other.to_dict() 124 | -------------------------------------------------------------------------------- /docs/AggregatedSentiment.md: -------------------------------------------------------------------------------- 1 | # AggregatedSentiment 2 | 3 | The aggregation of sentiments 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **positive** | **int** | Positive sentiments count | [optional] 8 | **neutral** | **int** | Neutral sentiments count | [optional] 9 | **negative** | **int** | Negative sentiments count | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/Author.md: -------------------------------------------------------------------------------- 1 | # Author 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **avatar_url** | **str** | A URL which points to the author avatar | [optional] 7 | **id** | **int** | A unique identification for the author | [optional] 8 | **name** | **str** | The extracted author full name | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Autocomplete.md: -------------------------------------------------------------------------------- 1 | # Autocomplete 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | ID of the autocomplete | [optional] 7 | **text** | **str** | Text of the autocomplete | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Autocompletes.md: -------------------------------------------------------------------------------- 1 | # Autocompletes 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **autocompletes** | [**list[Autocomplete]**](Autocomplete.md) | An array of autocompletes | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/Category.md: -------------------------------------------------------------------------------- 1 | # Category 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **confident** | **bool** | It defines whether the extracted category is confident or not | [optional] 7 | **id** | **str** | The ID of the category | [optional] 8 | **label** | **str** | The label of the category | [optional] 9 | **level** | **int** | The level of the category | [optional] 10 | **score** | **float** | The score of the category | [optional] 11 | **taxonomy** | [**CategoryTaxonomy**](CategoryTaxonomy.md) | | [optional] 12 | **links** | [**CategoryLinks**](CategoryLinks.md) | | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/CategoryLinks.md: -------------------------------------------------------------------------------- 1 | # CategoryLinks 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **parent** | **str** | A URL pointing to the parent category | [optional] 7 | **parents** | **list[str]** | A collection of URLs pointing to the category parents | [optional] 8 | **_self** | **str** | A URL pointing to the category | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/CategoryTaxonomy.md: -------------------------------------------------------------------------------- 1 | # CategoryTaxonomy 2 | 3 | The taxonomy of the category 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/Cluster.md: -------------------------------------------------------------------------------- 1 | # Cluster 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **earliest_story** | **datetime** | Publication date of the earliest story in cluster | [optional] 7 | **id** | **int** | ID of the cluster which is a unique identification | [optional] 8 | **latest_story** | **datetime** | Publication date of the latest story in cluster | [optional] 9 | **location** | [**Location**](Location.md) | | [optional] 10 | **representative_story** | [**RepresentativeStory**](RepresentativeStory.md) | | [optional] 11 | **story_count** | **int** | Number of stories associated with the cluster | [optional] 12 | **time** | **datetime** | Time of the event | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/Clusters.md: -------------------------------------------------------------------------------- 1 | # Clusters 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **cluster_count** | **int** | The total number of clusters | [optional] 7 | **clusters** | [**list[Cluster]**](Cluster.md) | An array of clusters | [optional] 8 | **next_page_cursor** | **str** | The next page cursor | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Coverages.md: -------------------------------------------------------------------------------- 1 | # Coverages 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **coverages** | [**list[Story]**](Story.md) | An array of coverages for the input story | [optional] 7 | **story_body** | **str** | The input story body | [optional] 8 | **story_language** | **str** | The input story language | [optional] 9 | **story_published_at** | **datetime** | The input story published date | [optional] 10 | **story_title** | **str** | The input story title | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/DeprecatedEntities.md: -------------------------------------------------------------------------------- 1 | # DeprecatedEntities 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **body** | [**list[DeprecatedEntity]**](DeprecatedEntity.md) | An array of extracted entities from the story body | [optional] 7 | **title** | [**list[DeprecatedEntity]**](DeprecatedEntity.md) | An array of extracted entities from the story title | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/DeprecatedEntity.md: -------------------------------------------------------------------------------- 1 | # DeprecatedEntity 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | The unique ID of the entity | [optional] 7 | **indices** | **list[list[int]]** | The indices of the entity text | [optional] 8 | **links** | [**EntityLinks**](EntityLinks.md) | | [optional] 9 | **text** | **str** | The entity text | [optional] 10 | **stock_ticker** | **str** | The stock_ticker of the entity (might be null) | [optional] 11 | **types** | **list[str]** | An array of the entity types | [optional] 12 | **sentiment** | [**EntitySentiment**](EntitySentiment.md) | | [optional] 13 | **surface_forms** | [**list[DeprecatedEntitySurfaceForm]**](DeprecatedEntitySurfaceForm.md) | | [optional] 14 | **prominence_score** | **float** | Describes how relevant an entity is to the article | [optional] 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/DeprecatedEntitySurfaceForm.md: -------------------------------------------------------------------------------- 1 | # DeprecatedEntitySurfaceForm 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **text** | **str** | The entity text | [optional] 7 | **indices** | **list[list[int]]** | The indices of the entity text | [optional] 8 | **frequency** | **int** | Amount of entity surface form mentions in the article | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/DeprecatedRelatedStories.md: -------------------------------------------------------------------------------- 1 | # DeprecatedRelatedStories 2 | 3 | Story with deprecated entities 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **related_stories** | [**list[DeprecatedStory]**](DeprecatedStory.md) | An array of related stories for the input story | [optional] 8 | **story_body** | **str** | The input story body | [optional] 9 | **story_language** | **str** | The input story language | [optional] 10 | **story_title** | **str** | The input story title | [optional] 11 | **published_at_end** | **datetime** | The end of a period in which searched stories were published | [optional] 12 | **published_at_start** | **datetime** | The start of a period in which searched stories were published | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/DeprecatedStories.md: -------------------------------------------------------------------------------- 1 | # DeprecatedStories 2 | 3 | Stories containing deprecated entities 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **next_page_cursor** | **str** | The next page cursor | [optional] 8 | **stories** | [**list[DeprecatedStory]**](DeprecatedStory.md) | An array of stories | [optional] 9 | **published_at_end** | **datetime** | The end of a period in which searched stories were published | [optional] 10 | **published_at_start** | **datetime** | The start of a period in which searched stories were published | [optional] 11 | **warnings** | [**list[Warning]**](Warning.md) | Notifies about possible issues that occurred when searching for stories | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/DeprecatedStory.md: -------------------------------------------------------------------------------- 1 | # DeprecatedStory 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **author** | [**Author**](Author.md) | | [optional] 7 | **body** | **str** | Body of the story | [optional] 8 | **categories** | [**list[Category]**](Category.md) | Suggested categories for the story | [optional] 9 | **characters_count** | **int** | Character count of the story body | [optional] 10 | **clusters** | **list[int]** | An array of clusters the story is associated with | [optional] 11 | **entities** | [**DeprecatedEntities**](DeprecatedEntities.md) | | [optional] 12 | **hashtags** | **list[str]** | An array of suggested Story hashtags | [optional] 13 | **id** | **int** | ID of the story which is a unique identification | [optional] 14 | **keywords** | **list[str]** | Extracted keywords mentioned in the story title or body | [optional] 15 | **language** | **str** | Language of the story | [optional] 16 | **links** | [**StoryLinks**](StoryLinks.md) | | [optional] 17 | **media** | [**list[Media]**](Media.md) | An array of extracted media such as images and videos | [optional] 18 | **paragraphs_count** | **int** | Paragraph count of the story body | [optional] 19 | **published_datetime** | **datetime** | Publication time of the story, if available, otherwise time of acquisition | [optional] 20 | **published_at** | **datetime** | Acquisition time of the story | [optional] 21 | **sentences_count** | **int** | Sentence count of the story body | [optional] 22 | **sentiment** | [**Sentiments**](Sentiments.md) | | [optional] 23 | **social_shares_count** | [**ShareCounts**](ShareCounts.md) | | [optional] 24 | **source** | [**Source**](Source.md) | | [optional] 25 | **summary** | [**Summary**](Summary.md) | | [optional] 26 | **title** | **str** | Title of the story | [optional] 27 | **translations** | [**StoryTranslations**](StoryTranslations.md) | | [optional] 28 | **words_count** | **int** | Word count of the story body | [optional] 29 | **license_type** | **int** | License type of the story | [optional] 30 | **industries** | [**list[Category]**](Category.md) | An array of industries categories | [optional] 31 | 32 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 33 | 34 | 35 | -------------------------------------------------------------------------------- /docs/DunsNumber.md: -------------------------------------------------------------------------------- 1 | # DunsNumber 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/Entities.md: -------------------------------------------------------------------------------- 1 | # Entities 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **body** | [**list[Entity]**](Entity.md) | An array of extracted entities from the story body | [optional] 7 | **title** | [**list[Entity]**](Entity.md) | An array of extracted entities from the story title | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Entity.md: -------------------------------------------------------------------------------- 1 | # Entity 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | The unique ID of the entity | [optional] 7 | **links** | [**EntityLinks**](EntityLinks.md) | | [optional] 8 | **stock_tickers** | **list[str]** | The stock tickers of the entity (might be empty) | [optional] 9 | **types** | **list[str]** | An array of the entity types | [optional] 10 | **overall_sentiment** | [**EntitySentiment**](EntitySentiment.md) | | [optional] 11 | **overall_prominence** | **float** | Describes how relevant an entity is to the article | [optional] 12 | **overall_frequency** | **int** | Amount of entity surface form mentions in the article | [optional] 13 | **body** | [**EntityInText**](EntityInText.md) | | [optional] 14 | **title** | [**EntityInText**](EntityInText.md) | | [optional] 15 | **external_ids** | [**ExternalIds**](ExternalIds.md) | | [optional] 16 | 17 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/EntityInText.md: -------------------------------------------------------------------------------- 1 | # EntityInText 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **sentiment** | [**EntitySentiment**](EntitySentiment.md) | | [optional] 7 | **surface_forms** | [**list[EntitySurfaceForm]**](EntitySurfaceForm.md) | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/EntityLinks.md: -------------------------------------------------------------------------------- 1 | # EntityLinks 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **dbpedia** | **str** | A dbpedia resource URL (deprecated) | [optional] 7 | **wikipedia** | **str** | A wikipedia resource URL | [optional] 8 | **wikidata** | **str** | A wikidata resource URL | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/EntityMention.md: -------------------------------------------------------------------------------- 1 | # EntityMention 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **index** | [**EntityMentionIndex**](EntityMentionIndex.md) | | [optional] 7 | **sentiment** | [**EntitySentiment**](EntitySentiment.md) | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/EntityMentionIndex.md: -------------------------------------------------------------------------------- 1 | # EntityMentionIndex 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **start** | **int** | Start index of a single entity mention in the text (counting from 0) | 7 | **end** | **int** | End index of a single entity mention in the text (counting from 0) | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/EntitySentiment.md: -------------------------------------------------------------------------------- 1 | # EntitySentiment 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **polarity** | [**SentimentPolarity**](SentimentPolarity.md) | | [optional] 7 | **confidence** | **float** | Polarity confidence of the sentiment | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/EntitySurfaceForm.md: -------------------------------------------------------------------------------- 1 | # EntitySurfaceForm 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **text** | **str** | The entity text | [optional] 7 | **frequency** | **int** | Amount of entity surface form mentions in the article | [optional] 8 | **mentions** | [**list[EntityMention]**](EntityMention.md) | Mentions of the entity text | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Error.md: -------------------------------------------------------------------------------- 1 | # Error 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **code** | **str** | | [optional] 7 | **detail** | **str** | | [optional] 8 | **id** | **str** | | [optional] 9 | **links** | [**ErrorLinks**](ErrorLinks.md) | | [optional] 10 | **status** | **float** | | [optional] 11 | **title** | **str** | | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/ErrorLinks.md: -------------------------------------------------------------------------------- 1 | # ErrorLinks 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **about** | **str** | | [optional] 7 | **docs** | **str** | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Errors.md: -------------------------------------------------------------------------------- 1 | # Errors 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **errors** | [**list[Error]**](Error.md) | | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/ExternalIds.md: -------------------------------------------------------------------------------- 1 | # ExternalIds 2 | 3 | External Ids of an entity 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **duns** | [**list[DunsNumber]**](DunsNumber.md) | DUNS number(s) of the entity | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/HistogramInterval.md: -------------------------------------------------------------------------------- 1 | # HistogramInterval 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **bin** | **int** | Histogram bin | [optional] 7 | **count** | **int** | Histogram bin size | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Histograms.md: -------------------------------------------------------------------------------- 1 | # Histograms 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **field** | **str** | | [optional] 7 | **interval_end** | **int** | The end interval of the histogram | [optional] 8 | **interval_start** | **int** | The start interval of the histogram | [optional] 9 | **interval_width** | **int** | The width of the histogram | [optional] 10 | **intervals** | [**list[HistogramInterval]**](HistogramInterval.md) | The intervals of the histograms | [optional] 11 | **published_at_end** | **datetime** | The end of a period in which searched stories were published | [optional] 12 | **published_at_start** | **datetime** | The start of a period in which searched stories were published | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/Location.md: -------------------------------------------------------------------------------- 1 | # Location 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **city** | **str** | The city of the location | [optional] 7 | **country** | **str** | The country code of the location. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. | [optional] 8 | **state** | **str** | The state of the location | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Logicals.md: -------------------------------------------------------------------------------- 1 | # Logicals 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **_and** | [**list[AnyOfLogicalsParameter]**](AnyOfLogicalsParameter.md) | | [optional] 7 | **_or** | [**list[AnyOfLogicalsParameter]**](AnyOfLogicalsParameter.md) | | [optional] 8 | **_not** | [**list[AnyOfLogicalsParameter]**](AnyOfLogicalsParameter.md) | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Media.md: -------------------------------------------------------------------------------- 1 | # Media 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **content_length** | **int** | The content length of media | [optional] 7 | **format** | [**MediaFormat**](MediaFormat.md) | | [optional] 8 | **height** | **int** | The height of media | [optional] 9 | **type** | [**MediaType**](MediaType.md) | | [optional] 10 | **url** | **str** | A URL which points to the media file | [optional] 11 | **width** | **int** | The width of media | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/MediaFormat.md: -------------------------------------------------------------------------------- 1 | # MediaFormat 2 | 3 | The format of media 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/MediaType.md: -------------------------------------------------------------------------------- 1 | # MediaType 2 | 3 | The type of media 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/NestedEntity.md: -------------------------------------------------------------------------------- 1 | # NestedEntity 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | [**Query**](Query.md) | | [optional] 7 | **name** | [**Query**](Query.md) | | [optional] 8 | **surface_forms_text** | [**Query**](Query.md) | | [optional] 9 | **sentiment** | [**Query**](Query.md) | | [optional] 10 | **element** | [**Query**](Query.md) | | [optional] 11 | **links_wikipedia** | [**Query**](Query.md) | | [optional] 12 | **links_wikidata** | [**Query**](Query.md) | | [optional] 13 | **stock_ticker** | [**Query**](Query.md) | | [optional] 14 | **type** | [**Query**](Query.md) | | [optional] 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/Parameter.md: -------------------------------------------------------------------------------- 1 | # Parameter 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **author_id** | [**Query**](Query.md) | | [optional] 7 | **author_name** | [**Query**](Query.md) | | [optional] 8 | **body** | [**Query**](Query.md) | | [optional] 9 | **categories_confident** | [**Query**](Query.md) | | [optional] 10 | **categories_id** | [**Query**](Query.md) | | [optional] 11 | **categories_level** | [**Query**](Query.md) | | [optional] 12 | **categories_taxonomy** | [**Query**](Query.md) | | [optional] 13 | **clusters** | [**Query**](Query.md) | | [optional] 14 | **links_permalink** | [**Query**](Query.md) | | [optional] 15 | **entities_id** | [**Query**](Query.md) | | [optional] 16 | **entities_surface_forms_text** | [**Query**](Query.md) | | [optional] 17 | **entities_links_wikipedia** | [**Query**](Query.md) | | [optional] 18 | **entities_links_wikidata** | [**Query**](Query.md) | | [optional] 19 | **entities_title_surface_forms_text** | [**Query**](Query.md) | | [optional] 20 | **entities_body_surface_forms_text** | [**Query**](Query.md) | | [optional] 21 | **id** | [**Query**](Query.md) | | [optional] 22 | **language** | [**Query**](Query.md) | | [optional] 23 | **media_images_content_length_max** | [**Query**](Query.md) | | [optional] 24 | **media_images_content_length_min** | [**Query**](Query.md) | | [optional] 25 | **media_images_count_max** | [**Query**](Query.md) | | [optional] 26 | **media_images_count_min** | [**Query**](Query.md) | | [optional] 27 | **media_images_format** | [**Query**](Query.md) | | [optional] 28 | **media_images_height_max** | [**Query**](Query.md) | | [optional] 29 | **media_images_height_min** | [**Query**](Query.md) | | [optional] 30 | **media_images_width_max** | [**Query**](Query.md) | | [optional] 31 | **media_images_width_min** | [**Query**](Query.md) | | [optional] 32 | **media_videos_count_max** | [**Query**](Query.md) | | [optional] 33 | **media_videos_count_min** | [**Query**](Query.md) | | [optional] 34 | **sentiment_body_polarity** | [**Query**](Query.md) | | [optional] 35 | **sentiment_title_polarity** | [**Query**](Query.md) | | [optional] 36 | **social_shares_count_facebook_max** | [**Query**](Query.md) | | [optional] 37 | **social_shares_count_facebook_min** | [**Query**](Query.md) | | [optional] 38 | **social_shares_count_reddit_max** | [**Query**](Query.md) | | [optional] 39 | **social_shares_count_reddit_min** | [**Query**](Query.md) | | [optional] 40 | **source_domain** | [**Query**](Query.md) | | [optional] 41 | **source_id** | [**Query**](Query.md) | | [optional] 42 | **source_links_in_count_max** | [**Query**](Query.md) | | [optional] 43 | **source_links_in_count_min** | [**Query**](Query.md) | | [optional] 44 | **source_locations_city** | [**Query**](Query.md) | | [optional] 45 | **source_locations_country** | [**Query**](Query.md) | | [optional] 46 | **source_locations_state** | [**Query**](Query.md) | | [optional] 47 | **source_rankings_alexa_country** | [**Query**](Query.md) | | [optional] 48 | **source_rankings_alexa_rank_max** | [**Query**](Query.md) | | [optional] 49 | **source_rankings_alexa_rank_min** | [**Query**](Query.md) | | [optional] 50 | **source_scopes_city** | [**Query**](Query.md) | | [optional] 51 | **source_scopes_country** | [**Query**](Query.md) | | [optional] 52 | **source_scopes_level** | [**Query**](Query.md) | | [optional] 53 | **source_scopes_state** | [**Query**](Query.md) | | [optional] 54 | **story_url** | [**Query**](Query.md) | | [optional] 55 | **story_language** | [**Query**](Query.md) | | [optional] 56 | **text** | [**Query**](Query.md) | | [optional] 57 | **title** | [**Query**](Query.md) | | [optional] 58 | **translations_en_body** | [**Query**](Query.md) | | [optional] 59 | **translations_en_text** | [**Query**](Query.md) | | [optional] 60 | **translations_en_title** | [**Query**](Query.md) | | [optional] 61 | **entity** | [**OneOfNestedEntityLogicals**](OneOfNestedEntityLogicals.md) | | [optional] 62 | 63 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 64 | 65 | 66 | -------------------------------------------------------------------------------- /docs/Query.md: -------------------------------------------------------------------------------- 1 | # Query 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **eq** | [**OneOfstringnumber**](OneOfstringnumber.md) | | [optional] 7 | **text** | [**OneOfstringnumber**](OneOfstringnumber.md) | | [optional] 8 | **_in** | [**list[OneOfstringnumber]**](OneOfstringnumber.md) | | [optional] 9 | **gt** | **float** | | [optional] 10 | **gte** | **float** | | [optional] 11 | **lt** | **float** | | [optional] 12 | **lte** | **float** | | [optional] 13 | **boost** | **float** | | [optional] 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/Rank.md: -------------------------------------------------------------------------------- 1 | # Rank 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **country** | **str** | The country code which the rank is in it | [optional] 7 | **fetched_at** | **datetime** | The fetched date of the rank | [optional] 8 | **rank** | **int** | The rank | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Rankings.md: -------------------------------------------------------------------------------- 1 | # Rankings 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **alexa** | [**list[Rank]**](Rank.md) | | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/RelatedStories.md: -------------------------------------------------------------------------------- 1 | # RelatedStories 2 | 3 | Story containing new V3 entities - available for new_v3_entities feature flag 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **related_stories** | [**list[Story]**](Story.md) | An array of related stories for the input story | [optional] 8 | **story_body** | **str** | The input story body | [optional] 9 | **story_language** | **str** | The input story language | [optional] 10 | **story_title** | **str** | The input story title | [optional] 11 | **published_at_end** | **datetime** | The end of a period in which searched stories were published | [optional] 12 | **published_at_start** | **datetime** | The start of a period in which searched stories were published | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/RepresentativeStory.md: -------------------------------------------------------------------------------- 1 | # RepresentativeStory 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | ID of the story which is a unique identification | [optional] 7 | **permalink** | **str** | The story permalink URL | [optional] 8 | **published_at** | **datetime** | Published date of the story | [optional] 9 | **title** | **str** | Title of the story | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/Scope.md: -------------------------------------------------------------------------------- 1 | # Scope 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **city** | **str** | The scope by city | [optional] 7 | **country** | **str** | The source scope by country code. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. | [optional] 8 | **level** | [**ScopeLevel**](ScopeLevel.md) | | [optional] 9 | **state** | **str** | The scope by state | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/ScopeLevel.md: -------------------------------------------------------------------------------- 1 | # ScopeLevel 2 | 3 | The scope by level 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/Sentiment.md: -------------------------------------------------------------------------------- 1 | # Sentiment 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **polarity** | [**SentimentPolarity**](SentimentPolarity.md) | | [optional] 7 | **score** | **float** | Polarity score of the sentiment | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/SentimentPolarity.md: -------------------------------------------------------------------------------- 1 | # SentimentPolarity 2 | 3 | Polarity of the sentiment 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/Sentiments.md: -------------------------------------------------------------------------------- 1 | # Sentiments 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **body** | [**Sentiment**](Sentiment.md) | | [optional] 7 | **title** | [**Sentiment**](Sentiment.md) | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ShareCount.md: -------------------------------------------------------------------------------- 1 | # ShareCount 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **count** | **int** | The number of shares | [optional] 7 | **fetched_at** | **datetime** | The fetched date of the shares | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ShareCounts.md: -------------------------------------------------------------------------------- 1 | # ShareCounts 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **facebook** | [**list[ShareCount]**](ShareCount.md) | Facebook shares count | [optional] 7 | **google_plus** | [**list[ShareCount]**](ShareCount.md) | Google Plus shares count | [optional] 8 | **linkedin** | [**list[ShareCount]**](ShareCount.md) | LinkedIn shares count | [optional] 9 | **reddit** | [**list[ShareCount]**](ShareCount.md) | Reddit shares count | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/Source.md: -------------------------------------------------------------------------------- 1 | # Source 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **description** | **str** | A general explanation about the source | [optional] 7 | **domain** | **str** | The domain name of the source which is extracted from the source URL | [optional] 8 | **home_page_url** | **str** | The home page URL of the source | [optional] 9 | **id** | **int** | The source id which is a unique value | [optional] 10 | **links_in_count** | **int** | The number of websites that link to the source | [optional] 11 | **locations** | [**list[Location]**](Location.md) | The source locations which are tend to be the physical locations of the source, e.g. BBC headquarter is located in London. | [optional] 12 | **logo_url** | **str** | A URL which points to the source logo | [optional] 13 | **name** | **str** | The source name | [optional] 14 | **rankings** | [**Rankings**](Rankings.md) | | [optional] 15 | **scopes** | [**list[Scope]**](Scope.md) | The source scopes which is tend to be scope locations of the source, e.g. BBC scopes is international. | [optional] 16 | **title** | **str** | The title of the home page URL | [optional] 17 | 18 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/Stories.md: -------------------------------------------------------------------------------- 1 | # Stories 2 | 3 | Stories containing new V3 entities - available for new_v3_entities feature flag 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **next_page_cursor** | **str** | The next page cursor | [optional] 8 | **stories** | [**list[Story]**](Story.md) | An array of stories | [optional] 9 | **published_at_end** | **datetime** | The end of a period in which searched stories were published | [optional] 10 | **published_at_start** | **datetime** | The start of a period in which searched stories were published | [optional] 11 | **warnings** | [**list[Warning]**](Warning.md) | Notifies about possible issues that occurred when searching for stories | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/Story.md: -------------------------------------------------------------------------------- 1 | # Story 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **author** | [**Author**](Author.md) | | [optional] 7 | **body** | **str** | Body of the story | [optional] 8 | **categories** | [**list[Category]**](Category.md) | Suggested categories for the story | [optional] 9 | **characters_count** | **int** | Character count of the story body | [optional] 10 | **clusters** | **list[int]** | An array of clusters the story is associated with | [optional] 11 | **entities** | [**list[Entity]**](Entity.md) | An array of entities | [optional] 12 | **hashtags** | **list[str]** | An array of suggested Story hashtags | [optional] 13 | **id** | **int** | ID of the story which is a unique identification | [optional] 14 | **keywords** | **list[str]** | Extracted keywords mentioned in the story title or body | [optional] 15 | **language** | **str** | Language of the story | [optional] 16 | **links** | [**StoryLinks**](StoryLinks.md) | | [optional] 17 | **media** | [**list[Media]**](Media.md) | An array of extracted media such as images and videos | [optional] 18 | **paragraphs_count** | **int** | Paragraph count of the story body | [optional] 19 | **published_datetime** | **datetime** | Publication time of the story, if available, otherwise time of acquisition | [optional] 20 | **published_at** | **datetime** | Acquisition time of the story | [optional] 21 | **sentences_count** | **int** | Sentence count of the story body | [optional] 22 | **sentiment** | [**Sentiments**](Sentiments.md) | | [optional] 23 | **social_shares_count** | [**ShareCounts**](ShareCounts.md) | | [optional] 24 | **source** | [**Source**](Source.md) | | [optional] 25 | **summary** | [**Summary**](Summary.md) | | [optional] 26 | **title** | **str** | Title of the story | [optional] 27 | **translations** | [**StoryTranslations**](StoryTranslations.md) | | [optional] 28 | **words_count** | **int** | Word count of the story body | [optional] 29 | **license_type** | **int** | License type of the story | [optional] 30 | **industries** | [**list[Category]**](Category.md) | An array of industries categories | [optional] 31 | 32 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 33 | 34 | 35 | -------------------------------------------------------------------------------- /docs/StoryCluster.md: -------------------------------------------------------------------------------- 1 | # StoryCluster 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | A unique identification for the cluster | [optional] 7 | **phrases** | **list[str]** | Suggested labels for the cluster | [optional] 8 | **score** | **float** | The cluster score | [optional] 9 | **size** | **int** | Size of the cluster | [optional] 10 | **stories** | **list[int]** | Story ids which are in the cluster | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/StoryLinks.md: -------------------------------------------------------------------------------- 1 | # StoryLinks 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **canonical** | **str** | The story canonical URL | [optional] 7 | **permalink** | **str** | The story permalink URL | [optional] 8 | **related_stories** | **str** | The related stories URL | [optional] 9 | **clusters** | **str** | The clusters endpoint URL for this story | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/StoryTranslation.md: -------------------------------------------------------------------------------- 1 | # StoryTranslation 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **body** | **str** | Translation of body | [optional] 7 | **title** | **str** | Translation of title | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/StoryTranslations.md: -------------------------------------------------------------------------------- 1 | # StoryTranslations 2 | 3 | Translations of the story. Each language has it's own key and object 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **en** | [**StoryTranslation**](StoryTranslation.md) | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/StoryTranslationsEn.md: -------------------------------------------------------------------------------- 1 | # StoryTranslationsEn 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **body** | **str** | Translation of body | [optional] 7 | **text** | **str** | Translation of a concatenation of title and body | [optional] 8 | **title** | **str** | Translation of title | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Summary.md: -------------------------------------------------------------------------------- 1 | # Summary 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **sentences** | **list[str]** | An array of the suggested summary sentences | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/TimeSeries.md: -------------------------------------------------------------------------------- 1 | # TimeSeries 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **count** | **int** | The count of time series bin | [optional] 7 | **published_at** | **datetime** | The published date of the time series bin | [optional] 8 | **sentiment** | [**AggregatedSentiment**](AggregatedSentiment.md) | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/TimeSeriesList.md: -------------------------------------------------------------------------------- 1 | # TimeSeriesList 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **period** | **str** | The size of each date range expressed as an interval to be added to the lower bound. | [optional] 7 | **published_at_end** | **datetime** | The end published date of the time series | [optional] 8 | **published_at_start** | **datetime** | The start published date of the time series | [optional] 9 | **time_series** | [**list[TimeSeries]**](TimeSeries.md) | An array of time series | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/Trend.md: -------------------------------------------------------------------------------- 1 | # Trend 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **count** | **int** | The count of the trend | [optional] 7 | **value** | **str** | The value of the trend | [optional] 8 | **sentiment** | [**AggregatedSentiment**](AggregatedSentiment.md) | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Trends.md: -------------------------------------------------------------------------------- 1 | # Trends 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **field** | **str** | The field of trends | [optional] 7 | **trends** | [**list[Trend]**](Trend.md) | An array of trends | [optional] 8 | **published_at_end** | **datetime** | The end of a period in which searched stories were published | [optional] 9 | **published_at_start** | **datetime** | The start of a period in which searched stories were published | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/Warning.md: -------------------------------------------------------------------------------- 1 | # Warning 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | The identfier of the warning, represents its origin. | [optional] 7 | **links** | [**ErrorLinks**](ErrorLinks.md) | | [optional] 8 | **detail** | **str** | The detailed description of the warning. | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /git_push.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ 3 | # 4 | # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" 5 | 6 | git_user_id=$1 7 | git_repo_id=$2 8 | release_note=$3 9 | git_host=$4 10 | 11 | if [ "$git_host" = "" ]; then 12 | git_host="github.com" 13 | echo "[INFO] No command line input provided. Set \$git_host to $git_host" 14 | fi 15 | 16 | if [ "$git_user_id" = "" ]; then 17 | git_user_id="GIT_USER_ID" 18 | echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" 19 | fi 20 | 21 | if [ "$git_repo_id" = "" ]; then 22 | git_repo_id="GIT_REPO_ID" 23 | echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" 24 | fi 25 | 26 | if [ "$release_note" = "" ]; then 27 | release_note="Minor update" 28 | echo "[INFO] No command line input provided. Set \$release_note to $release_note" 29 | fi 30 | 31 | # Initialize the local directory as a Git repository 32 | git init 33 | 34 | # Adds the files in the local repository and stages them for commit. 35 | git add . 36 | 37 | # Commits the tracked changes and prepares them to be pushed to a remote repository. 38 | git commit -m "$release_note" 39 | 40 | # Sets the new remote 41 | git_remote=`git remote` 42 | if [ "$git_remote" = "" ]; then # git remote not defined 43 | 44 | if [ "$GIT_TOKEN" = "" ]; then 45 | echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." 46 | git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git 47 | else 48 | git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git 49 | fi 50 | 51 | fi 52 | 53 | git pull origin master 54 | 55 | # Pushes (Forces) the changes in the local repository up to the remote repository 56 | echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" 57 | git push origin master 2>&1 | grep -v 'To https' 58 | 59 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | certifi >= 14.05.14 2 | future; python_version<="2.7" 3 | six >= 1.10 4 | python_dateutil >= 2.5.3 5 | setuptools >= 21.0.0 6 | urllib3 >= 1.15.1 7 | -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length=99 3 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from setuptools import setup, find_packages # noqa: H301 15 | 16 | NAME = "aylien_news_api" 17 | VERSION = "5.2.3" 18 | # To install the library, run the following 19 | # 20 | # python setup.py install 21 | # 22 | # prerequisite: setuptools 23 | # http://pypi.python.org/pypi/setuptools 24 | 25 | REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] 26 | 27 | setup( 28 | name=NAME, 29 | version=VERSION, 30 | description="AYLIEN News API", 31 | author="API support", 32 | author_email="support@aylien.com", 33 | url="", 34 | keywords=["OpenAPI", "OpenAPI-Generator", "AYLIEN News API"], 35 | install_requires=REQUIRES, 36 | packages=find_packages(exclude=["test", "tests"]), 37 | include_package_data=True, 38 | long_description="""\ 39 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 40 | """ 41 | ) 42 | -------------------------------------------------------------------------------- /test-requirements.txt: -------------------------------------------------------------------------------- 1 | pytest~=4.6.7 # needed for python 2.7+3.4 2 | pytest-cov>=2.8.1 3 | pytest-randomly==1.2.3 # needed for python 2.7+3.4 4 | -------------------------------------------------------------------------------- /test/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AYLIEN/aylien_newsapi_python/db89ad6d0c0216423c064da1b631580482fbb87f/test/__init__.py -------------------------------------------------------------------------------- /test/test_aggregated_sentiment.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.aggregated_sentiment import AggregatedSentiment # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestAggregatedSentiment(unittest.TestCase): 24 | """AggregatedSentiment unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test AggregatedSentiment 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.aggregated_sentiment.AggregatedSentiment() # noqa: E501 38 | if include_optional : 39 | return AggregatedSentiment( 40 | positive = 56, 41 | neutral = 56, 42 | negative = 56 43 | ) 44 | else : 45 | return AggregatedSentiment( 46 | ) 47 | 48 | def testAggregatedSentiment(self): 49 | """Test AggregatedSentiment""" 50 | inst_req_only = self.make_instance(include_optional=False) 51 | inst_req_and_optional = self.make_instance(include_optional=True) 52 | 53 | 54 | if __name__ == '__main__': 55 | unittest.main() 56 | -------------------------------------------------------------------------------- /test/test_author.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.author import Author # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestAuthor(unittest.TestCase): 24 | """Author unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Author 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.author.Author() # noqa: E501 38 | if include_optional : 39 | return Author( 40 | avatar_url = '0', 41 | id = 56, 42 | name = '0' 43 | ) 44 | else : 45 | return Author( 46 | ) 47 | 48 | def testAuthor(self): 49 | """Test Author""" 50 | inst_req_only = self.make_instance(include_optional=False) 51 | inst_req_and_optional = self.make_instance(include_optional=True) 52 | 53 | 54 | if __name__ == '__main__': 55 | unittest.main() 56 | -------------------------------------------------------------------------------- /test/test_autocomplete.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.autocomplete import Autocomplete # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestAutocomplete(unittest.TestCase): 24 | """Autocomplete unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Autocomplete 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.autocomplete.Autocomplete() # noqa: E501 38 | if include_optional : 39 | return Autocomplete( 40 | id = '0', 41 | text = '0' 42 | ) 43 | else : 44 | return Autocomplete( 45 | ) 46 | 47 | def testAutocomplete(self): 48 | """Test Autocomplete""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | 53 | if __name__ == '__main__': 54 | unittest.main() 55 | -------------------------------------------------------------------------------- /test/test_autocompletes.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.autocompletes import Autocompletes # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestAutocompletes(unittest.TestCase): 24 | """Autocompletes unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Autocompletes 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.autocompletes.Autocompletes() # noqa: E501 38 | if include_optional : 39 | return Autocompletes( 40 | autocompletes = [ 41 | aylien_news_api.models.autocomplete.Autocomplete( 42 | id = '0', 43 | text = '0', ) 44 | ] 45 | ) 46 | else : 47 | return Autocompletes( 48 | ) 49 | 50 | def testAutocompletes(self): 51 | """Test Autocompletes""" 52 | inst_req_only = self.make_instance(include_optional=False) 53 | inst_req_and_optional = self.make_instance(include_optional=True) 54 | 55 | 56 | if __name__ == '__main__': 57 | unittest.main() 58 | -------------------------------------------------------------------------------- /test/test_category.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.category import Category # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestCategory(unittest.TestCase): 24 | """Category unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Category 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.category.Category() # noqa: E501 38 | if include_optional : 39 | return Category( 40 | confident = True, 41 | id = '0', 42 | label = '0', 43 | level = 56, 44 | score = 0, 45 | taxonomy = 'iab-qag', 46 | links = aylien_news_api.models.category_links.CategoryLinks( 47 | parent = '0', 48 | parents = [ 49 | '0' 50 | ], 51 | self = '0', ) 52 | ) 53 | else : 54 | return Category( 55 | ) 56 | 57 | def testCategory(self): 58 | """Test Category""" 59 | inst_req_only = self.make_instance(include_optional=False) 60 | inst_req_and_optional = self.make_instance(include_optional=True) 61 | 62 | 63 | if __name__ == '__main__': 64 | unittest.main() 65 | -------------------------------------------------------------------------------- /test/test_category_links.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.category_links import CategoryLinks # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestCategoryLinks(unittest.TestCase): 24 | """CategoryLinks unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test CategoryLinks 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.category_links.CategoryLinks() # noqa: E501 38 | if include_optional : 39 | return CategoryLinks( 40 | parent = '0', 41 | parents = [ 42 | '0' 43 | ], 44 | _self = '0' 45 | ) 46 | else : 47 | return CategoryLinks( 48 | ) 49 | 50 | def testCategoryLinks(self): 51 | """Test CategoryLinks""" 52 | inst_req_only = self.make_instance(include_optional=False) 53 | inst_req_and_optional = self.make_instance(include_optional=True) 54 | 55 | 56 | if __name__ == '__main__': 57 | unittest.main() 58 | -------------------------------------------------------------------------------- /test/test_category_taxonomy.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.category_taxonomy import CategoryTaxonomy # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestCategoryTaxonomy(unittest.TestCase): 24 | """CategoryTaxonomy unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test CategoryTaxonomy 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.category_taxonomy.CategoryTaxonomy() # noqa: E501 38 | if include_optional : 39 | return CategoryTaxonomy( 40 | ) 41 | else : 42 | return CategoryTaxonomy( 43 | ) 44 | 45 | def testCategoryTaxonomy(self): 46 | """Test CategoryTaxonomy""" 47 | inst_req_only = self.make_instance(include_optional=False) 48 | inst_req_and_optional = self.make_instance(include_optional=True) 49 | 50 | 51 | if __name__ == '__main__': 52 | unittest.main() 53 | -------------------------------------------------------------------------------- /test/test_cluster.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.cluster import Cluster # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestCluster(unittest.TestCase): 24 | """Cluster unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Cluster 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.cluster.Cluster() # noqa: E501 38 | if include_optional : 39 | return Cluster( 40 | earliest_story = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 41 | id = 56, 42 | latest_story = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 43 | location = aylien_news_api.models.location.Location( 44 | city = '0', 45 | country = '0', 46 | state = '0', ), 47 | representative_story = aylien_news_api.models.representative_story.RepresentativeStory( 48 | id = 56, 49 | permalink = '0', 50 | published_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 51 | title = '0', ), 52 | story_count = 56, 53 | time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') 54 | ) 55 | else : 56 | return Cluster( 57 | ) 58 | 59 | def testCluster(self): 60 | """Test Cluster""" 61 | inst_req_only = self.make_instance(include_optional=False) 62 | inst_req_and_optional = self.make_instance(include_optional=True) 63 | 64 | 65 | if __name__ == '__main__': 66 | unittest.main() 67 | -------------------------------------------------------------------------------- /test/test_clusters.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.clusters import Clusters # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestClusters(unittest.TestCase): 24 | """Clusters unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Clusters 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.clusters.Clusters() # noqa: E501 38 | if include_optional : 39 | return Clusters( 40 | cluster_count = 56, 41 | clusters = [ 42 | aylien_news_api.models.cluster.Cluster( 43 | earliest_story = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 44 | id = 56, 45 | latest_story = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 46 | location = aylien_news_api.models.location.Location( 47 | city = '0', 48 | country = '0', 49 | state = '0', ), 50 | representative_story = aylien_news_api.models.representative_story.RepresentativeStory( 51 | id = 56, 52 | permalink = '0', 53 | published_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 54 | title = '0', ), 55 | story_count = 56, 56 | time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) 57 | ], 58 | next_page_cursor = '0' 59 | ) 60 | else : 61 | return Clusters( 62 | ) 63 | 64 | def testClusters(self): 65 | """Test Clusters""" 66 | inst_req_only = self.make_instance(include_optional=False) 67 | inst_req_and_optional = self.make_instance(include_optional=True) 68 | 69 | 70 | if __name__ == '__main__': 71 | unittest.main() 72 | -------------------------------------------------------------------------------- /test/test_coverages.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 3.0 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import aylien_news_api 19 | from aylien_news_api.models.coverages import Coverages # noqa: E501 20 | from aylien_news_api.rest import ApiException 21 | 22 | 23 | class TestCoverages(unittest.TestCase): 24 | """Coverages unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCoverages(self): 33 | """Test Coverages""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = aylien_news_api.models.coverages.Coverages() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_default_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import aylien_news_api 19 | from aylien_news_api.api.default_api import DefaultApi # noqa: E501 20 | from aylien_news_api.rest import ApiException 21 | 22 | 23 | class TestDefaultApi(unittest.TestCase): 24 | """DefaultApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = aylien_news_api.api.default_api.DefaultApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_advanced_list_stories(self): 33 | """Test case for advanced_list_stories 34 | 35 | List Stories # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_list_autocompletes(self): 40 | """Test case for list_autocompletes 41 | 42 | List autocompletes # noqa: E501 43 | """ 44 | pass 45 | 46 | def test_list_clusters(self): 47 | """Test case for list_clusters 48 | 49 | List Clusters # noqa: E501 50 | """ 51 | pass 52 | 53 | def test_list_histograms(self): 54 | """Test case for list_histograms 55 | 56 | List histograms # noqa: E501 57 | """ 58 | pass 59 | 60 | def test_list_related_stories_get(self): 61 | """Test case for list_related_stories_get 62 | 63 | """ 64 | pass 65 | 66 | def test_list_related_stories_post(self): 67 | """Test case for list_related_stories_post 68 | 69 | """ 70 | pass 71 | 72 | def test_list_stories(self): 73 | """Test case for list_stories 74 | 75 | List Stories # noqa: E501 76 | """ 77 | pass 78 | 79 | def test_list_time_series(self): 80 | """Test case for list_time_series 81 | 82 | List time series # noqa: E501 83 | """ 84 | pass 85 | 86 | def test_list_trends(self): 87 | """Test case for list_trends 88 | 89 | List trends # noqa: E501 90 | """ 91 | pass 92 | 93 | 94 | if __name__ == '__main__': 95 | unittest.main() 96 | -------------------------------------------------------------------------------- /test/test_deprecated_entity.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 4.7 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.deprecated_entity import DeprecatedEntity # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestDeprecatedEntity(unittest.TestCase): 24 | """DeprecatedEntity unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test DeprecatedEntity 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.deprecated_entity.DeprecatedEntity() # noqa: E501 38 | if include_optional : 39 | return DeprecatedEntity( 40 | id = '0', 41 | indices = [ 42 | [ 43 | 56 44 | ] 45 | ], 46 | links = aylien_news_api.models.entity_links.EntityLinks( 47 | dbpedia = '0', 48 | wikipedia = '0', 49 | wikidata = '0', ), 50 | text = '0', 51 | stock_ticker = '0', 52 | types = [ 53 | '0' 54 | ], 55 | sentiment = aylien_news_api.models.entity_sentiment.EntitySentiment( 56 | polarity = 'positive', 57 | confidence = 0, ), 58 | surface_forms = [ 59 | aylien_news_api.models.deprecated_entity_surface_form.DeprecatedEntitySurfaceForm( 60 | text = '0', 61 | indices = [ 62 | [ 63 | 56 64 | ] 65 | ], 66 | frequency = 0, ) 67 | ], 68 | prominence_score = 0 69 | ) 70 | else : 71 | return DeprecatedEntity( 72 | ) 73 | 74 | def testDeprecatedEntity(self): 75 | """Test DeprecatedEntity""" 76 | inst_req_only = self.make_instance(include_optional=False) 77 | inst_req_and_optional = self.make_instance(include_optional=True) 78 | 79 | 80 | if __name__ == '__main__': 81 | unittest.main() 82 | -------------------------------------------------------------------------------- /test/test_deprecated_entity_surface_form.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 4.7 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.deprecated_entity_surface_form import DeprecatedEntitySurfaceForm # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestDeprecatedEntitySurfaceForm(unittest.TestCase): 24 | """DeprecatedEntitySurfaceForm unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test DeprecatedEntitySurfaceForm 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.deprecated_entity_surface_form.DeprecatedEntitySurfaceForm() # noqa: E501 38 | if include_optional : 39 | return DeprecatedEntitySurfaceForm( 40 | text = '0', 41 | indices = [ 42 | [ 43 | 56 44 | ] 45 | ], 46 | frequency = 0 47 | ) 48 | else : 49 | return DeprecatedEntitySurfaceForm( 50 | ) 51 | 52 | def testDeprecatedEntitySurfaceForm(self): 53 | """Test DeprecatedEntitySurfaceForm""" 54 | inst_req_only = self.make_instance(include_optional=False) 55 | inst_req_and_optional = self.make_instance(include_optional=True) 56 | 57 | 58 | if __name__ == '__main__': 59 | unittest.main() 60 | -------------------------------------------------------------------------------- /test/test_duns_number.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.duns_number import DunsNumber # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestDunsNumber(unittest.TestCase): 24 | """DunsNumber unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test DunsNumber 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.duns_number.DunsNumber() # noqa: E501 38 | if include_optional : 39 | return DunsNumber( 40 | id = '0' 41 | ) 42 | else : 43 | return DunsNumber( 44 | ) 45 | 46 | def testDunsNumber(self): 47 | """Test DunsNumber""" 48 | inst_req_only = self.make_instance(include_optional=False) 49 | inst_req_and_optional = self.make_instance(include_optional=True) 50 | 51 | 52 | if __name__ == '__main__': 53 | unittest.main() 54 | -------------------------------------------------------------------------------- /test/test_entity_in_text.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.entity_in_text import EntityInText # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestEntityInText(unittest.TestCase): 24 | """EntityInText unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test EntityInText 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.entity_in_text.EntityInText() # noqa: E501 38 | if include_optional : 39 | return EntityInText( 40 | sentiment = aylien_news_api.models.entity_sentiment.EntitySentiment( 41 | polarity = 'positive', 42 | confidence = 0, ), 43 | surface_forms = [ 44 | aylien_news_api.models.entity_surface_form.EntitySurfaceForm( 45 | text = '0', 46 | frequency = 0, 47 | mentions = [ 48 | aylien_news_api.models.entity_mention.EntityMention( 49 | index = aylien_news_api.models.entity_mention_index.EntityMentionIndex( 50 | start = 0, 51 | end = 1, ), 52 | sentiment = aylien_news_api.models.entity_sentiment.EntitySentiment( 53 | polarity = 'positive', 54 | confidence = 0, ), ) 55 | ], ) 56 | ] 57 | ) 58 | else : 59 | return EntityInText( 60 | ) 61 | 62 | def testEntityInText(self): 63 | """Test EntityInText""" 64 | inst_req_only = self.make_instance(include_optional=False) 65 | inst_req_and_optional = self.make_instance(include_optional=True) 66 | 67 | 68 | if __name__ == '__main__': 69 | unittest.main() 70 | -------------------------------------------------------------------------------- /test/test_entity_links.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.entity_links import EntityLinks # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestEntityLinks(unittest.TestCase): 24 | """EntityLinks unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test EntityLinks 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.entity_links.EntityLinks() # noqa: E501 38 | if include_optional : 39 | return EntityLinks( 40 | dbpedia = '0', 41 | wikipedia = '0', 42 | wikidata = '0' 43 | ) 44 | else : 45 | return EntityLinks( 46 | ) 47 | 48 | def testEntityLinks(self): 49 | """Test EntityLinks""" 50 | inst_req_only = self.make_instance(include_optional=False) 51 | inst_req_and_optional = self.make_instance(include_optional=True) 52 | 53 | 54 | if __name__ == '__main__': 55 | unittest.main() 56 | -------------------------------------------------------------------------------- /test/test_entity_mention.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.entity_mention import EntityMention # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestEntityMention(unittest.TestCase): 24 | """EntityMention unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test EntityMention 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.entity_mention.EntityMention() # noqa: E501 38 | if include_optional : 39 | return EntityMention( 40 | index = aylien_news_api.models.entity_mention_index.EntityMentionIndex( 41 | start = 0, 42 | end = 1, ), 43 | sentiment = aylien_news_api.models.entity_sentiment.EntitySentiment( 44 | polarity = 'positive', 45 | confidence = 0, ) 46 | ) 47 | else : 48 | return EntityMention( 49 | ) 50 | 51 | def testEntityMention(self): 52 | """Test EntityMention""" 53 | inst_req_only = self.make_instance(include_optional=False) 54 | inst_req_and_optional = self.make_instance(include_optional=True) 55 | 56 | 57 | if __name__ == '__main__': 58 | unittest.main() 59 | -------------------------------------------------------------------------------- /test/test_entity_mention_index.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.entity_mention_index import EntityMentionIndex # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestEntityMentionIndex(unittest.TestCase): 24 | """EntityMentionIndex unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test EntityMentionIndex 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.entity_mention_index.EntityMentionIndex() # noqa: E501 38 | if include_optional : 39 | return EntityMentionIndex( 40 | start = 0, 41 | end = 1 42 | ) 43 | else : 44 | return EntityMentionIndex( 45 | start = 0, 46 | end = 1, 47 | ) 48 | 49 | def testEntityMentionIndex(self): 50 | """Test EntityMentionIndex""" 51 | inst_req_only = self.make_instance(include_optional=False) 52 | inst_req_and_optional = self.make_instance(include_optional=True) 53 | 54 | 55 | if __name__ == '__main__': 56 | unittest.main() 57 | -------------------------------------------------------------------------------- /test/test_entity_sentiment.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.entity_sentiment import EntitySentiment # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestEntitySentiment(unittest.TestCase): 24 | """EntitySentiment unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test EntitySentiment 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.entity_sentiment.EntitySentiment() # noqa: E501 38 | if include_optional : 39 | return EntitySentiment( 40 | polarity = 'positive', 41 | confidence = 0 42 | ) 43 | else : 44 | return EntitySentiment( 45 | ) 46 | 47 | def testEntitySentiment(self): 48 | """Test EntitySentiment""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | 53 | if __name__ == '__main__': 54 | unittest.main() 55 | -------------------------------------------------------------------------------- /test/test_entity_surface_form.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.entity_surface_form import EntitySurfaceForm # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestEntitySurfaceForm(unittest.TestCase): 24 | """EntitySurfaceForm unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test EntitySurfaceForm 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.entity_surface_form.EntitySurfaceForm() # noqa: E501 38 | if include_optional : 39 | return EntitySurfaceForm( 40 | text = '0', 41 | frequency = 0, 42 | mentions = [ 43 | aylien_news_api.models.entity_mention.EntityMention( 44 | index = aylien_news_api.models.entity_mention_index.EntityMentionIndex( 45 | start = 0, 46 | end = 1, ), 47 | sentiment = aylien_news_api.models.entity_sentiment.EntitySentiment( 48 | polarity = 'positive', 49 | confidence = 0, ), ) 50 | ] 51 | ) 52 | else : 53 | return EntitySurfaceForm( 54 | ) 55 | 56 | def testEntitySurfaceForm(self): 57 | """Test EntitySurfaceForm""" 58 | inst_req_only = self.make_instance(include_optional=False) 59 | inst_req_and_optional = self.make_instance(include_optional=True) 60 | 61 | 62 | if __name__ == '__main__': 63 | unittest.main() 64 | -------------------------------------------------------------------------------- /test/test_error.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.error import Error # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestError(unittest.TestCase): 24 | """Error unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Error 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.error.Error() # noqa: E501 38 | if include_optional : 39 | return Error( 40 | code = '0', 41 | detail = '0', 42 | id = '0', 43 | links = aylien_news_api.models.error_links.ErrorLinks( 44 | about = '0', 45 | docs = '0', ), 46 | status = 1.337, 47 | title = '0' 48 | ) 49 | else : 50 | return Error( 51 | ) 52 | 53 | def testError(self): 54 | """Test Error""" 55 | inst_req_only = self.make_instance(include_optional=False) 56 | inst_req_and_optional = self.make_instance(include_optional=True) 57 | 58 | 59 | if __name__ == '__main__': 60 | unittest.main() 61 | -------------------------------------------------------------------------------- /test/test_error_links.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.error_links import ErrorLinks # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestErrorLinks(unittest.TestCase): 24 | """ErrorLinks unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test ErrorLinks 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.error_links.ErrorLinks() # noqa: E501 38 | if include_optional : 39 | return ErrorLinks( 40 | about = '0', 41 | docs = '0' 42 | ) 43 | else : 44 | return ErrorLinks( 45 | ) 46 | 47 | def testErrorLinks(self): 48 | """Test ErrorLinks""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | 53 | if __name__ == '__main__': 54 | unittest.main() 55 | -------------------------------------------------------------------------------- /test/test_errors.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.errors import Errors # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestErrors(unittest.TestCase): 24 | """Errors unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Errors 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.errors.Errors() # noqa: E501 38 | if include_optional : 39 | return Errors( 40 | errors = [ 41 | aylien_news_api.models.error.Error( 42 | code = '0', 43 | detail = '0', 44 | id = '0', 45 | links = aylien_news_api.models.error_links.ErrorLinks( 46 | about = '0', 47 | docs = '0', ), 48 | status = 1.337, 49 | title = '0', ) 50 | ] 51 | ) 52 | else : 53 | return Errors( 54 | ) 55 | 56 | def testErrors(self): 57 | """Test Errors""" 58 | inst_req_only = self.make_instance(include_optional=False) 59 | inst_req_and_optional = self.make_instance(include_optional=True) 60 | 61 | 62 | if __name__ == '__main__': 63 | unittest.main() 64 | -------------------------------------------------------------------------------- /test/test_external_ids.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.external_ids import ExternalIds # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestExternalIds(unittest.TestCase): 24 | """ExternalIds unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test ExternalIds 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.external_ids.ExternalIds() # noqa: E501 38 | if include_optional : 39 | return ExternalIds( 40 | duns = [ 41 | aylien_news_api.models.duns_number.DunsNumber( 42 | id = '0', ) 43 | ] 44 | ) 45 | else : 46 | return ExternalIds( 47 | ) 48 | 49 | def testExternalIds(self): 50 | """Test ExternalIds""" 51 | inst_req_only = self.make_instance(include_optional=False) 52 | inst_req_and_optional = self.make_instance(include_optional=True) 53 | 54 | 55 | if __name__ == '__main__': 56 | unittest.main() 57 | -------------------------------------------------------------------------------- /test/test_histogram_interval.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.histogram_interval import HistogramInterval # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestHistogramInterval(unittest.TestCase): 24 | """HistogramInterval unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test HistogramInterval 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.histogram_interval.HistogramInterval() # noqa: E501 38 | if include_optional : 39 | return HistogramInterval( 40 | bin = 56, 41 | count = 56 42 | ) 43 | else : 44 | return HistogramInterval( 45 | ) 46 | 47 | def testHistogramInterval(self): 48 | """Test HistogramInterval""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | 53 | if __name__ == '__main__': 54 | unittest.main() 55 | -------------------------------------------------------------------------------- /test/test_histograms.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.histograms import Histograms # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestHistograms(unittest.TestCase): 24 | """Histograms unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Histograms 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.histograms.Histograms() # noqa: E501 38 | if include_optional : 39 | return Histograms( 40 | field = '0', 41 | interval_end = 56, 42 | interval_start = 56, 43 | interval_width = 56, 44 | intervals = [ 45 | aylien_news_api.models.histogram_interval.HistogramInterval( 46 | bin = 56, 47 | count = 56, ) 48 | ], 49 | published_at_end = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 50 | published_at_start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') 51 | ) 52 | else : 53 | return Histograms( 54 | ) 55 | 56 | def testHistograms(self): 57 | """Test Histograms""" 58 | inst_req_only = self.make_instance(include_optional=False) 59 | inst_req_and_optional = self.make_instance(include_optional=True) 60 | 61 | 62 | if __name__ == '__main__': 63 | unittest.main() 64 | -------------------------------------------------------------------------------- /test/test_location.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.location import Location # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestLocation(unittest.TestCase): 24 | """Location unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Location 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.location.Location() # noqa: E501 38 | if include_optional : 39 | return Location( 40 | city = '0', 41 | country = '0', 42 | state = '0' 43 | ) 44 | else : 45 | return Location( 46 | ) 47 | 48 | def testLocation(self): 49 | """Test Location""" 50 | inst_req_only = self.make_instance(include_optional=False) 51 | inst_req_and_optional = self.make_instance(include_optional=True) 52 | 53 | 54 | if __name__ == '__main__': 55 | unittest.main() 56 | -------------------------------------------------------------------------------- /test/test_logicals.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.logicals import Logicals # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestLogicals(unittest.TestCase): 24 | """Logicals unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Logicals 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.logicals.Logicals() # noqa: E501 38 | if include_optional : 39 | return Logicals( 40 | _and = [ 41 | null 42 | ], 43 | _or = [ 44 | null 45 | ], 46 | _not = [ 47 | null 48 | ] 49 | ) 50 | else : 51 | return Logicals( 52 | ) 53 | 54 | def testLogicals(self): 55 | """Test Logicals""" 56 | inst_req_only = self.make_instance(include_optional=False) 57 | inst_req_and_optional = self.make_instance(include_optional=True) 58 | 59 | 60 | if __name__ == '__main__': 61 | unittest.main() 62 | -------------------------------------------------------------------------------- /test/test_media.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.media import Media # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestMedia(unittest.TestCase): 24 | """Media unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Media 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.media.Media() # noqa: E501 38 | if include_optional : 39 | return Media( 40 | content_length = 56, 41 | format = 'BMP', 42 | height = 56, 43 | type = 'image', 44 | url = '0', 45 | width = 56 46 | ) 47 | else : 48 | return Media( 49 | ) 50 | 51 | def testMedia(self): 52 | """Test Media""" 53 | inst_req_only = self.make_instance(include_optional=False) 54 | inst_req_and_optional = self.make_instance(include_optional=True) 55 | 56 | 57 | if __name__ == '__main__': 58 | unittest.main() 59 | -------------------------------------------------------------------------------- /test/test_media_format.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.media_format import MediaFormat # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestMediaFormat(unittest.TestCase): 24 | """MediaFormat unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test MediaFormat 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.media_format.MediaFormat() # noqa: E501 38 | if include_optional : 39 | return MediaFormat( 40 | ) 41 | else : 42 | return MediaFormat( 43 | ) 44 | 45 | def testMediaFormat(self): 46 | """Test MediaFormat""" 47 | inst_req_only = self.make_instance(include_optional=False) 48 | inst_req_and_optional = self.make_instance(include_optional=True) 49 | 50 | 51 | if __name__ == '__main__': 52 | unittest.main() 53 | -------------------------------------------------------------------------------- /test/test_media_type.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.media_type import MediaType # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestMediaType(unittest.TestCase): 24 | """MediaType unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test MediaType 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.media_type.MediaType() # noqa: E501 38 | if include_optional : 39 | return MediaType( 40 | ) 41 | else : 42 | return MediaType( 43 | ) 44 | 45 | def testMediaType(self): 46 | """Test MediaType""" 47 | inst_req_only = self.make_instance(include_optional=False) 48 | inst_req_and_optional = self.make_instance(include_optional=True) 49 | 50 | 51 | if __name__ == '__main__': 52 | unittest.main() 53 | -------------------------------------------------------------------------------- /test/test_query.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.query import Query # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestQuery(unittest.TestCase): 24 | """Query unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Query 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.query.Query() # noqa: E501 38 | if include_optional : 39 | return Query( 40 | eq = null, 41 | text = null, 42 | _in = [ 43 | null 44 | ], 45 | gt = 1.337, 46 | gte = 1.337, 47 | lt = 1.337, 48 | lte = 1.337, 49 | boost = 1.337 50 | ) 51 | else : 52 | return Query( 53 | ) 54 | 55 | def testQuery(self): 56 | """Test Query""" 57 | inst_req_only = self.make_instance(include_optional=False) 58 | inst_req_and_optional = self.make_instance(include_optional=True) 59 | 60 | 61 | if __name__ == '__main__': 62 | unittest.main() 63 | -------------------------------------------------------------------------------- /test/test_rank.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.rank import Rank # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestRank(unittest.TestCase): 24 | """Rank unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Rank 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.rank.Rank() # noqa: E501 38 | if include_optional : 39 | return Rank( 40 | country = '0', 41 | fetched_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 42 | rank = 56 43 | ) 44 | else : 45 | return Rank( 46 | ) 47 | 48 | def testRank(self): 49 | """Test Rank""" 50 | inst_req_only = self.make_instance(include_optional=False) 51 | inst_req_and_optional = self.make_instance(include_optional=True) 52 | 53 | 54 | if __name__ == '__main__': 55 | unittest.main() 56 | -------------------------------------------------------------------------------- /test/test_rankings.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.rankings import Rankings # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestRankings(unittest.TestCase): 24 | """Rankings unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Rankings 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.rankings.Rankings() # noqa: E501 38 | if include_optional : 39 | return Rankings( 40 | alexa = [ 41 | aylien_news_api.models.rank.Rank( 42 | country = '0', 43 | fetched_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 44 | rank = 56, ) 45 | ] 46 | ) 47 | else : 48 | return Rankings( 49 | ) 50 | 51 | def testRankings(self): 52 | """Test Rankings""" 53 | inst_req_only = self.make_instance(include_optional=False) 54 | inst_req_and_optional = self.make_instance(include_optional=True) 55 | 56 | 57 | if __name__ == '__main__': 58 | unittest.main() 59 | -------------------------------------------------------------------------------- /test/test_representative_story.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.representative_story import RepresentativeStory # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestRepresentativeStory(unittest.TestCase): 24 | """RepresentativeStory unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test RepresentativeStory 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.representative_story.RepresentativeStory() # noqa: E501 38 | if include_optional : 39 | return RepresentativeStory( 40 | id = 56, 41 | permalink = '0', 42 | published_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 43 | title = '0' 44 | ) 45 | else : 46 | return RepresentativeStory( 47 | ) 48 | 49 | def testRepresentativeStory(self): 50 | """Test RepresentativeStory""" 51 | inst_req_only = self.make_instance(include_optional=False) 52 | inst_req_and_optional = self.make_instance(include_optional=True) 53 | 54 | 55 | if __name__ == '__main__': 56 | unittest.main() 57 | -------------------------------------------------------------------------------- /test/test_scope.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.scope import Scope # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestScope(unittest.TestCase): 24 | """Scope unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Scope 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.scope.Scope() # noqa: E501 38 | if include_optional : 39 | return Scope( 40 | city = '0', 41 | country = '0', 42 | level = 'international', 43 | state = '0' 44 | ) 45 | else : 46 | return Scope( 47 | ) 48 | 49 | def testScope(self): 50 | """Test Scope""" 51 | inst_req_only = self.make_instance(include_optional=False) 52 | inst_req_and_optional = self.make_instance(include_optional=True) 53 | 54 | 55 | if __name__ == '__main__': 56 | unittest.main() 57 | -------------------------------------------------------------------------------- /test/test_scope_level.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.scope_level import ScopeLevel # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestScopeLevel(unittest.TestCase): 24 | """ScopeLevel unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test ScopeLevel 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.scope_level.ScopeLevel() # noqa: E501 38 | if include_optional : 39 | return ScopeLevel( 40 | ) 41 | else : 42 | return ScopeLevel( 43 | ) 44 | 45 | def testScopeLevel(self): 46 | """Test ScopeLevel""" 47 | inst_req_only = self.make_instance(include_optional=False) 48 | inst_req_and_optional = self.make_instance(include_optional=True) 49 | 50 | 51 | if __name__ == '__main__': 52 | unittest.main() 53 | -------------------------------------------------------------------------------- /test/test_sentiment.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.sentiment import Sentiment # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestSentiment(unittest.TestCase): 24 | """Sentiment unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Sentiment 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.sentiment.Sentiment() # noqa: E501 38 | if include_optional : 39 | return Sentiment( 40 | polarity = 'positive', 41 | score = 0 42 | ) 43 | else : 44 | return Sentiment( 45 | ) 46 | 47 | def testSentiment(self): 48 | """Test Sentiment""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | 53 | if __name__ == '__main__': 54 | unittest.main() 55 | -------------------------------------------------------------------------------- /test/test_sentiment_polarity.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.sentiment_polarity import SentimentPolarity # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestSentimentPolarity(unittest.TestCase): 24 | """SentimentPolarity unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test SentimentPolarity 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.sentiment_polarity.SentimentPolarity() # noqa: E501 38 | if include_optional : 39 | return SentimentPolarity( 40 | ) 41 | else : 42 | return SentimentPolarity( 43 | ) 44 | 45 | def testSentimentPolarity(self): 46 | """Test SentimentPolarity""" 47 | inst_req_only = self.make_instance(include_optional=False) 48 | inst_req_and_optional = self.make_instance(include_optional=True) 49 | 50 | 51 | if __name__ == '__main__': 52 | unittest.main() 53 | -------------------------------------------------------------------------------- /test/test_sentiments.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.sentiments import Sentiments # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestSentiments(unittest.TestCase): 24 | """Sentiments unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Sentiments 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.sentiments.Sentiments() # noqa: E501 38 | if include_optional : 39 | return Sentiments( 40 | body = aylien_news_api.models.sentiment.Sentiment( 41 | polarity = 'positive', 42 | score = 0, ), 43 | title = aylien_news_api.models.sentiment.Sentiment( 44 | polarity = 'positive', 45 | score = 0, ) 46 | ) 47 | else : 48 | return Sentiments( 49 | ) 50 | 51 | def testSentiments(self): 52 | """Test Sentiments""" 53 | inst_req_only = self.make_instance(include_optional=False) 54 | inst_req_and_optional = self.make_instance(include_optional=True) 55 | 56 | 57 | if __name__ == '__main__': 58 | unittest.main() 59 | -------------------------------------------------------------------------------- /test/test_share_count.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.share_count import ShareCount # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestShareCount(unittest.TestCase): 24 | """ShareCount unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test ShareCount 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.share_count.ShareCount() # noqa: E501 38 | if include_optional : 39 | return ShareCount( 40 | count = 56, 41 | fetched_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') 42 | ) 43 | else : 44 | return ShareCount( 45 | ) 46 | 47 | def testShareCount(self): 48 | """Test ShareCount""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | 53 | if __name__ == '__main__': 54 | unittest.main() 55 | -------------------------------------------------------------------------------- /test/test_share_counts.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.share_counts import ShareCounts # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestShareCounts(unittest.TestCase): 24 | """ShareCounts unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test ShareCounts 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.share_counts.ShareCounts() # noqa: E501 38 | if include_optional : 39 | return ShareCounts( 40 | facebook = [ 41 | aylien_news_api.models.share_count.ShareCount( 42 | count = 56, 43 | fetched_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) 44 | ], 45 | google_plus = [ 46 | aylien_news_api.models.share_count.ShareCount( 47 | count = 56, 48 | fetched_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) 49 | ], 50 | linkedin = [ 51 | aylien_news_api.models.share_count.ShareCount( 52 | count = 56, 53 | fetched_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) 54 | ], 55 | reddit = [ 56 | aylien_news_api.models.share_count.ShareCount( 57 | count = 56, 58 | fetched_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) 59 | ] 60 | ) 61 | else : 62 | return ShareCounts( 63 | ) 64 | 65 | def testShareCounts(self): 66 | """Test ShareCounts""" 67 | inst_req_only = self.make_instance(include_optional=False) 68 | inst_req_and_optional = self.make_instance(include_optional=True) 69 | 70 | 71 | if __name__ == '__main__': 72 | unittest.main() 73 | -------------------------------------------------------------------------------- /test/test_source.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.source import Source # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestSource(unittest.TestCase): 24 | """Source unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Source 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.source.Source() # noqa: E501 38 | if include_optional : 39 | return Source( 40 | description = '0', 41 | domain = '0', 42 | home_page_url = '0', 43 | id = 56, 44 | links_in_count = 56, 45 | locations = [ 46 | aylien_news_api.models.location.Location( 47 | city = '0', 48 | country = '0', 49 | state = '0', ) 50 | ], 51 | logo_url = '0', 52 | name = '0', 53 | rankings = aylien_news_api.models.rankings.Rankings( 54 | alexa = [ 55 | aylien_news_api.models.rank.Rank( 56 | country = '0', 57 | fetched_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 58 | rank = 56, ) 59 | ], ), 60 | scopes = [ 61 | aylien_news_api.models.scope.Scope( 62 | city = '0', 63 | country = '0', 64 | level = 'international', 65 | state = '0', ) 66 | ], 67 | title = '0' 68 | ) 69 | else : 70 | return Source( 71 | ) 72 | 73 | def testSource(self): 74 | """Test Source""" 75 | inst_req_only = self.make_instance(include_optional=False) 76 | inst_req_and_optional = self.make_instance(include_optional=True) 77 | 78 | 79 | if __name__ == '__main__': 80 | unittest.main() 81 | -------------------------------------------------------------------------------- /test/test_story_cluster.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.story_cluster import StoryCluster # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestStoryCluster(unittest.TestCase): 24 | """StoryCluster unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test StoryCluster 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.story_cluster.StoryCluster() # noqa: E501 38 | if include_optional : 39 | return StoryCluster( 40 | id = 56, 41 | phrases = [ 42 | '0' 43 | ], 44 | score = 1.337, 45 | size = 56, 46 | stories = [ 47 | 56 48 | ] 49 | ) 50 | else : 51 | return StoryCluster( 52 | ) 53 | 54 | def testStoryCluster(self): 55 | """Test StoryCluster""" 56 | inst_req_only = self.make_instance(include_optional=False) 57 | inst_req_and_optional = self.make_instance(include_optional=True) 58 | 59 | 60 | if __name__ == '__main__': 61 | unittest.main() 62 | -------------------------------------------------------------------------------- /test/test_story_links.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.story_links import StoryLinks # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestStoryLinks(unittest.TestCase): 24 | """StoryLinks unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test StoryLinks 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.story_links.StoryLinks() # noqa: E501 38 | if include_optional : 39 | return StoryLinks( 40 | canonical = '0', 41 | permalink = '0', 42 | related_stories = '0', 43 | clusters = '0' 44 | ) 45 | else : 46 | return StoryLinks( 47 | ) 48 | 49 | def testStoryLinks(self): 50 | """Test StoryLinks""" 51 | inst_req_only = self.make_instance(include_optional=False) 52 | inst_req_and_optional = self.make_instance(include_optional=True) 53 | 54 | 55 | if __name__ == '__main__': 56 | unittest.main() 57 | -------------------------------------------------------------------------------- /test/test_story_translation.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.story_translation import StoryTranslation # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestStoryTranslation(unittest.TestCase): 24 | """StoryTranslation unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test StoryTranslation 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.story_translation.StoryTranslation() # noqa: E501 38 | if include_optional : 39 | return StoryTranslation( 40 | body = '0', 41 | title = '0' 42 | ) 43 | else : 44 | return StoryTranslation( 45 | ) 46 | 47 | def testStoryTranslation(self): 48 | """Test StoryTranslation""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | 53 | if __name__ == '__main__': 54 | unittest.main() 55 | -------------------------------------------------------------------------------- /test/test_story_translations.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.story_translations import StoryTranslations # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestStoryTranslations(unittest.TestCase): 24 | """StoryTranslations unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test StoryTranslations 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.story_translations.StoryTranslations() # noqa: E501 38 | if include_optional : 39 | return StoryTranslations( 40 | en = aylien_news_api.models.story_translation.StoryTranslation( 41 | body = '0', 42 | title = '0', ) 43 | ) 44 | else : 45 | return StoryTranslations( 46 | ) 47 | 48 | def testStoryTranslations(self): 49 | """Test StoryTranslations""" 50 | inst_req_only = self.make_instance(include_optional=False) 51 | inst_req_and_optional = self.make_instance(include_optional=True) 52 | 53 | 54 | if __name__ == '__main__': 55 | unittest.main() 56 | -------------------------------------------------------------------------------- /test/test_story_translations_en.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 3.0 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import aylien_news_api 19 | from aylien_news_api.models.story_translations_en import StoryTranslationsEn # noqa: E501 20 | from aylien_news_api.rest import ApiException 21 | 22 | 23 | class TestStoryTranslationsEn(unittest.TestCase): 24 | """StoryTranslationsEn unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testStoryTranslationsEn(self): 33 | """Test StoryTranslationsEn""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = aylien_news_api.models.story_translations_en.StoryTranslationsEn() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_summary.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.summary import Summary # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestSummary(unittest.TestCase): 24 | """Summary unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Summary 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.summary.Summary() # noqa: E501 38 | if include_optional : 39 | return Summary( 40 | sentences = [ 41 | '0' 42 | ] 43 | ) 44 | else : 45 | return Summary( 46 | ) 47 | 48 | def testSummary(self): 49 | """Test Summary""" 50 | inst_req_only = self.make_instance(include_optional=False) 51 | inst_req_and_optional = self.make_instance(include_optional=True) 52 | 53 | 54 | if __name__ == '__main__': 55 | unittest.main() 56 | -------------------------------------------------------------------------------- /test/test_time_series.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.time_series import TimeSeries # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestTimeSeries(unittest.TestCase): 24 | """TimeSeries unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test TimeSeries 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.time_series.TimeSeries() # noqa: E501 38 | if include_optional : 39 | return TimeSeries( 40 | count = 56, 41 | published_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 42 | sentiment = aylien_news_api.models.aggregated_sentiment.AggregatedSentiment( 43 | positive = 56, 44 | neutral = 56, 45 | negative = 56, ) 46 | ) 47 | else : 48 | return TimeSeries( 49 | ) 50 | 51 | def testTimeSeries(self): 52 | """Test TimeSeries""" 53 | inst_req_only = self.make_instance(include_optional=False) 54 | inst_req_and_optional = self.make_instance(include_optional=True) 55 | 56 | 57 | if __name__ == '__main__': 58 | unittest.main() 59 | -------------------------------------------------------------------------------- /test/test_time_series_list.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.time_series_list import TimeSeriesList # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestTimeSeriesList(unittest.TestCase): 24 | """TimeSeriesList unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test TimeSeriesList 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.time_series_list.TimeSeriesList() # noqa: E501 38 | if include_optional : 39 | return TimeSeriesList( 40 | period = '0', 41 | published_at_end = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 42 | published_at_start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 43 | time_series = [ 44 | aylien_news_api.models.time_series.TimeSeries( 45 | count = 56, 46 | published_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 47 | sentiment = aylien_news_api.models.aggregated_sentiment.AggregatedSentiment( 48 | positive = 56, 49 | neutral = 56, 50 | negative = 56, ), ) 51 | ] 52 | ) 53 | else : 54 | return TimeSeriesList( 55 | ) 56 | 57 | def testTimeSeriesList(self): 58 | """Test TimeSeriesList""" 59 | inst_req_only = self.make_instance(include_optional=False) 60 | inst_req_and_optional = self.make_instance(include_optional=True) 61 | 62 | 63 | if __name__ == '__main__': 64 | unittest.main() 65 | -------------------------------------------------------------------------------- /test/test_trend.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.trend import Trend # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestTrend(unittest.TestCase): 24 | """Trend unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Trend 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.trend.Trend() # noqa: E501 38 | if include_optional : 39 | return Trend( 40 | count = 56, 41 | value = '0', 42 | sentiment = aylien_news_api.models.aggregated_sentiment.AggregatedSentiment( 43 | positive = 56, 44 | neutral = 56, 45 | negative = 56, ) 46 | ) 47 | else : 48 | return Trend( 49 | ) 50 | 51 | def testTrend(self): 52 | """Test Trend""" 53 | inst_req_only = self.make_instance(include_optional=False) 54 | inst_req_and_optional = self.make_instance(include_optional=True) 55 | 56 | 57 | if __name__ == '__main__': 58 | unittest.main() 59 | -------------------------------------------------------------------------------- /test/test_trends.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.trends import Trends # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestTrends(unittest.TestCase): 24 | """Trends unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Trends 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.trends.Trends() # noqa: E501 38 | if include_optional : 39 | return Trends( 40 | field = '0', 41 | trends = [ 42 | aylien_news_api.models.trend.Trend( 43 | count = 56, 44 | value = '0', 45 | sentiment = aylien_news_api.models.aggregated_sentiment.AggregatedSentiment( 46 | positive = 56, 47 | neutral = 56, 48 | negative = 56, ), ) 49 | ], 50 | published_at_end = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 51 | published_at_start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') 52 | ) 53 | else : 54 | return Trends( 55 | ) 56 | 57 | def testTrends(self): 58 | """Test Trends""" 59 | inst_req_only = self.make_instance(include_optional=False) 60 | inst_req_and_optional = self.make_instance(include_optional=True) 61 | 62 | 63 | if __name__ == '__main__': 64 | unittest.main() 65 | -------------------------------------------------------------------------------- /test/test_warning.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | AYLIEN News API 5 | 6 | The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 7 | 8 | The version of the OpenAPI document: 5.2.3 9 | Contact: support@aylien.com 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | import datetime 18 | 19 | import aylien_news_api 20 | from aylien_news_api.models.warning import Warning # noqa: E501 21 | from aylien_news_api.rest import ApiException 22 | 23 | class TestWarning(unittest.TestCase): 24 | """Warning unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def make_instance(self, include_optional): 33 | """Test Warning 34 | include_option is a boolean, when False only required 35 | params are included, when True both required and 36 | optional params are included """ 37 | # model = aylien_news_api.models.warning.Warning() # noqa: E501 38 | if include_optional : 39 | return Warning( 40 | id = '0', 41 | links = aylien_news_api.models.error_links.ErrorLinks( 42 | about = '0', 43 | docs = '0', ), 44 | detail = '0' 45 | ) 46 | else : 47 | return Warning( 48 | ) 49 | 50 | def testWarning(self): 51 | """Test Warning""" 52 | inst_req_only = self.make_instance(include_optional=False) 53 | inst_req_and_optional = self.make_instance(include_optional=True) 54 | 55 | 56 | if __name__ == '__main__': 57 | unittest.main() 58 | -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- 1 | [tox] 2 | envlist = py27, py3 3 | 4 | [testenv] 5 | deps=-r{toxinidir}/requirements.txt 6 | -r{toxinidir}/test-requirements.txt 7 | 8 | commands= 9 | pytest --cov=aylien_news_api 10 | --------------------------------------------------------------------------------