diff --git a/README.md b/README.md index fb155bb..db8abcd 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git Then import the package: ```python -import listmonk_client +import listmonk ``` ### Setuptools @@ -39,7 +39,7 @@ python setup.py install --user Then import the package: ```python -import listmonk_client +import listmonk ``` ### Tests @@ -53,13 +53,13 @@ Please follow the [installation procedure](#installation--usage) and then run th ```python import time -import listmonk_client -from listmonk_client.rest import ApiException +import listmonk +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -69,15 +69,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.AdminApi(api_client) + api_instance = listmonk.AdminApi(api_client) try: api_response = api_instance.reload_app() diff --git a/docs/AdminApi.md b/docs/AdminApi.md index 5858330..bd593e8 100644 --- a/docs/AdminApi.md +++ b/docs/AdminApi.md @@ -21,14 +21,14 @@ restarts the app ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -38,15 +38,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.AdminApi(api_client) + api_instance = listmonk.AdminApi(api_client) try: api_response = api_instance.reload_app() diff --git a/docs/Bounce.md b/docs/Bounce.md index 801181e..906398d 100644 --- a/docs/Bounce.md +++ b/docs/Bounce.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.bounce import Bounce +from listmonk.models.bounce import Bounce # TODO update the JSON string below json = "{}" diff --git a/docs/BounceResultsInner.md b/docs/BounceResultsInner.md index 5414cf1..dd8eef2 100644 --- a/docs/BounceResultsInner.md +++ b/docs/BounceResultsInner.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.bounce_results_inner import BounceResultsInner +from listmonk.models.bounce_results_inner import BounceResultsInner # TODO update the JSON string below json = "{}" diff --git a/docs/BounceResultsInnerCampaign.md b/docs/BounceResultsInnerCampaign.md index c1846d1..4da09cf 100644 --- a/docs/BounceResultsInnerCampaign.md +++ b/docs/BounceResultsInnerCampaign.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.bounce_results_inner_campaign import BounceResultsInnerCampaign +from listmonk.models.bounce_results_inner_campaign import BounceResultsInnerCampaign # TODO update the JSON string below json = "{}" diff --git a/docs/BouncesApi.md b/docs/BouncesApi.md index bb19b3c..8401d0f 100644 --- a/docs/BouncesApi.md +++ b/docs/BouncesApi.md @@ -24,14 +24,14 @@ handles bounce deletion, either a single one (ID in the URI), or a list. ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -41,15 +41,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.BouncesApi(api_client) + api_instance = listmonk.BouncesApi(api_client) id = 56 # int | The id value of the bounce you want to delete. try: @@ -102,14 +102,14 @@ handles retrieval of bounce records. ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -119,15 +119,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.BouncesApi(api_client) + api_instance = listmonk.BouncesApi(api_client) all = True # bool | flag for multiple bounce record deletion (optional) id = 'id_example' # str | list of bounce ids to delete (optional) @@ -182,14 +182,14 @@ handles retrieval of bounce record by id ```python import time import os -import listmonk_client -from listmonk_client.models.get_bounce_by_id200_response import GetBounceById200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_bounce_by_id200_response import GetBounceById200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -199,15 +199,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.BouncesApi(api_client) + api_instance = listmonk.BouncesApi(api_client) id = 56 # int | The id value of the bounce you want to retreive. try: @@ -260,14 +260,14 @@ handles retrieval of bounce records. ```python import time import os -import listmonk_client -from listmonk_client.models.get_bounces200_response import GetBounces200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_bounces200_response import GetBounces200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -277,15 +277,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.BouncesApi(api_client) + api_instance = listmonk.BouncesApi(api_client) campaign_id = 56 # int | bounce record retrieval of particular campaign (optional) page = 56 # int | total number of pages (optional) per_page = 56 # int | number of items per page (optional) diff --git a/docs/Campaign.md b/docs/Campaign.md index 39e9a1a..74f9d9b 100644 --- a/docs/Campaign.md +++ b/docs/Campaign.md @@ -30,7 +30,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.campaign import Campaign +from listmonk.models.campaign import Campaign # TODO update the JSON string below json = "{}" diff --git a/docs/CampaignAnalyticsCount.md b/docs/CampaignAnalyticsCount.md index 0e2e464..ef41b69 100644 --- a/docs/CampaignAnalyticsCount.md +++ b/docs/CampaignAnalyticsCount.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.campaign_analytics_count import CampaignAnalyticsCount +from listmonk.models.campaign_analytics_count import CampaignAnalyticsCount # TODO update the JSON string below json = "{}" diff --git a/docs/CampaignContentRequest.md b/docs/CampaignContentRequest.md index 4756e7f..96d1ef2 100644 --- a/docs/CampaignContentRequest.md +++ b/docs/CampaignContentRequest.md @@ -32,7 +32,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.campaign_content_request import CampaignContentRequest +from listmonk.models.campaign_content_request import CampaignContentRequest # TODO update the JSON string below json = "{}" diff --git a/docs/CampaignRequest.md b/docs/CampaignRequest.md index 46f8a66..ea9532f 100644 --- a/docs/CampaignRequest.md +++ b/docs/CampaignRequest.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.campaign_request import CampaignRequest +from listmonk.models.campaign_request import CampaignRequest # TODO update the JSON string below json = "{}" diff --git a/docs/CampaignRequestSendAt.md b/docs/CampaignRequestSendAt.md index 38252b5..053ef9e 100644 --- a/docs/CampaignRequestSendAt.md +++ b/docs/CampaignRequestSendAt.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.campaign_request_send_at import CampaignRequestSendAt +from listmonk.models.campaign_request_send_at import CampaignRequestSendAt # TODO update the JSON string below json = "{}" diff --git a/docs/CampaignStats.md b/docs/CampaignStats.md index ed5a626..4e58997 100644 --- a/docs/CampaignStats.md +++ b/docs/CampaignStats.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.campaign_stats import CampaignStats +from listmonk.models.campaign_stats import CampaignStats # TODO update the JSON string below json = "{}" diff --git a/docs/CampaignUpdate.md b/docs/CampaignUpdate.md index 1fd03b6..1c6de77 100644 --- a/docs/CampaignUpdate.md +++ b/docs/CampaignUpdate.md @@ -25,7 +25,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.campaign_update import CampaignUpdate +from listmonk.models.campaign_update import CampaignUpdate # TODO update the JSON string below json = "{}" diff --git a/docs/CampaignsApi.md b/docs/CampaignsApi.md index 2c1e717..5633253 100644 --- a/docs/CampaignsApi.md +++ b/docs/CampaignsApi.md @@ -34,15 +34,15 @@ handles campaign creation ```python import time import os -import listmonk_client -from listmonk_client.models.campaign_request import CampaignRequest -from listmonk_client.models.create_campaign200_response import CreateCampaign200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.campaign_request import CampaignRequest +from listmonk.models.create_campaign200_response import CreateCampaign200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -52,16 +52,16 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.CampaignsApi(api_client) - campaign_request = listmonk_client.CampaignRequest() # CampaignRequest | new campaign info (optional) + api_instance = listmonk.CampaignsApi(api_client) + campaign_request = listmonk.CampaignRequest() # CampaignRequest | new campaign info (optional) try: api_response = api_instance.create_campaign(campaign_request=campaign_request) @@ -113,15 +113,15 @@ handles campaign content (body) format conversions. ```python import time import os -import listmonk_client -from listmonk_client.models.campaign_content_request import CampaignContentRequest -from listmonk_client.models.get_import_subscriber_stats200_response import GetImportSubscriberStats200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.campaign_content_request import CampaignContentRequest +from listmonk.models.get_import_subscriber_stats200_response import GetImportSubscriberStats200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -131,17 +131,17 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.CampaignsApi(api_client) + api_instance = listmonk.CampaignsApi(api_client) id = 56 # int | ID of campaign that you choose to create content - campaign_content_request = listmonk_client.CampaignContentRequest() # CampaignContentRequest | updated campaign content (optional) + campaign_content_request = listmonk.CampaignContentRequest() # CampaignContentRequest | updated campaign content (optional) try: api_response = api_instance.create_campaign_content_by_id(id, campaign_content_request=campaign_content_request) @@ -194,14 +194,14 @@ deletes specified campaign ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -211,15 +211,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.CampaignsApi(api_client) + api_instance = listmonk.CampaignsApi(api_client) id = 56 # int | The id value of the campaign you want to get. try: @@ -272,14 +272,14 @@ retrieves view counts for a campaign. ```python import time import os -import listmonk_client -from listmonk_client.models.get_campaign_analytics200_response import GetCampaignAnalytics200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_campaign_analytics200_response import GetCampaignAnalytics200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -289,15 +289,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.CampaignsApi(api_client) + api_instance = listmonk.CampaignsApi(api_client) type = 'type_example' # str | type of stats, either links, view, click or bounce var_from = 'var_from_example' # str | start value of date range to = 'to_example' # str | end value of date range @@ -356,14 +356,14 @@ handles retrieval of campaigns. ```python import time import os -import listmonk_client -from listmonk_client.models.get_campaign_by_id200_response import GetCampaignById200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_campaign_by_id200_response import GetCampaignById200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -373,15 +373,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.CampaignsApi(api_client) + api_instance = listmonk.CampaignsApi(api_client) id = 56 # int | The id value of the campaign you want to get. no_body = True # bool | boolean flag for response with/without body (optional) @@ -436,14 +436,14 @@ handles retrieval of campaigns ```python import time import os -import listmonk_client -from listmonk_client.models.get_campaigns200_response import GetCampaigns200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_campaigns200_response import GetCampaigns200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -453,15 +453,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.CampaignsApi(api_client) + api_instance = listmonk.CampaignsApi(api_client) status = ['status_example'] # List[str] | status flag of campaign (optional) no_body = True # bool | boolean flag for response with/without body (optional) page = 56 # int | total number of pages (optional) @@ -527,14 +527,14 @@ returns stats of a given set of campaign IDs. ```python import time import os -import listmonk_client -from listmonk_client.models.get_running_campaign_stats200_response import GetRunningCampaignStats200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_running_campaign_stats200_response import GetRunningCampaignStats200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -544,15 +544,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.CampaignsApi(api_client) + api_instance = listmonk.CampaignsApi(api_client) try: api_response = api_instance.get_running_campaign_stats() @@ -601,13 +601,13 @@ renders the HTML preview of a campaign body ```python import time import os -import listmonk_client -from listmonk_client.rest import ApiException +import listmonk +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -617,15 +617,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.CampaignsApi(api_client) + api_instance = listmonk.CampaignsApi(api_client) id = 56 # int | The id value of the campaign you want to get the preview of template_id = 56 # int | template id (optional) @@ -680,13 +680,13 @@ renders the HTML preview of a campaign body ```python import time import os -import listmonk_client -from listmonk_client.rest import ApiException +import listmonk +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -696,15 +696,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.CampaignsApi(api_client) + api_instance = listmonk.CampaignsApi(api_client) id = 56 # int | The id value of the campaign you want to get the preview of template_id = 56 # int | template id (optional) content_type = 'content_type_example' # str | content type (optional) @@ -763,14 +763,14 @@ handles sending of campaign message to arbitrary subscribers for testing ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -780,15 +780,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.CampaignsApi(api_client) + api_instance = listmonk.CampaignsApi(api_client) id = 56 # int | ID of campaign that you want to test template_id = 56 # int | template id (optional) @@ -843,15 +843,15 @@ handles campaign status modification ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.update_campaign_archive_by_id_request import UpdateCampaignArchiveByIdRequest -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.update_campaign_archive_by_id_request import UpdateCampaignArchiveByIdRequest +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -861,17 +861,17 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.CampaignsApi(api_client) + api_instance = listmonk.CampaignsApi(api_client) id = 56 # int | The id value of the campaign you want to get the preview of - update_campaign_archive_by_id_request = listmonk_client.UpdateCampaignArchiveByIdRequest() # UpdateCampaignArchiveByIdRequest | archive campaign related parameters (optional) + update_campaign_archive_by_id_request = listmonk.UpdateCampaignArchiveByIdRequest() # UpdateCampaignArchiveByIdRequest | archive campaign related parameters (optional) try: api_response = api_instance.update_campaign_archive_by_id(id, @@ -925,15 +925,15 @@ handle updation of campaign ```python import time import os -import listmonk_client -from listmonk_client.models.campaign_request import CampaignRequest -from listmonk_client.models.create_campaign200_response import CreateCampaign200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.campaign_request import CampaignRequest +from listmonk.models.create_campaign200_response import CreateCampaign200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -943,17 +943,17 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.CampaignsApi(api_client) + api_instance = listmonk.CampaignsApi(api_client) id = 56 # int | the id value of campaign you want to update - campaign_request = listmonk_client.CampaignRequest() # CampaignRequest | updated campaign fields (optional) + campaign_request = listmonk.CampaignRequest() # CampaignRequest | updated campaign fields (optional) try: api_response = api_instance.update_campaign_by_id(id, campaign_request=campaign_request) @@ -1006,15 +1006,15 @@ handles campaign status modification ```python import time import os -import listmonk_client -from listmonk_client.models.get_campaign_by_id200_response import GetCampaignById200Response -from listmonk_client.models.update_campaign_status_by_id_request import UpdateCampaignStatusByIdRequest -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_campaign_by_id200_response import GetCampaignById200Response +from listmonk.models.update_campaign_status_by_id_request import UpdateCampaignStatusByIdRequest +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -1024,17 +1024,17 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.CampaignsApi(api_client) + api_instance = listmonk.CampaignsApi(api_client) id = 56 # int | The id value of the campaign you want to get the preview of - update_campaign_status_by_id_request = listmonk_client.UpdateCampaignStatusByIdRequest() # UpdateCampaignStatusByIdRequest | campaign status update (optional) + update_campaign_status_by_id_request = listmonk.UpdateCampaignStatusByIdRequest() # UpdateCampaignStatusByIdRequest | campaign status update (optional) try: api_response = api_instance.update_campaign_status_by_id(id, @@ -1088,13 +1088,13 @@ renders the HTML preview of a campaign body ```python import time import os -import listmonk_client -from listmonk_client.rest import ApiException +import listmonk +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -1104,15 +1104,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.CampaignsApi(api_client) + api_instance = listmonk.CampaignsApi(api_client) id = 56 # int | The id value of the campaign you want to get the preview of template_id = 56 # int | template id (optional) content_type = 'content_type_example' # str | content type (optional) diff --git a/docs/CreateCampaign200Response.md b/docs/CreateCampaign200Response.md index d5c81e6..33c5d96 100644 --- a/docs/CreateCampaign200Response.md +++ b/docs/CreateCampaign200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.create_campaign200_response import CreateCampaign200Response +from listmonk.models.create_campaign200_response import CreateCampaign200Response # TODO update the JSON string below json = "{}" diff --git a/docs/CreateList200Response.md b/docs/CreateList200Response.md index 473fad9..e37902b 100644 --- a/docs/CreateList200Response.md +++ b/docs/CreateList200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.create_list200_response import CreateList200Response +from listmonk.models.create_list200_response import CreateList200Response # TODO update the JSON string below json = "{}" diff --git a/docs/CreateSubscriber200Response.md b/docs/CreateSubscriber200Response.md index 77544e7..4969321 100644 --- a/docs/CreateSubscriber200Response.md +++ b/docs/CreateSubscriber200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.create_subscriber200_response import CreateSubscriber200Response +from listmonk.models.create_subscriber200_response import CreateSubscriber200Response # TODO update the JSON string below json = "{}" diff --git a/docs/DashboardChart.md b/docs/DashboardChart.md index c396dc1..20c9f9a 100644 --- a/docs/DashboardChart.md +++ b/docs/DashboardChart.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.dashboard_chart import DashboardChart +from listmonk.models.dashboard_chart import DashboardChart # TODO update the JSON string below json = "{}" diff --git a/docs/DashboardChartLinkClicksInner.md b/docs/DashboardChartLinkClicksInner.md index fb6365a..a676459 100644 --- a/docs/DashboardChartLinkClicksInner.md +++ b/docs/DashboardChartLinkClicksInner.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.dashboard_chart_link_clicks_inner import DashboardChartLinkClicksInner +from listmonk.models.dashboard_chart_link_clicks_inner import DashboardChartLinkClicksInner # TODO update the JSON string below json = "{}" diff --git a/docs/DashboardCount.md b/docs/DashboardCount.md index 0abd35a..b481302 100644 --- a/docs/DashboardCount.md +++ b/docs/DashboardCount.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.dashboard_count import DashboardCount +from listmonk.models.dashboard_count import DashboardCount # TODO update the JSON string below json = "{}" diff --git a/docs/DashboardCountData.md b/docs/DashboardCountData.md index 2832124..8861c00 100644 --- a/docs/DashboardCountData.md +++ b/docs/DashboardCountData.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.dashboard_count_data import DashboardCountData +from listmonk.models.dashboard_count_data import DashboardCountData # TODO update the JSON string below json = "{}" diff --git a/docs/DashboardCountDataCampaigns.md b/docs/DashboardCountDataCampaigns.md index 0ca8fc1..6dd2e5f 100644 --- a/docs/DashboardCountDataCampaigns.md +++ b/docs/DashboardCountDataCampaigns.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.dashboard_count_data_campaigns import DashboardCountDataCampaigns +from listmonk.models.dashboard_count_data_campaigns import DashboardCountDataCampaigns # TODO update the JSON string below json = "{}" diff --git a/docs/DashboardCountDataCampaignsByStatus.md b/docs/DashboardCountDataCampaignsByStatus.md index 10ecc20..9947ddf 100644 --- a/docs/DashboardCountDataCampaignsByStatus.md +++ b/docs/DashboardCountDataCampaignsByStatus.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.dashboard_count_data_campaigns_by_status import DashboardCountDataCampaignsByStatus +from listmonk.models.dashboard_count_data_campaigns_by_status import DashboardCountDataCampaignsByStatus # TODO update the JSON string below json = "{}" diff --git a/docs/DashboardCountDataLists.md b/docs/DashboardCountDataLists.md index 846d53f..350a67c 100644 --- a/docs/DashboardCountDataLists.md +++ b/docs/DashboardCountDataLists.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.dashboard_count_data_lists import DashboardCountDataLists +from listmonk.models.dashboard_count_data_lists import DashboardCountDataLists # TODO update the JSON string below json = "{}" diff --git a/docs/DashboardCountDataSubscribers.md b/docs/DashboardCountDataSubscribers.md index 45f73b1..1ea9aa9 100644 --- a/docs/DashboardCountDataSubscribers.md +++ b/docs/DashboardCountDataSubscribers.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.dashboard_count_data_subscribers import DashboardCountDataSubscribers +from listmonk.models.dashboard_count_data_subscribers import DashboardCountDataSubscribers # TODO update the JSON string below json = "{}" diff --git a/docs/DeleteGCSubscribers200Response.md b/docs/DeleteGCSubscribers200Response.md index 67cc587..60fc3d6 100644 --- a/docs/DeleteGCSubscribers200Response.md +++ b/docs/DeleteGCSubscribers200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.delete_gc_subscribers200_response import DeleteGCSubscribers200Response +from listmonk.models.delete_gc_subscribers200_response import DeleteGCSubscribers200Response # TODO update the JSON string below json = "{}" diff --git a/docs/DeleteGCSubscribers200ResponseData.md b/docs/DeleteGCSubscribers200ResponseData.md index 1f4514f..1011924 100644 --- a/docs/DeleteGCSubscribers200ResponseData.md +++ b/docs/DeleteGCSubscribers200ResponseData.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.delete_gc_subscribers200_response_data import DeleteGCSubscribers200ResponseData +from listmonk.models.delete_gc_subscribers200_response_data import DeleteGCSubscribers200ResponseData # TODO update the JSON string below json = "{}" diff --git a/docs/GetBounceById200Response.md b/docs/GetBounceById200Response.md index 5d9182f..b5eb296 100644 --- a/docs/GetBounceById200Response.md +++ b/docs/GetBounceById200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_bounce_by_id200_response import GetBounceById200Response +from listmonk.models.get_bounce_by_id200_response import GetBounceById200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetBounces200Response.md b/docs/GetBounces200Response.md index f929469..735d4a8 100644 --- a/docs/GetBounces200Response.md +++ b/docs/GetBounces200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_bounces200_response import GetBounces200Response +from listmonk.models.get_bounces200_response import GetBounces200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetBounces200ResponseData.md b/docs/GetBounces200ResponseData.md index d69049c..bfccf70 100644 --- a/docs/GetBounces200ResponseData.md +++ b/docs/GetBounces200ResponseData.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_bounces200_response_data import GetBounces200ResponseData +from listmonk.models.get_bounces200_response_data import GetBounces200ResponseData # TODO update the JSON string below json = "{}" diff --git a/docs/GetCampaignAnalytics200Response.md b/docs/GetCampaignAnalytics200Response.md index 280b95d..08ac14c 100644 --- a/docs/GetCampaignAnalytics200Response.md +++ b/docs/GetCampaignAnalytics200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_campaign_analytics200_response import GetCampaignAnalytics200Response +from listmonk.models.get_campaign_analytics200_response import GetCampaignAnalytics200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetCampaignById200Response.md b/docs/GetCampaignById200Response.md index e9324a3..f6ec064 100644 --- a/docs/GetCampaignById200Response.md +++ b/docs/GetCampaignById200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_campaign_by_id200_response import GetCampaignById200Response +from listmonk.models.get_campaign_by_id200_response import GetCampaignById200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetCampaigns200Response.md b/docs/GetCampaigns200Response.md index 140a466..5ada269 100644 --- a/docs/GetCampaigns200Response.md +++ b/docs/GetCampaigns200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_campaigns200_response import GetCampaigns200Response +from listmonk.models.get_campaigns200_response import GetCampaigns200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetCampaigns200ResponseData.md b/docs/GetCampaigns200ResponseData.md index 5ad617f..ceb75d2 100644 --- a/docs/GetCampaigns200ResponseData.md +++ b/docs/GetCampaigns200ResponseData.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_campaigns200_response_data import GetCampaigns200ResponseData +from listmonk.models.get_campaigns200_response_data import GetCampaigns200ResponseData # TODO update the JSON string below json = "{}" diff --git a/docs/GetDashboardCharts200Response.md b/docs/GetDashboardCharts200Response.md index a9aa0e8..748ed7c 100644 --- a/docs/GetDashboardCharts200Response.md +++ b/docs/GetDashboardCharts200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_dashboard_charts200_response import GetDashboardCharts200Response +from listmonk.models.get_dashboard_charts200_response import GetDashboardCharts200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetDashboardCounts200Response.md b/docs/GetDashboardCounts200Response.md index 8013bf1..a6b9b6b 100644 --- a/docs/GetDashboardCounts200Response.md +++ b/docs/GetDashboardCounts200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_dashboard_counts200_response import GetDashboardCounts200Response +from listmonk.models.get_dashboard_counts200_response import GetDashboardCounts200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetHealthCheck200Response.md b/docs/GetHealthCheck200Response.md index 80b332c..c16c1ea 100644 --- a/docs/GetHealthCheck200Response.md +++ b/docs/GetHealthCheck200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.get_health_check200_response import GetHealthCheck200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetI18nLang200Response.md b/docs/GetI18nLang200Response.md index ec9efe3..086a041 100644 --- a/docs/GetI18nLang200Response.md +++ b/docs/GetI18nLang200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_i18n_lang200_response import GetI18nLang200Response +from listmonk.models.get_i18n_lang200_response import GetI18nLang200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetImportSubscriberStats200Response.md b/docs/GetImportSubscriberStats200Response.md index e2be28a..8e0c3b8 100644 --- a/docs/GetImportSubscriberStats200Response.md +++ b/docs/GetImportSubscriberStats200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_import_subscriber_stats200_response import GetImportSubscriberStats200Response +from listmonk.models.get_import_subscriber_stats200_response import GetImportSubscriberStats200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetImportSubscribers200Response.md b/docs/GetImportSubscribers200Response.md index 4d0907f..438cb56 100644 --- a/docs/GetImportSubscribers200Response.md +++ b/docs/GetImportSubscribers200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_import_subscribers200_response import GetImportSubscribers200Response +from listmonk.models.get_import_subscribers200_response import GetImportSubscribers200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetLists200Response.md b/docs/GetLists200Response.md index eac0fe4..9a3bee0 100644 --- a/docs/GetLists200Response.md +++ b/docs/GetLists200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_lists200_response import GetLists200Response +from listmonk.models.get_lists200_response import GetLists200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetLists200ResponseData.md b/docs/GetLists200ResponseData.md index 78c53b6..16fc70b 100644 --- a/docs/GetLists200ResponseData.md +++ b/docs/GetLists200ResponseData.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_lists200_response_data import GetLists200ResponseData +from listmonk.models.get_lists200_response_data import GetLists200ResponseData # TODO update the JSON string below json = "{}" diff --git a/docs/GetLogs200Response.md b/docs/GetLogs200Response.md index 687df99..59366d3 100644 --- a/docs/GetLogs200Response.md +++ b/docs/GetLogs200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_logs200_response import GetLogs200Response +from listmonk.models.get_logs200_response import GetLogs200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetMedia200Response.md b/docs/GetMedia200Response.md index 04dadea..b972edb 100644 --- a/docs/GetMedia200Response.md +++ b/docs/GetMedia200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_media200_response import GetMedia200Response +from listmonk.models.get_media200_response import GetMedia200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetPublicLists200ResponseInner.md b/docs/GetPublicLists200ResponseInner.md index dcff910..174061c 100644 --- a/docs/GetPublicLists200ResponseInner.md +++ b/docs/GetPublicLists200ResponseInner.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_public_lists200_response_inner import GetPublicLists200ResponseInner +from listmonk.models.get_public_lists200_response_inner import GetPublicLists200ResponseInner # TODO update the JSON string below json = "{}" diff --git a/docs/GetRunningCampaignStats200Response.md b/docs/GetRunningCampaignStats200Response.md index a378341..ec3b49e 100644 --- a/docs/GetRunningCampaignStats200Response.md +++ b/docs/GetRunningCampaignStats200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_running_campaign_stats200_response import GetRunningCampaignStats200Response +from listmonk.models.get_running_campaign_stats200_response import GetRunningCampaignStats200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetServerConfig200Response.md b/docs/GetServerConfig200Response.md index ae14584..bcf9e2d 100644 --- a/docs/GetServerConfig200Response.md +++ b/docs/GetServerConfig200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_server_config200_response import GetServerConfig200Response +from listmonk.models.get_server_config200_response import GetServerConfig200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetSettings200Response.md b/docs/GetSettings200Response.md index 4cc3dda..59f4ea7 100644 --- a/docs/GetSettings200Response.md +++ b/docs/GetSettings200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_settings200_response import GetSettings200Response +from listmonk.models.get_settings200_response import GetSettings200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetSubscriberBouncesById200Response.md b/docs/GetSubscriberBouncesById200Response.md index 805749f..4cd7865 100644 --- a/docs/GetSubscriberBouncesById200Response.md +++ b/docs/GetSubscriberBouncesById200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_subscriber_bounces_by_id200_response import GetSubscriberBouncesById200Response +from listmonk.models.get_subscriber_bounces_by_id200_response import GetSubscriberBouncesById200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetSubscribers200Response.md b/docs/GetSubscribers200Response.md index 60d8324..bd1ec11 100644 --- a/docs/GetSubscribers200Response.md +++ b/docs/GetSubscribers200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_subscribers200_response import GetSubscribers200Response +from listmonk.models.get_subscribers200_response import GetSubscribers200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetSubscribers200ResponseData.md b/docs/GetSubscribers200ResponseData.md index 282b882..7d0f27a 100644 --- a/docs/GetSubscribers200ResponseData.md +++ b/docs/GetSubscribers200ResponseData.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_subscribers200_response_data import GetSubscribers200ResponseData +from listmonk.models.get_subscribers200_response_data import GetSubscribers200ResponseData # TODO update the JSON string below json = "{}" diff --git a/docs/GetTemplateById200Response.md b/docs/GetTemplateById200Response.md index 48cb9b9..d22573b 100644 --- a/docs/GetTemplateById200Response.md +++ b/docs/GetTemplateById200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_template_by_id200_response import GetTemplateById200Response +from listmonk.models.get_template_by_id200_response import GetTemplateById200Response # TODO update the JSON string below json = "{}" diff --git a/docs/GetTemplates200Response.md b/docs/GetTemplates200Response.md index f95f2a1..e484126 100644 --- a/docs/GetTemplates200Response.md +++ b/docs/GetTemplates200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.get_templates200_response import GetTemplates200Response +from listmonk.models.get_templates200_response import GetTemplates200Response # TODO update the JSON string below json = "{}" diff --git a/docs/HandlePublicSubscription200Response.md b/docs/HandlePublicSubscription200Response.md index 41e5f6e..f721b12 100644 --- a/docs/HandlePublicSubscription200Response.md +++ b/docs/HandlePublicSubscription200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.handle_public_subscription200_response import HandlePublicSubscription200Response +from listmonk.models.handle_public_subscription200_response import HandlePublicSubscription200Response # TODO update the JSON string below json = "{}" diff --git a/docs/HandlePublicSubscriptionRequest.md b/docs/HandlePublicSubscriptionRequest.md index 830b7db..1c36002 100644 --- a/docs/HandlePublicSubscriptionRequest.md +++ b/docs/HandlePublicSubscriptionRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.handle_public_subscription_request import HandlePublicSubscriptionRequest +from listmonk.models.handle_public_subscription_request import HandlePublicSubscriptionRequest # TODO update the JSON string below json = "{}" diff --git a/docs/ImportApi.md b/docs/ImportApi.md index 545cffa..e0fbe0e 100644 --- a/docs/ImportApi.md +++ b/docs/ImportApi.md @@ -24,14 +24,14 @@ returns import statistics ```python import time import os -import listmonk_client -from listmonk_client.models.get_import_subscriber_stats200_response import GetImportSubscriberStats200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_import_subscriber_stats200_response import GetImportSubscriberStats200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -41,15 +41,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.ImportApi(api_client) + api_instance = listmonk.ImportApi(api_client) try: api_response = api_instance.get_import_subscriber_stats() @@ -98,14 +98,14 @@ returns import status. ```python import time import os -import listmonk_client -from listmonk_client.models.get_import_subscribers200_response import GetImportSubscribers200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_import_subscribers200_response import GetImportSubscribers200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -115,15 +115,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.ImportApi(api_client) + api_instance = listmonk.ImportApi(api_client) try: api_response = api_instance.get_import_subscribers() @@ -172,15 +172,15 @@ handles the uploading and bulk importing of a ZIP file of one or more CSV files. ```python import time import os -import listmonk_client -from listmonk_client.models.get_import_subscribers200_response import GetImportSubscribers200Response -from listmonk_client.models.import_subscribers_request import ImportSubscribersRequest -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_import_subscribers200_response import GetImportSubscribers200Response +from listmonk.models.import_subscribers_request import ImportSubscribersRequest +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -190,16 +190,16 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.ImportApi(api_client) - import_subscribers_request = listmonk_client.ImportSubscribersRequest() # ImportSubscribersRequest | uploads and bulk imports of compressed CSV files (optional) + api_instance = listmonk.ImportApi(api_client) + import_subscribers_request = listmonk.ImportSubscribersRequest() # ImportSubscribersRequest | uploads and bulk imports of compressed CSV files (optional) try: api_response = api_instance.import_subscribers(import_subscribers_request=import_subscribers_request) @@ -251,14 +251,14 @@ sends a stop signal to the importer. ```python import time import os -import listmonk_client -from listmonk_client.models.get_import_subscribers200_response import GetImportSubscribers200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_import_subscribers200_response import GetImportSubscribers200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -268,15 +268,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.ImportApi(api_client) + api_instance = listmonk.ImportApi(api_client) try: api_response = api_instance.stop_import_subscribers() diff --git a/docs/ImportStatus.md b/docs/ImportStatus.md index b63663a..25b7802 100644 --- a/docs/ImportStatus.md +++ b/docs/ImportStatus.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.import_status import ImportStatus +from listmonk.models.import_status import ImportStatus # TODO update the JSON string below json = "{}" diff --git a/docs/ImportStatusData.md b/docs/ImportStatusData.md index 79d8587..4caee67 100644 --- a/docs/ImportStatusData.md +++ b/docs/ImportStatusData.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.import_status_data import ImportStatusData +from listmonk.models.import_status_data import ImportStatusData # TODO update the JSON string below json = "{}" diff --git a/docs/ImportSubscribersRequest.md b/docs/ImportSubscribersRequest.md index 08728c9..1fcd2a2 100644 --- a/docs/ImportSubscribersRequest.md +++ b/docs/ImportSubscribersRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.import_subscribers_request import ImportSubscribersRequest +from listmonk.models.import_subscribers_request import ImportSubscribersRequest # TODO update the JSON string below json = "{}" diff --git a/docs/LanguagePack.md b/docs/LanguagePack.md index d272ee6..d367507 100644 --- a/docs/LanguagePack.md +++ b/docs/LanguagePack.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.language_pack import LanguagePack +from listmonk.models.language_pack import LanguagePack # TODO update the JSON string below json = "{}" diff --git a/docs/LanguagePackData.md b/docs/LanguagePackData.md index d21dbd5..463c022 100644 --- a/docs/LanguagePackData.md +++ b/docs/LanguagePackData.md @@ -561,7 +561,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.language_pack_data import LanguagePackData +from listmonk.models.language_pack_data import LanguagePackData # TODO update the JSON string below json = "{}" diff --git a/docs/List.md b/docs/List.md index 3e7ce1a..95cbfbd 100644 --- a/docs/List.md +++ b/docs/List.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.list import List +from listmonk.models.list import List # TODO update the JSON string below json = "{}" diff --git a/docs/ListsApi.md b/docs/ListsApi.md index b98142d..a98ddae 100644 --- a/docs/ListsApi.md +++ b/docs/ListsApi.md @@ -25,15 +25,15 @@ handles list creation ```python import time import os -import listmonk_client -from listmonk_client.models.create_list200_response import CreateList200Response -from listmonk_client.models.new_list import NewList -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.create_list200_response import CreateList200Response +from listmonk.models.new_list import NewList +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -43,16 +43,16 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.ListsApi(api_client) - new_list = listmonk_client.NewList() # NewList | new list info (optional) + api_instance = listmonk.ListsApi(api_client) + new_list = listmonk.NewList() # NewList | new list info (optional) try: api_response = api_instance.create_list(new_list=new_list) @@ -104,14 +104,14 @@ handles list deletion, either a single one (ID in the URI), or a list. ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -121,15 +121,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.ListsApi(api_client) + api_instance = listmonk.ListsApi(api_client) list_id = 56 # int | The id value of the lists you want to delete. try: @@ -182,14 +182,14 @@ retrieves lists with additional metadata like subscriber counts. This may be slo ```python import time import os -import listmonk_client -from listmonk_client.models.create_list200_response import CreateList200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.create_list200_response import CreateList200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -199,15 +199,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.ListsApi(api_client) + api_instance = listmonk.ListsApi(api_client) list_id = 56 # int | The id value of the list you want to retreive. try: @@ -260,14 +260,14 @@ retrieves lists with additional metadata like subscriber counts. This may be slo ```python import time import os -import listmonk_client -from listmonk_client.models.get_lists200_response import GetLists200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_lists200_response import GetLists200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -277,15 +277,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.ListsApi(api_client) + api_instance = listmonk.ListsApi(api_client) page = 56 # int | total number of pages (optional) per_page = 56 # int | number of items per page (optional) query = 'query_example' # str | Optional string to search a list by name. (optional) @@ -349,15 +349,15 @@ handles list modification ```python import time import os -import listmonk_client -from listmonk_client.models.create_list200_response import CreateList200Response -from listmonk_client.models.list import List -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.create_list200_response import CreateList200Response +from listmonk.models.list import List +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -367,15 +367,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.ListsApi(api_client) + api_instance = listmonk.ListsApi(api_client) list_id = 56 # int | The id value of the list you want to update list = None # List | updated list field values (optional) diff --git a/docs/LogsApi.md b/docs/LogsApi.md index dddec6a..932b972 100644 --- a/docs/LogsApi.md +++ b/docs/LogsApi.md @@ -21,14 +21,14 @@ returns the log entries stored in the log buffer ```python import time import os -import listmonk_client -from listmonk_client.models.get_logs200_response import GetLogs200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_logs200_response import GetLogs200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -38,15 +38,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.LogsApi(api_client) + api_instance = listmonk.LogsApi(api_client) try: api_response = api_instance.get_logs() diff --git a/docs/MailBoxBounces.md b/docs/MailBoxBounces.md index 5b19ac1..321d134 100644 --- a/docs/MailBoxBounces.md +++ b/docs/MailBoxBounces.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.mail_box_bounces import MailBoxBounces +from listmonk.models.mail_box_bounces import MailBoxBounces # TODO update the JSON string below json = "{}" diff --git a/docs/MaintenanceApi.md b/docs/MaintenanceApi.md index 2b06bfa..ecb3656 100644 --- a/docs/MaintenanceApi.md +++ b/docs/MaintenanceApi.md @@ -23,14 +23,14 @@ garbage collects (deletes) campaign analytics. ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -40,15 +40,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.MaintenanceApi(api_client) + api_instance = listmonk.MaintenanceApi(api_client) type = 'type_example' # str | type of GC collected subscribers before_date = '2013-10-20' # date | (optional) @@ -103,14 +103,14 @@ garbage collects (deletes) orphaned or blocklisted subscribers. ```python import time import os -import listmonk_client -from listmonk_client.models.delete_gc_subscribers200_response import DeleteGCSubscribers200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.delete_gc_subscribers200_response import DeleteGCSubscribers200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -120,15 +120,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.MaintenanceApi(api_client) + api_instance = listmonk.MaintenanceApi(api_client) type = 'type_example' # str | type of GC collected subscribers try: @@ -181,14 +181,14 @@ garbage collects (deletes) orphaned or blocklisted subscribers. ```python import time import os -import listmonk_client -from listmonk_client.models.delete_gc_subscribers200_response import DeleteGCSubscribers200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.delete_gc_subscribers200_response import DeleteGCSubscribers200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -198,15 +198,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.MaintenanceApi(api_client) + api_instance = listmonk.MaintenanceApi(api_client) before_date = '2013-10-20' # date | (optional) try: diff --git a/docs/MediaApi.md b/docs/MediaApi.md index 6e588d6..666fe27 100644 --- a/docs/MediaApi.md +++ b/docs/MediaApi.md @@ -24,14 +24,14 @@ handles deletion of uploaded media. ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -41,15 +41,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.MediaApi(api_client) + api_instance = listmonk.MediaApi(api_client) id = 56 # int | The id value of the list you want to delete. try: @@ -102,14 +102,14 @@ handles retrieval of uploaded media. ```python import time import os -import listmonk_client -from listmonk_client.models.get_media200_response import GetMedia200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_media200_response import GetMedia200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -119,15 +119,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.MediaApi(api_client) + api_instance = listmonk.MediaApi(api_client) try: api_response = api_instance.get_media() @@ -176,14 +176,14 @@ handles retrieval of uploaded media. ```python import time import os -import listmonk_client -from listmonk_client.models.upload_media200_response import UploadMedia200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.upload_media200_response import UploadMedia200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -193,15 +193,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.MediaApi(api_client) + api_instance = listmonk.MediaApi(api_client) id = 56 # int | media file id try: @@ -254,14 +254,14 @@ handles media file uploads. ```python import time import os -import listmonk_client -from listmonk_client.models.upload_media200_response import UploadMedia200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.upload_media200_response import UploadMedia200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -271,15 +271,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.MediaApi(api_client) + api_instance = listmonk.MediaApi(api_client) try: api_response = api_instance.upload_media() diff --git a/docs/MediaFileObject.md b/docs/MediaFileObject.md index f0894f6..b4f05ec 100644 --- a/docs/MediaFileObject.md +++ b/docs/MediaFileObject.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.media_file_object import MediaFileObject +from listmonk.models.media_file_object import MediaFileObject # TODO update the JSON string below json = "{}" diff --git a/docs/MiscellaneousApi.md b/docs/MiscellaneousApi.md index 912a256..416e1ad 100644 --- a/docs/MiscellaneousApi.md +++ b/docs/MiscellaneousApi.md @@ -25,14 +25,14 @@ returns chart data points to render on the dashboard. ```python import time import os -import listmonk_client -from listmonk_client.models.get_dashboard_charts200_response import GetDashboardCharts200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_dashboard_charts200_response import GetDashboardCharts200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -42,15 +42,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.MiscellaneousApi(api_client) + api_instance = listmonk.MiscellaneousApi(api_client) try: api_response = api_instance.get_dashboard_charts() @@ -99,14 +99,14 @@ returns stats counts to show on the dashboard ```python import time import os -import listmonk_client -from listmonk_client.models.get_dashboard_counts200_response import GetDashboardCounts200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_dashboard_counts200_response import GetDashboardCounts200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -116,15 +116,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.MiscellaneousApi(api_client) + api_instance = listmonk.MiscellaneousApi(api_client) try: api_response = api_instance.get_dashboard_counts() @@ -173,14 +173,14 @@ healthcheck endpoint ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -190,15 +190,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.MiscellaneousApi(api_client) + api_instance = listmonk.MiscellaneousApi(api_client) try: api_response = api_instance.get_health_check() @@ -247,14 +247,14 @@ returns the JSON language pack given the language code ```python import time import os -import listmonk_client -from listmonk_client.models.get_i18n_lang200_response import GetI18nLang200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_i18n_lang200_response import GetI18nLang200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -264,15 +264,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.MiscellaneousApi(api_client) + api_instance = listmonk.MiscellaneousApi(api_client) lang = 'lang_example' # str | JSON language pack required try: @@ -325,14 +325,14 @@ returns general server config. ```python import time import os -import listmonk_client -from listmonk_client.models.get_server_config200_response import GetServerConfig200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_server_config200_response import GetServerConfig200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -342,15 +342,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.MiscellaneousApi(api_client) + api_instance = listmonk.MiscellaneousApi(api_client) try: api_response = api_instance.get_server_config() diff --git a/docs/NewList.md b/docs/NewList.md index cbe737c..c4f4c3b 100644 --- a/docs/NewList.md +++ b/docs/NewList.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.new_list import NewList +from listmonk.models.new_list import NewList # TODO update the JSON string below json = "{}" diff --git a/docs/NewSubscriber.md b/docs/NewSubscriber.md index 136a28d..7c9c4be 100644 --- a/docs/NewSubscriber.md +++ b/docs/NewSubscriber.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.new_subscriber import NewSubscriber +from listmonk.models.new_subscriber import NewSubscriber # TODO update the JSON string below json = "{}" diff --git a/docs/NewSubscriberAttribs.md b/docs/NewSubscriberAttribs.md index 40197d2..f0b5634 100644 --- a/docs/NewSubscriberAttribs.md +++ b/docs/NewSubscriberAttribs.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.new_subscriber_attribs import NewSubscriberAttribs +from listmonk.models.new_subscriber_attribs import NewSubscriberAttribs # TODO update the JSON string below json = "{}" diff --git a/docs/NewSubscriberAttribsStack.md b/docs/NewSubscriberAttribsStack.md index 0c29d95..48f5244 100644 --- a/docs/NewSubscriberAttribsStack.md +++ b/docs/NewSubscriberAttribsStack.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.new_subscriber_attribs_stack import NewSubscriberAttribsStack +from listmonk.models.new_subscriber_attribs_stack import NewSubscriberAttribsStack # TODO update the JSON string below json = "{}" diff --git a/docs/PublicApi.md b/docs/PublicApi.md index 6150fb5..a1e549f 100644 --- a/docs/PublicApi.md +++ b/docs/PublicApi.md @@ -22,14 +22,14 @@ returns the list of public lists with minimal fields ```python import time import os -import listmonk_client -from listmonk_client.models.get_public_lists200_response_inner import GetPublicLists200ResponseInner -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_public_lists200_response_inner import GetPublicLists200ResponseInner +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -39,15 +39,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.PublicApi(api_client) + api_instance = listmonk.PublicApi(api_client) try: api_response = api_instance.get_public_lists() @@ -96,15 +96,15 @@ handles subscription requests coming from public API calls. ```python import time import os -import listmonk_client -from listmonk_client.models.handle_public_subscription200_response import HandlePublicSubscription200Response -from listmonk_client.models.handle_public_subscription_request import HandlePublicSubscriptionRequest -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.handle_public_subscription200_response import HandlePublicSubscription200Response +from listmonk.models.handle_public_subscription_request import HandlePublicSubscriptionRequest +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -114,16 +114,16 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.PublicApi(api_client) - handle_public_subscription_request = listmonk_client.HandlePublicSubscriptionRequest() # HandlePublicSubscriptionRequest | subscription request parameters (optional) + api_instance = listmonk.PublicApi(api_client) + handle_public_subscription_request = listmonk.HandlePublicSubscriptionRequest() # HandlePublicSubscriptionRequest | subscription request parameters (optional) try: api_response = api_instance.handle_public_subscription( diff --git a/docs/SMTPSettings.md b/docs/SMTPSettings.md index 7c1b1e5..9462464 100644 --- a/docs/SMTPSettings.md +++ b/docs/SMTPSettings.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.smtp_settings import SMTPSettings +from listmonk.models.smtp_settings import SMTPSettings # TODO update the JSON string below json = "{}" diff --git a/docs/SMTPTest.md b/docs/SMTPTest.md index 4c207ae..44013e2 100644 --- a/docs/SMTPTest.md +++ b/docs/SMTPTest.md @@ -25,7 +25,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.smtp_test import SMTPTest +from listmonk.models.smtp_test import SMTPTest # TODO update the JSON string below json = "{}" diff --git a/docs/ServerConfig.md b/docs/ServerConfig.md index 6363a94..b2ace48 100644 --- a/docs/ServerConfig.md +++ b/docs/ServerConfig.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.server_config import ServerConfig +from listmonk.models.server_config import ServerConfig # TODO update the JSON string below json = "{}" diff --git a/docs/ServerConfigData.md b/docs/ServerConfigData.md index 49ef3b0..ee9aae7 100644 --- a/docs/ServerConfigData.md +++ b/docs/ServerConfigData.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.server_config_data import ServerConfigData +from listmonk.models.server_config_data import ServerConfigData # TODO update the JSON string below json = "{}" diff --git a/docs/ServerConfigDataLangsInner.md b/docs/ServerConfigDataLangsInner.md index 52ee110..8fac9d8 100644 --- a/docs/ServerConfigDataLangsInner.md +++ b/docs/ServerConfigDataLangsInner.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.server_config_data_langs_inner import ServerConfigDataLangsInner +from listmonk.models.server_config_data_langs_inner import ServerConfigDataLangsInner # TODO update the JSON string below json = "{}" diff --git a/docs/Settings.md b/docs/Settings.md index 5f5b151..a5cd82e 100644 --- a/docs/Settings.md +++ b/docs/Settings.md @@ -63,7 +63,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.settings import Settings +from listmonk.models.settings import Settings # TODO update the JSON string below json = "{}" diff --git a/docs/SettingsApi.md b/docs/SettingsApi.md index 0260740..e3f53d0 100644 --- a/docs/SettingsApi.md +++ b/docs/SettingsApi.md @@ -23,14 +23,14 @@ returns settings from DB ```python import time import os -import listmonk_client -from listmonk_client.models.get_settings200_response import GetSettings200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_settings200_response import GetSettings200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -40,15 +40,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SettingsApi(api_client) + api_instance = listmonk.SettingsApi(api_client) try: api_response = api_instance.get_settings() @@ -97,15 +97,15 @@ test smtp settings ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.smtp_test import SMTPTest -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.smtp_test import SMTPTest +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -115,16 +115,16 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SettingsApi(api_client) - smtp_test = listmonk_client.SMTPTest() # SMTPTest | updated SMTP settings field values (optional) + api_instance = listmonk.SettingsApi(api_client) + smtp_test = listmonk.SMTPTest() # SMTPTest | updated SMTP settings field values (optional) try: api_response = api_instance.test_smtp_settings(smtp_test=smtp_test) @@ -176,15 +176,15 @@ returns updated settings from the DB. ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.settings import Settings -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.settings import Settings +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -194,16 +194,16 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SettingsApi(api_client) - settings = listmonk_client.Settings() # Settings | updated settings field values (optional) + api_instance = listmonk.SettingsApi(api_client) + settings = listmonk.Settings() # Settings | updated settings field values (optional) try: api_response = api_instance.update_settings(settings=settings) diff --git a/docs/Subscriber.md b/docs/Subscriber.md index e400ed8..ae47574 100644 --- a/docs/Subscriber.md +++ b/docs/Subscriber.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.subscriber import Subscriber +from listmonk.models.subscriber import Subscriber # TODO update the JSON string below json = "{}" diff --git a/docs/SubscriberData.md b/docs/SubscriberData.md index 5008ede..94bdbd1 100644 --- a/docs/SubscriberData.md +++ b/docs/SubscriberData.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.subscriber_data import SubscriberData +from listmonk.models.subscriber_data import SubscriberData # TODO update the JSON string below json = "{}" diff --git a/docs/SubscriberListsInner.md b/docs/SubscriberListsInner.md index 5c9ae03..9dc4c23 100644 --- a/docs/SubscriberListsInner.md +++ b/docs/SubscriberListsInner.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.subscriber_lists_inner import SubscriberListsInner +from listmonk.models.subscriber_lists_inner import SubscriberListsInner # TODO update the JSON string below json = "{}" diff --git a/docs/SubscriberProfile.md b/docs/SubscriberProfile.md index 9d5d20a..e67ff75 100644 --- a/docs/SubscriberProfile.md +++ b/docs/SubscriberProfile.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.subscriber_profile import SubscriberProfile +from listmonk.models.subscriber_profile import SubscriberProfile # TODO update the JSON string below json = "{}" diff --git a/docs/SubscriberProfileAttribs.md b/docs/SubscriberProfileAttribs.md index bd24ca3..b8f50f7 100644 --- a/docs/SubscriberProfileAttribs.md +++ b/docs/SubscriberProfileAttribs.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.subscriber_profile_attribs import SubscriberProfileAttribs +from listmonk.models.subscriber_profile_attribs import SubscriberProfileAttribs # TODO update the JSON string below json = "{}" diff --git a/docs/SubscriberQueryRequest.md b/docs/SubscriberQueryRequest.md index 24776e5..081147b 100644 --- a/docs/SubscriberQueryRequest.md +++ b/docs/SubscriberQueryRequest.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.subscriber_query_request import SubscriberQueryRequest +from listmonk.models.subscriber_query_request import SubscriberQueryRequest # TODO update the JSON string below json = "{}" diff --git a/docs/SubscribersApi.md b/docs/SubscribersApi.md index 4a00b60..63a1260 100644 --- a/docs/SubscribersApi.md +++ b/docs/SubscribersApi.md @@ -37,14 +37,14 @@ bulk blocklists subscribers based on an arbitrary SQL expression. ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -54,15 +54,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) + api_instance = listmonk.SubscribersApi(api_client) body = 'body_example' # str | Arbitrary SQL expression. (optional) try: @@ -115,15 +115,15 @@ handles creation of new subscriber ```python import time import os -import listmonk_client -from listmonk_client.models.create_subscriber200_response import CreateSubscriber200Response -from listmonk_client.models.new_subscriber import NewSubscriber -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.create_subscriber200_response import CreateSubscriber200Response +from listmonk.models.new_subscriber import NewSubscriber +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -133,16 +133,16 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) - new_subscriber = listmonk_client.NewSubscriber() # NewSubscriber | new subscriber info (optional) + api_instance = listmonk.SubscribersApi(api_client) + new_subscriber = listmonk.NewSubscriber() # NewSubscriber | new subscriber info (optional) try: api_response = api_instance.create_subscriber(new_subscriber=new_subscriber) @@ -194,14 +194,14 @@ deletes a subscriber's bounce records ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -211,15 +211,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) + api_instance = listmonk.SubscribersApi(api_client) id = 56 # int | subscriber id try: @@ -272,14 +272,14 @@ handles subscriber deletion based on id ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -289,15 +289,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) + api_instance = listmonk.SubscribersApi(api_client) id = 56 # int | The id value of the subscriber you want to get. try: @@ -350,14 +350,14 @@ handles subscribers deletion ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -367,15 +367,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) + api_instance = listmonk.SubscribersApi(api_client) id = 'id_example' # str | subscriber id/s to be deleted try: @@ -428,14 +428,14 @@ bulk deletes based on an arbitrary SQL expression. ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -445,15 +445,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) + api_instance = listmonk.SubscribersApi(api_client) body = 'body_example' # str | Arbitrary SQL expression. (optional) try: @@ -506,14 +506,14 @@ retrieves a subscriber's profile ```python import time import os -import listmonk_client -from listmonk_client.models.subscriber_data import SubscriberData -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.subscriber_data import SubscriberData +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -523,15 +523,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) + api_instance = listmonk.SubscribersApi(api_client) id = 56 # int | The id value of subscriber profile you want to export try: @@ -584,14 +584,14 @@ retrieves a subscriber's bounce records ```python import time import os -import listmonk_client -from listmonk_client.models.get_subscriber_bounces_by_id200_response import GetSubscriberBouncesById200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_subscriber_bounces_by_id200_response import GetSubscriberBouncesById200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -601,15 +601,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) + api_instance = listmonk.SubscribersApi(api_client) id = 56 # int | subscriber id try: @@ -662,14 +662,14 @@ handles the retrieval of a single subscriber by ID. ```python import time import os -import listmonk_client -from listmonk_client.models.create_subscriber200_response import CreateSubscriber200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.create_subscriber200_response import CreateSubscriber200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -679,15 +679,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) + api_instance = listmonk.SubscribersApi(api_client) id = 56 # int | The id value of the subscriber you want to get. try: @@ -740,14 +740,14 @@ returns all subscribers. ```python import time import os -import listmonk_client -from listmonk_client.models.get_subscribers200_response import GetSubscribers200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_subscribers200_response import GetSubscribers200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -757,15 +757,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) + api_instance = listmonk.SubscribersApi(api_client) page = 56 # int | number of records to skip (optional) per_page = 56 # int | max number of records to return per page (optional) query = 'query_example' # str | query subscribers with an SQL expression. (optional) @@ -822,15 +822,15 @@ handles blocklisting of subscriber list ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.subscriber_query_request import SubscriberQueryRequest -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.subscriber_query_request import SubscriberQueryRequest +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -840,16 +840,16 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) - subscriber_query_request = listmonk_client.SubscriberQueryRequest() # SubscriberQueryRequest | The list of subscribers to blocklist (optional) + api_instance = listmonk.SubscribersApi(api_client) + subscriber_query_request = listmonk.SubscriberQueryRequest() # SubscriberQueryRequest | The list of subscribers to blocklist (optional) try: api_response = api_instance.manage_blocklist_by_subscriber_list(subscriber_query_request=subscriber_query_request) @@ -901,15 +901,15 @@ handles the blocklisting of one or more subscribers. ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.subscriber_query_request import SubscriberQueryRequest -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.subscriber_query_request import SubscriberQueryRequest +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -919,17 +919,17 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) + api_instance = listmonk.SubscribersApi(api_client) id = 56 # int | The id value of the subscriber you want to blocklist. - subscriber_query_request = listmonk_client.SubscriberQueryRequest() # SubscriberQueryRequest | The id of subscriber to add or remove (optional) + subscriber_query_request = listmonk.SubscriberQueryRequest() # SubscriberQueryRequest | The id of subscriber to add or remove (optional) try: api_response = api_instance.manage_blocklist_subscribers_by_id(id, subscriber_query_request=subscriber_query_request) @@ -982,15 +982,15 @@ handles bulk addition or removal of subscribers for a specified list id ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.subscriber_query_request import SubscriberQueryRequest -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.subscriber_query_request import SubscriberQueryRequest +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -1000,17 +1000,17 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) + api_instance = listmonk.SubscribersApi(api_client) id = 56 # int | The id of list you want to update - subscriber_query_request = listmonk_client.SubscriberQueryRequest() # SubscriberQueryRequest | The list of subscribers to add or remove (optional) + subscriber_query_request = listmonk.SubscriberQueryRequest() # SubscriberQueryRequest | The list of subscribers to add or remove (optional) try: api_response = api_instance.manage_subscriber_list_by_id(id, subscriber_query_request=subscriber_query_request) @@ -1063,15 +1063,15 @@ handles bulk addition or removal of subscribers ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.subscriber_query_request import SubscriberQueryRequest -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.subscriber_query_request import SubscriberQueryRequest +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -1081,16 +1081,16 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) - subscriber_query_request = listmonk_client.SubscriberQueryRequest() # SubscriberQueryRequest | The list of subscribers details to add or remove (optional) + api_instance = listmonk.SubscribersApi(api_client) + subscriber_query_request = listmonk.SubscriberQueryRequest() # SubscriberQueryRequest | The list of subscribers details to add or remove (optional) try: api_response = api_instance.manage_subscriber_lists(subscriber_query_request=subscriber_query_request) @@ -1142,14 +1142,14 @@ bulk adds/removes/unsubscribes subscribers from one or more lists based on an ar ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -1159,15 +1159,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) + api_instance = listmonk.SubscribersApi(api_client) body = 'body_example' # str | Arbitrary SQL expression. (optional) try: @@ -1220,14 +1220,14 @@ sends an optin confirmation e-mail to a subscriber. ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -1237,15 +1237,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) + api_instance = listmonk.SubscribersApi(api_client) id = 56 # int | sends an optin confirmation e-mail to a subscriber try: @@ -1298,15 +1298,15 @@ modify subscriber data ```python import time import os -import listmonk_client -from listmonk_client.models.create_subscriber200_response import CreateSubscriber200Response -from listmonk_client.models.update_subscriber import UpdateSubscriber -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.create_subscriber200_response import CreateSubscriber200Response +from listmonk.models.update_subscriber import UpdateSubscriber +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -1316,17 +1316,17 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.SubscribersApi(api_client) + api_instance = listmonk.SubscribersApi(api_client) id = 56 # int | The id of subscriber to update - update_subscriber = listmonk_client.UpdateSubscriber() # UpdateSubscriber | new subscriber info (optional) + update_subscriber = listmonk.UpdateSubscriber() # UpdateSubscriber | new subscriber info (optional) try: api_response = api_instance.update_subscriber_by_id(id, update_subscriber=update_subscriber) diff --git a/docs/Subscriptions.md b/docs/Subscriptions.md index 2bdf6b1..7c28050 100644 --- a/docs/Subscriptions.md +++ b/docs/Subscriptions.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.subscriptions import Subscriptions +from listmonk.models.subscriptions import Subscriptions # TODO update the JSON string below json = "{}" diff --git a/docs/Template.md b/docs/Template.md index 3578306..6b37a3c 100644 --- a/docs/Template.md +++ b/docs/Template.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.template import Template +from listmonk.models.template import Template # TODO update the JSON string below json = "{}" diff --git a/docs/TemplatesApi.md b/docs/TemplatesApi.md index 4099fac..89fc1a6 100644 --- a/docs/TemplatesApi.md +++ b/docs/TemplatesApi.md @@ -26,14 +26,14 @@ handles deletion of templates ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -43,15 +43,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.TemplatesApi(api_client) + api_instance = listmonk.TemplatesApi(api_client) id = 56 # int | The id value of the template you want to delete. try: @@ -104,14 +104,14 @@ handles retrieval of templates ```python import time import os -import listmonk_client -from listmonk_client.models.get_template_by_id200_response import GetTemplateById200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_template_by_id200_response import GetTemplateById200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -121,15 +121,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.TemplatesApi(api_client) + api_instance = listmonk.TemplatesApi(api_client) id = 56 # int | The id value of the template you want to get. no_body = True # bool | boolean flag for response with/without body (optional) @@ -184,14 +184,14 @@ handles retrieval of templates ```python import time import os -import listmonk_client -from listmonk_client.models.get_templates200_response import GetTemplates200Response -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_templates200_response import GetTemplates200Response +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -201,15 +201,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.TemplatesApi(api_client) + api_instance = listmonk.TemplatesApi(api_client) no_body = True # bool | boolean flag for response with/without body try: @@ -262,13 +262,13 @@ get the HTML preview of a template. ```python import time import os -import listmonk_client -from listmonk_client.rest import ApiException +import listmonk +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -278,15 +278,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.TemplatesApi(api_client) + api_instance = listmonk.TemplatesApi(api_client) template_type = 'template_type_example' # str | type of template (optional) body = 'body_example' # str | template body (optional) @@ -341,13 +341,13 @@ renders the HTML preview of a template. ```python import time import os -import listmonk_client -from listmonk_client.rest import ApiException +import listmonk +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -357,15 +357,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.TemplatesApi(api_client) + api_instance = listmonk.TemplatesApi(api_client) id = 56 # int | The id value of the template you want to get. template_type = 'template_type_example' # str | type of template (optional) body = 'body_example' # str | template body (optional) @@ -422,14 +422,14 @@ handles template modification. ```python import time import os -import listmonk_client -from listmonk_client.models.template import Template -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.template import Template +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -439,15 +439,15 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.TemplatesApi(api_client) + api_instance = listmonk.TemplatesApi(api_client) id = 56 # int | The id value of the template you want to set to the default template. try: diff --git a/docs/TransactionalApi.md b/docs/TransactionalApi.md index 0faeca4..0c33f12 100644 --- a/docs/TransactionalApi.md +++ b/docs/TransactionalApi.md @@ -21,15 +21,15 @@ send message to a subscriber ```python import time import os -import listmonk_client -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.transactional_message import TransactionalMessage -from listmonk_client.rest import ApiException +import listmonk +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.transactional_message import TransactionalMessage +from listmonk.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to http://localhost:9000/api # See configuration.py for a list of all supported configuration parameters. -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( host="http://localhost:9000/api" ) @@ -39,16 +39,16 @@ configuration = listmonk_client.Configuration( # satisfies your auth use case. # Configure HTTP basic authorization: basicAuth -configuration = listmonk_client.Configuration( +configuration = listmonk.Configuration( username=os.environ["USERNAME"], password=os.environ["PASSWORD"] ) # Enter a context with an instance of the API client -with listmonk_client.ApiClient(configuration) as api_client: +with listmonk.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = listmonk_client.TransactionalApi(api_client) - transactional_message = listmonk_client.TransactionalMessage() # TransactionalMessage | email message to a subscriber (optional) + api_instance = listmonk.TransactionalApi(api_client) + transactional_message = listmonk.TransactionalMessage() # TransactionalMessage | email message to a subscriber (optional) try: api_response = api_instance.transact_with_subscriber(transactional_message=transactional_message) diff --git a/docs/TransactionalMessage.md b/docs/TransactionalMessage.md index c30f929..5a104cd 100644 --- a/docs/TransactionalMessage.md +++ b/docs/TransactionalMessage.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.transactional_message import TransactionalMessage +from listmonk.models.transactional_message import TransactionalMessage # TODO update the JSON string below json = "{}" diff --git a/docs/UpdateCampaignArchiveByIdRequest.md b/docs/UpdateCampaignArchiveByIdRequest.md index b5aa945..5099547 100644 --- a/docs/UpdateCampaignArchiveByIdRequest.md +++ b/docs/UpdateCampaignArchiveByIdRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.update_campaign_archive_by_id_request import UpdateCampaignArchiveByIdRequest +from listmonk.models.update_campaign_archive_by_id_request import UpdateCampaignArchiveByIdRequest # TODO update the JSON string below json = "{}" diff --git a/docs/UpdateCampaignStatusByIdRequest.md b/docs/UpdateCampaignStatusByIdRequest.md index 01edc6e..5cd521f 100644 --- a/docs/UpdateCampaignStatusByIdRequest.md +++ b/docs/UpdateCampaignStatusByIdRequest.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.update_campaign_status_by_id_request import UpdateCampaignStatusByIdRequest +from listmonk.models.update_campaign_status_by_id_request import UpdateCampaignStatusByIdRequest # TODO update the JSON string below json = "{}" diff --git a/docs/UpdateSubscriber.md b/docs/UpdateSubscriber.md index 6f6a3d1..ab9384f 100644 --- a/docs/UpdateSubscriber.md +++ b/docs/UpdateSubscriber.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.update_subscriber import UpdateSubscriber +from listmonk.models.update_subscriber import UpdateSubscriber # TODO update the JSON string below json = "{}" diff --git a/docs/UploadMedia200Response.md b/docs/UploadMedia200Response.md index 7624f5f..5460a86 100644 --- a/docs/UploadMedia200Response.md +++ b/docs/UploadMedia200Response.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from listmonk_client.models.upload_media200_response import UploadMedia200Response +from listmonk.models.upload_media200_response import UploadMedia200Response # TODO update the JSON string below json = "{}" diff --git a/listmonk/__init__.py b/listmonk/__init__.py index 2dc91a5..2e1427d 100644 --- a/listmonk/__init__.py +++ b/listmonk/__init__.py @@ -17,112 +17,112 @@ __version__ = "0.0.1" # import apis into sdk package -from listmonk_client.api.admin_api import AdminApi -from listmonk_client.api.bounces_api import BouncesApi -from listmonk_client.api.campaigns_api import CampaignsApi -from listmonk_client.api.import_api import ImportApi -from listmonk_client.api.lists_api import ListsApi -from listmonk_client.api.logs_api import LogsApi -from listmonk_client.api.maintenance_api import MaintenanceApi -from listmonk_client.api.media_api import MediaApi -from listmonk_client.api.miscellaneous_api import MiscellaneousApi -from listmonk_client.api.public_api import PublicApi -from listmonk_client.api.settings_api import SettingsApi -from listmonk_client.api.subscribers_api import SubscribersApi -from listmonk_client.api.templates_api import TemplatesApi -from listmonk_client.api.transactional_api import TransactionalApi +from listmonk.api.admin_api import AdminApi +from listmonk.api.bounces_api import BouncesApi +from listmonk.api.campaigns_api import CampaignsApi +from listmonk.api.import_api import ImportApi +from listmonk.api.lists_api import ListsApi +from listmonk.api.logs_api import LogsApi +from listmonk.api.maintenance_api import MaintenanceApi +from listmonk.api.media_api import MediaApi +from listmonk.api.miscellaneous_api import MiscellaneousApi +from listmonk.api.public_api import PublicApi +from listmonk.api.settings_api import SettingsApi +from listmonk.api.subscribers_api import SubscribersApi +from listmonk.api.templates_api import TemplatesApi +from listmonk.api.transactional_api import TransactionalApi # import ApiClient -from listmonk_client.api_response import ApiResponse -from listmonk_client.api_client import ApiClient -from listmonk_client.configuration import Configuration -from listmonk_client.exceptions import OpenApiException -from listmonk_client.exceptions import ApiTypeError -from listmonk_client.exceptions import ApiValueError -from listmonk_client.exceptions import ApiKeyError -from listmonk_client.exceptions import ApiAttributeError -from listmonk_client.exceptions import ApiException +from listmonk.api_response import ApiResponse +from listmonk.api_client import ApiClient +from listmonk.configuration import Configuration +from listmonk.exceptions import OpenApiException +from listmonk.exceptions import ApiTypeError +from listmonk.exceptions import ApiValueError +from listmonk.exceptions import ApiKeyError +from listmonk.exceptions import ApiAttributeError +from listmonk.exceptions import ApiException # import models into sdk package -from listmonk_client.models.bounce import Bounce -from listmonk_client.models.bounce_results_inner import BounceResultsInner -from listmonk_client.models.bounce_results_inner_campaign import BounceResultsInnerCampaign -from listmonk_client.models.campaign import Campaign -from listmonk_client.models.campaign_analytics_count import CampaignAnalyticsCount -from listmonk_client.models.campaign_content_request import CampaignContentRequest -from listmonk_client.models.campaign_request import CampaignRequest -from listmonk_client.models.campaign_request_send_at import CampaignRequestSendAt -from listmonk_client.models.campaign_stats import CampaignStats -from listmonk_client.models.campaign_update import CampaignUpdate -from listmonk_client.models.create_campaign200_response import CreateCampaign200Response -from listmonk_client.models.create_list200_response import CreateList200Response -from listmonk_client.models.create_subscriber200_response import CreateSubscriber200Response -from listmonk_client.models.dashboard_chart import DashboardChart -from listmonk_client.models.dashboard_chart_link_clicks_inner import DashboardChartLinkClicksInner -from listmonk_client.models.dashboard_count import DashboardCount -from listmonk_client.models.dashboard_count_data import DashboardCountData -from listmonk_client.models.dashboard_count_data_campaigns import DashboardCountDataCampaigns -from listmonk_client.models.dashboard_count_data_campaigns_by_status import DashboardCountDataCampaignsByStatus -from listmonk_client.models.dashboard_count_data_lists import DashboardCountDataLists -from listmonk_client.models.dashboard_count_data_subscribers import DashboardCountDataSubscribers -from listmonk_client.models.delete_gc_subscribers200_response import DeleteGCSubscribers200Response -from listmonk_client.models.delete_gc_subscribers200_response_data import DeleteGCSubscribers200ResponseData -from listmonk_client.models.get_bounce_by_id200_response import GetBounceById200Response -from listmonk_client.models.get_bounces200_response import GetBounces200Response -from listmonk_client.models.get_bounces200_response_data import GetBounces200ResponseData -from listmonk_client.models.get_campaign_analytics200_response import GetCampaignAnalytics200Response -from listmonk_client.models.get_campaign_by_id200_response import GetCampaignById200Response -from listmonk_client.models.get_campaigns200_response import GetCampaigns200Response -from listmonk_client.models.get_campaigns200_response_data import GetCampaigns200ResponseData -from listmonk_client.models.get_dashboard_charts200_response import GetDashboardCharts200Response -from listmonk_client.models.get_dashboard_counts200_response import GetDashboardCounts200Response -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.get_i18n_lang200_response import GetI18nLang200Response -from listmonk_client.models.get_import_subscriber_stats200_response import GetImportSubscriberStats200Response -from listmonk_client.models.get_import_subscribers200_response import GetImportSubscribers200Response -from listmonk_client.models.get_lists200_response import GetLists200Response -from listmonk_client.models.get_lists200_response_data import GetLists200ResponseData -from listmonk_client.models.get_logs200_response import GetLogs200Response -from listmonk_client.models.get_media200_response import GetMedia200Response -from listmonk_client.models.get_public_lists200_response_inner import GetPublicLists200ResponseInner -from listmonk_client.models.get_running_campaign_stats200_response import GetRunningCampaignStats200Response -from listmonk_client.models.get_server_config200_response import GetServerConfig200Response -from listmonk_client.models.get_settings200_response import GetSettings200Response -from listmonk_client.models.get_subscriber_bounces_by_id200_response import GetSubscriberBouncesById200Response -from listmonk_client.models.get_subscribers200_response import GetSubscribers200Response -from listmonk_client.models.get_subscribers200_response_data import GetSubscribers200ResponseData -from listmonk_client.models.get_template_by_id200_response import GetTemplateById200Response -from listmonk_client.models.get_templates200_response import GetTemplates200Response -from listmonk_client.models.handle_public_subscription200_response import HandlePublicSubscription200Response -from listmonk_client.models.handle_public_subscription_request import HandlePublicSubscriptionRequest -from listmonk_client.models.import_status import ImportStatus -from listmonk_client.models.import_status_data import ImportStatusData -from listmonk_client.models.import_subscribers_request import ImportSubscribersRequest -from listmonk_client.models.language_pack import LanguagePack -from listmonk_client.models.language_pack_data import LanguagePackData -from listmonk_client.models.list import List -from listmonk_client.models.mail_box_bounces import MailBoxBounces -from listmonk_client.models.media_file_object import MediaFileObject -from listmonk_client.models.new_list import NewList -from listmonk_client.models.new_subscriber import NewSubscriber -from listmonk_client.models.new_subscriber_attribs import NewSubscriberAttribs -from listmonk_client.models.new_subscriber_attribs_stack import NewSubscriberAttribsStack -from listmonk_client.models.smtp_settings import SMTPSettings -from listmonk_client.models.smtp_test import SMTPTest -from listmonk_client.models.server_config import ServerConfig -from listmonk_client.models.server_config_data import ServerConfigData -from listmonk_client.models.server_config_data_langs_inner import ServerConfigDataLangsInner -from listmonk_client.models.settings import Settings -from listmonk_client.models.subscriber import Subscriber -from listmonk_client.models.subscriber_data import SubscriberData -from listmonk_client.models.subscriber_lists_inner import SubscriberListsInner -from listmonk_client.models.subscriber_profile import SubscriberProfile -from listmonk_client.models.subscriber_profile_attribs import SubscriberProfileAttribs -from listmonk_client.models.subscriber_query_request import SubscriberQueryRequest -from listmonk_client.models.subscriptions import Subscriptions -from listmonk_client.models.template import Template -from listmonk_client.models.transactional_message import TransactionalMessage -from listmonk_client.models.update_campaign_archive_by_id_request import UpdateCampaignArchiveByIdRequest -from listmonk_client.models.update_campaign_status_by_id_request import UpdateCampaignStatusByIdRequest -from listmonk_client.models.update_subscriber import UpdateSubscriber -from listmonk_client.models.upload_media200_response import UploadMedia200Response +from listmonk.models.bounce import Bounce +from listmonk.models.bounce_results_inner import BounceResultsInner +from listmonk.models.bounce_results_inner_campaign import BounceResultsInnerCampaign +from listmonk.models.campaign import Campaign +from listmonk.models.campaign_analytics_count import CampaignAnalyticsCount +from listmonk.models.campaign_content_request import CampaignContentRequest +from listmonk.models.campaign_request import CampaignRequest +from listmonk.models.campaign_request_send_at import CampaignRequestSendAt +from listmonk.models.campaign_stats import CampaignStats +from listmonk.models.campaign_update import CampaignUpdate +from listmonk.models.create_campaign200_response import CreateCampaign200Response +from listmonk.models.create_list200_response import CreateList200Response +from listmonk.models.create_subscriber200_response import CreateSubscriber200Response +from listmonk.models.dashboard_chart import DashboardChart +from listmonk.models.dashboard_chart_link_clicks_inner import DashboardChartLinkClicksInner +from listmonk.models.dashboard_count import DashboardCount +from listmonk.models.dashboard_count_data import DashboardCountData +from listmonk.models.dashboard_count_data_campaigns import DashboardCountDataCampaigns +from listmonk.models.dashboard_count_data_campaigns_by_status import DashboardCountDataCampaignsByStatus +from listmonk.models.dashboard_count_data_lists import DashboardCountDataLists +from listmonk.models.dashboard_count_data_subscribers import DashboardCountDataSubscribers +from listmonk.models.delete_gc_subscribers200_response import DeleteGCSubscribers200Response +from listmonk.models.delete_gc_subscribers200_response_data import DeleteGCSubscribers200ResponseData +from listmonk.models.get_bounce_by_id200_response import GetBounceById200Response +from listmonk.models.get_bounces200_response import GetBounces200Response +from listmonk.models.get_bounces200_response_data import GetBounces200ResponseData +from listmonk.models.get_campaign_analytics200_response import GetCampaignAnalytics200Response +from listmonk.models.get_campaign_by_id200_response import GetCampaignById200Response +from listmonk.models.get_campaigns200_response import GetCampaigns200Response +from listmonk.models.get_campaigns200_response_data import GetCampaigns200ResponseData +from listmonk.models.get_dashboard_charts200_response import GetDashboardCharts200Response +from listmonk.models.get_dashboard_counts200_response import GetDashboardCounts200Response +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.get_i18n_lang200_response import GetI18nLang200Response +from listmonk.models.get_import_subscriber_stats200_response import GetImportSubscriberStats200Response +from listmonk.models.get_import_subscribers200_response import GetImportSubscribers200Response +from listmonk.models.get_lists200_response import GetLists200Response +from listmonk.models.get_lists200_response_data import GetLists200ResponseData +from listmonk.models.get_logs200_response import GetLogs200Response +from listmonk.models.get_media200_response import GetMedia200Response +from listmonk.models.get_public_lists200_response_inner import GetPublicLists200ResponseInner +from listmonk.models.get_running_campaign_stats200_response import GetRunningCampaignStats200Response +from listmonk.models.get_server_config200_response import GetServerConfig200Response +from listmonk.models.get_settings200_response import GetSettings200Response +from listmonk.models.get_subscriber_bounces_by_id200_response import GetSubscriberBouncesById200Response +from listmonk.models.get_subscribers200_response import GetSubscribers200Response +from listmonk.models.get_subscribers200_response_data import GetSubscribers200ResponseData +from listmonk.models.get_template_by_id200_response import GetTemplateById200Response +from listmonk.models.get_templates200_response import GetTemplates200Response +from listmonk.models.handle_public_subscription200_response import HandlePublicSubscription200Response +from listmonk.models.handle_public_subscription_request import HandlePublicSubscriptionRequest +from listmonk.models.import_status import ImportStatus +from listmonk.models.import_status_data import ImportStatusData +from listmonk.models.import_subscribers_request import ImportSubscribersRequest +from listmonk.models.language_pack import LanguagePack +from listmonk.models.language_pack_data import LanguagePackData +from listmonk.models.list import List +from listmonk.models.mail_box_bounces import MailBoxBounces +from listmonk.models.media_file_object import MediaFileObject +from listmonk.models.new_list import NewList +from listmonk.models.new_subscriber import NewSubscriber +from listmonk.models.new_subscriber_attribs import NewSubscriberAttribs +from listmonk.models.new_subscriber_attribs_stack import NewSubscriberAttribsStack +from listmonk.models.smtp_settings import SMTPSettings +from listmonk.models.smtp_test import SMTPTest +from listmonk.models.server_config import ServerConfig +from listmonk.models.server_config_data import ServerConfigData +from listmonk.models.server_config_data_langs_inner import ServerConfigDataLangsInner +from listmonk.models.settings import Settings +from listmonk.models.subscriber import Subscriber +from listmonk.models.subscriber_data import SubscriberData +from listmonk.models.subscriber_lists_inner import SubscriberListsInner +from listmonk.models.subscriber_profile import SubscriberProfile +from listmonk.models.subscriber_profile_attribs import SubscriberProfileAttribs +from listmonk.models.subscriber_query_request import SubscriberQueryRequest +from listmonk.models.subscriptions import Subscriptions +from listmonk.models.template import Template +from listmonk.models.transactional_message import TransactionalMessage +from listmonk.models.update_campaign_archive_by_id_request import UpdateCampaignArchiveByIdRequest +from listmonk.models.update_campaign_status_by_id_request import UpdateCampaignStatusByIdRequest +from listmonk.models.update_subscriber import UpdateSubscriber +from listmonk.models.upload_media200_response import UploadMedia200Response diff --git a/listmonk/api/__init__.py b/listmonk/api/__init__.py index eaa3f9b..119e6a0 100644 --- a/listmonk/api/__init__.py +++ b/listmonk/api/__init__.py @@ -1,18 +1,18 @@ # flake8: noqa # import apis into api package -from listmonk_client.api.admin_api import AdminApi -from listmonk_client.api.bounces_api import BouncesApi -from listmonk_client.api.campaigns_api import CampaignsApi -from listmonk_client.api.import_api import ImportApi -from listmonk_client.api.lists_api import ListsApi -from listmonk_client.api.logs_api import LogsApi -from listmonk_client.api.maintenance_api import MaintenanceApi -from listmonk_client.api.media_api import MediaApi -from listmonk_client.api.miscellaneous_api import MiscellaneousApi -from listmonk_client.api.public_api import PublicApi -from listmonk_client.api.settings_api import SettingsApi -from listmonk_client.api.subscribers_api import SubscribersApi -from listmonk_client.api.templates_api import TemplatesApi -from listmonk_client.api.transactional_api import TransactionalApi +from listmonk.api.admin_api import AdminApi +from listmonk.api.bounces_api import BouncesApi +from listmonk.api.campaigns_api import CampaignsApi +from listmonk.api.import_api import ImportApi +from listmonk.api.lists_api import ListsApi +from listmonk.api.logs_api import LogsApi +from listmonk.api.maintenance_api import MaintenanceApi +from listmonk.api.media_api import MediaApi +from listmonk.api.miscellaneous_api import MiscellaneousApi +from listmonk.api.public_api import PublicApi +from listmonk.api.settings_api import SettingsApi +from listmonk.api.subscribers_api import SubscribersApi +from listmonk.api.templates_api import TemplatesApi +from listmonk.api.transactional_api import TransactionalApi diff --git a/listmonk/api/admin_api.py b/listmonk/api/admin_api.py index 679be9f..462d374 100644 --- a/listmonk/api/admin_api.py +++ b/listmonk/api/admin_api.py @@ -23,11 +23,11 @@ except ImportError: from typing_extensions import Annotated -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.api_client import ApiClient -from listmonk_client.api_response import ApiResponse -from listmonk_client.rest import RESTResponseType +from listmonk.api_client import ApiClient +from listmonk.api_response import ApiResponse +from listmonk.rest import RESTResponseType class AdminApi: diff --git a/listmonk/api/bounces_api.py b/listmonk/api/bounces_api.py index 40aef58..638c78e 100644 --- a/listmonk/api/bounces_api.py +++ b/listmonk/api/bounces_api.py @@ -29,13 +29,13 @@ from typing import Optional -from listmonk_client.models.get_bounce_by_id200_response import GetBounceById200Response -from listmonk_client.models.get_bounces200_response import GetBounces200Response -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.get_bounce_by_id200_response import GetBounceById200Response +from listmonk.models.get_bounces200_response import GetBounces200Response +from listmonk.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.api_client import ApiClient -from listmonk_client.api_response import ApiResponse -from listmonk_client.rest import RESTResponseType +from listmonk.api_client import ApiClient +from listmonk.api_response import ApiResponse +from listmonk.rest import RESTResponseType class BouncesApi: diff --git a/listmonk/api/campaigns_api.py b/listmonk/api/campaigns_api.py index f593d56..905edf0 100644 --- a/listmonk/api/campaigns_api.py +++ b/listmonk/api/campaigns_api.py @@ -29,21 +29,21 @@ from typing import List, Optional -from listmonk_client.models.campaign_content_request import CampaignContentRequest -from listmonk_client.models.campaign_request import CampaignRequest -from listmonk_client.models.create_campaign200_response import CreateCampaign200Response -from listmonk_client.models.get_campaign_analytics200_response import GetCampaignAnalytics200Response -from listmonk_client.models.get_campaign_by_id200_response import GetCampaignById200Response -from listmonk_client.models.get_campaigns200_response import GetCampaigns200Response -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.get_import_subscriber_stats200_response import GetImportSubscriberStats200Response -from listmonk_client.models.get_running_campaign_stats200_response import GetRunningCampaignStats200Response -from listmonk_client.models.update_campaign_archive_by_id_request import UpdateCampaignArchiveByIdRequest -from listmonk_client.models.update_campaign_status_by_id_request import UpdateCampaignStatusByIdRequest - -from listmonk_client.api_client import ApiClient -from listmonk_client.api_response import ApiResponse -from listmonk_client.rest import RESTResponseType +from listmonk.models.campaign_content_request import CampaignContentRequest +from listmonk.models.campaign_request import CampaignRequest +from listmonk.models.create_campaign200_response import CreateCampaign200Response +from listmonk.models.get_campaign_analytics200_response import GetCampaignAnalytics200Response +from listmonk.models.get_campaign_by_id200_response import GetCampaignById200Response +from listmonk.models.get_campaigns200_response import GetCampaigns200Response +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.get_import_subscriber_stats200_response import GetImportSubscriberStats200Response +from listmonk.models.get_running_campaign_stats200_response import GetRunningCampaignStats200Response +from listmonk.models.update_campaign_archive_by_id_request import UpdateCampaignArchiveByIdRequest +from listmonk.models.update_campaign_status_by_id_request import UpdateCampaignStatusByIdRequest + +from listmonk.api_client import ApiClient +from listmonk.api_response import ApiResponse +from listmonk.rest import RESTResponseType class CampaignsApi: diff --git a/listmonk/api/import_api.py b/listmonk/api/import_api.py index f3f436c..46a53d3 100644 --- a/listmonk/api/import_api.py +++ b/listmonk/api/import_api.py @@ -27,13 +27,13 @@ from typing_extensions import Annotated from typing import Optional -from listmonk_client.models.get_import_subscriber_stats200_response import GetImportSubscriberStats200Response -from listmonk_client.models.get_import_subscribers200_response import GetImportSubscribers200Response -from listmonk_client.models.import_subscribers_request import ImportSubscribersRequest +from listmonk.models.get_import_subscriber_stats200_response import GetImportSubscriberStats200Response +from listmonk.models.get_import_subscribers200_response import GetImportSubscribers200Response +from listmonk.models.import_subscribers_request import ImportSubscribersRequest -from listmonk_client.api_client import ApiClient -from listmonk_client.api_response import ApiResponse -from listmonk_client.rest import RESTResponseType +from listmonk.api_client import ApiClient +from listmonk.api_response import ApiResponse +from listmonk.rest import RESTResponseType class ImportApi: diff --git a/listmonk/api/lists_api.py b/listmonk/api/lists_api.py index 4a9ae59..2e1e4a5 100644 --- a/listmonk/api/lists_api.py +++ b/listmonk/api/lists_api.py @@ -29,15 +29,15 @@ from typing import Optional -from listmonk_client.models.create_list200_response import CreateList200Response -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.get_lists200_response import GetLists200Response -from listmonk_client.models.list import List -from listmonk_client.models.new_list import NewList - -from listmonk_client.api_client import ApiClient -from listmonk_client.api_response import ApiResponse -from listmonk_client.rest import RESTResponseType +from listmonk.models.create_list200_response import CreateList200Response +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.get_lists200_response import GetLists200Response +from listmonk.models.list import List +from listmonk.models.new_list import NewList + +from listmonk.api_client import ApiClient +from listmonk.api_response import ApiResponse +from listmonk.rest import RESTResponseType class ListsApi: diff --git a/listmonk/api/logs_api.py b/listmonk/api/logs_api.py index 32d445c..b6a0c5b 100644 --- a/listmonk/api/logs_api.py +++ b/listmonk/api/logs_api.py @@ -23,11 +23,11 @@ except ImportError: from typing_extensions import Annotated -from listmonk_client.models.get_logs200_response import GetLogs200Response +from listmonk.models.get_logs200_response import GetLogs200Response -from listmonk_client.api_client import ApiClient -from listmonk_client.api_response import ApiResponse -from listmonk_client.rest import RESTResponseType +from listmonk.api_client import ApiClient +from listmonk.api_response import ApiResponse +from listmonk.rest import RESTResponseType class LogsApi: diff --git a/listmonk/api/maintenance_api.py b/listmonk/api/maintenance_api.py index f9b868c..3983909 100644 --- a/listmonk/api/maintenance_api.py +++ b/listmonk/api/maintenance_api.py @@ -31,12 +31,12 @@ from typing import Optional -from listmonk_client.models.delete_gc_subscribers200_response import DeleteGCSubscribers200Response -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.delete_gc_subscribers200_response import DeleteGCSubscribers200Response +from listmonk.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.api_client import ApiClient -from listmonk_client.api_response import ApiResponse -from listmonk_client.rest import RESTResponseType +from listmonk.api_client import ApiClient +from listmonk.api_response import ApiResponse +from listmonk.rest import RESTResponseType class MaintenanceApi: diff --git a/listmonk/api/media_api.py b/listmonk/api/media_api.py index ae27595..c6bf25c 100644 --- a/listmonk/api/media_api.py +++ b/listmonk/api/media_api.py @@ -27,13 +27,13 @@ from typing_extensions import Annotated from pydantic import StrictInt -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.get_media200_response import GetMedia200Response -from listmonk_client.models.upload_media200_response import UploadMedia200Response +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.get_media200_response import GetMedia200Response +from listmonk.models.upload_media200_response import UploadMedia200Response -from listmonk_client.api_client import ApiClient -from listmonk_client.api_response import ApiResponse -from listmonk_client.rest import RESTResponseType +from listmonk.api_client import ApiClient +from listmonk.api_response import ApiResponse +from listmonk.rest import RESTResponseType class MediaApi: diff --git a/listmonk/api/miscellaneous_api.py b/listmonk/api/miscellaneous_api.py index ee17509..c4d703a 100644 --- a/listmonk/api/miscellaneous_api.py +++ b/listmonk/api/miscellaneous_api.py @@ -27,15 +27,15 @@ from typing_extensions import Annotated from pydantic import StrictStr -from listmonk_client.models.get_dashboard_charts200_response import GetDashboardCharts200Response -from listmonk_client.models.get_dashboard_counts200_response import GetDashboardCounts200Response -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.get_i18n_lang200_response import GetI18nLang200Response -from listmonk_client.models.get_server_config200_response import GetServerConfig200Response - -from listmonk_client.api_client import ApiClient -from listmonk_client.api_response import ApiResponse -from listmonk_client.rest import RESTResponseType +from listmonk.models.get_dashboard_charts200_response import GetDashboardCharts200Response +from listmonk.models.get_dashboard_counts200_response import GetDashboardCounts200Response +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.get_i18n_lang200_response import GetI18nLang200Response +from listmonk.models.get_server_config200_response import GetServerConfig200Response + +from listmonk.api_client import ApiClient +from listmonk.api_response import ApiResponse +from listmonk.rest import RESTResponseType class MiscellaneousApi: diff --git a/listmonk/api/public_api.py b/listmonk/api/public_api.py index 23c9ff3..b725da9 100644 --- a/listmonk/api/public_api.py +++ b/listmonk/api/public_api.py @@ -27,13 +27,13 @@ from typing_extensions import Annotated from typing import List, Optional -from listmonk_client.models.get_public_lists200_response_inner import GetPublicLists200ResponseInner -from listmonk_client.models.handle_public_subscription200_response import HandlePublicSubscription200Response -from listmonk_client.models.handle_public_subscription_request import HandlePublicSubscriptionRequest +from listmonk.models.get_public_lists200_response_inner import GetPublicLists200ResponseInner +from listmonk.models.handle_public_subscription200_response import HandlePublicSubscription200Response +from listmonk.models.handle_public_subscription_request import HandlePublicSubscriptionRequest -from listmonk_client.api_client import ApiClient -from listmonk_client.api_response import ApiResponse -from listmonk_client.rest import RESTResponseType +from listmonk.api_client import ApiClient +from listmonk.api_response import ApiResponse +from listmonk.rest import RESTResponseType class PublicApi: diff --git a/listmonk/api/settings_api.py b/listmonk/api/settings_api.py index 6580a72..cc33955 100644 --- a/listmonk/api/settings_api.py +++ b/listmonk/api/settings_api.py @@ -27,14 +27,14 @@ from typing_extensions import Annotated from typing import Optional -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.get_settings200_response import GetSettings200Response -from listmonk_client.models.smtp_test import SMTPTest -from listmonk_client.models.settings import Settings - -from listmonk_client.api_client import ApiClient -from listmonk_client.api_response import ApiResponse -from listmonk_client.rest import RESTResponseType +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.get_settings200_response import GetSettings200Response +from listmonk.models.smtp_test import SMTPTest +from listmonk.models.settings import Settings + +from listmonk.api_client import ApiClient +from listmonk.api_response import ApiResponse +from listmonk.rest import RESTResponseType class SettingsApi: diff --git a/listmonk/api/subscribers_api.py b/listmonk/api/subscribers_api.py index 5a72564..71e557c 100644 --- a/listmonk/api/subscribers_api.py +++ b/listmonk/api/subscribers_api.py @@ -29,18 +29,18 @@ from typing import Optional -from listmonk_client.models.create_subscriber200_response import CreateSubscriber200Response -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.get_subscriber_bounces_by_id200_response import GetSubscriberBouncesById200Response -from listmonk_client.models.get_subscribers200_response import GetSubscribers200Response -from listmonk_client.models.new_subscriber import NewSubscriber -from listmonk_client.models.subscriber_data import SubscriberData -from listmonk_client.models.subscriber_query_request import SubscriberQueryRequest -from listmonk_client.models.update_subscriber import UpdateSubscriber - -from listmonk_client.api_client import ApiClient -from listmonk_client.api_response import ApiResponse -from listmonk_client.rest import RESTResponseType +from listmonk.models.create_subscriber200_response import CreateSubscriber200Response +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.get_subscriber_bounces_by_id200_response import GetSubscriberBouncesById200Response +from listmonk.models.get_subscribers200_response import GetSubscribers200Response +from listmonk.models.new_subscriber import NewSubscriber +from listmonk.models.subscriber_data import SubscriberData +from listmonk.models.subscriber_query_request import SubscriberQueryRequest +from listmonk.models.update_subscriber import UpdateSubscriber + +from listmonk.api_client import ApiClient +from listmonk.api_response import ApiResponse +from listmonk.rest import RESTResponseType class SubscribersApi: diff --git a/listmonk/api/templates_api.py b/listmonk/api/templates_api.py index 4ff88f4..2349121 100644 --- a/listmonk/api/templates_api.py +++ b/listmonk/api/templates_api.py @@ -29,14 +29,14 @@ from typing import Optional -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.get_template_by_id200_response import GetTemplateById200Response -from listmonk_client.models.get_templates200_response import GetTemplates200Response -from listmonk_client.models.template import Template - -from listmonk_client.api_client import ApiClient -from listmonk_client.api_response import ApiResponse -from listmonk_client.rest import RESTResponseType +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.get_template_by_id200_response import GetTemplateById200Response +from listmonk.models.get_templates200_response import GetTemplates200Response +from listmonk.models.template import Template + +from listmonk.api_client import ApiClient +from listmonk.api_response import ApiResponse +from listmonk.rest import RESTResponseType class TemplatesApi: diff --git a/listmonk/api/transactional_api.py b/listmonk/api/transactional_api.py index 38cd971..c199b4b 100644 --- a/listmonk/api/transactional_api.py +++ b/listmonk/api/transactional_api.py @@ -27,12 +27,12 @@ from typing_extensions import Annotated from typing import Optional -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.transactional_message import TransactionalMessage +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.transactional_message import TransactionalMessage -from listmonk_client.api_client import ApiClient -from listmonk_client.api_response import ApiResponse -from listmonk_client.rest import RESTResponseType +from listmonk.api_client import ApiClient +from listmonk.api_response import ApiResponse +from listmonk.rest import RESTResponseType class TransactionalApi: diff --git a/listmonk/api_client.py b/listmonk/api_client.py index 87750f0..82d5b91 100644 --- a/listmonk/api_client.py +++ b/listmonk/api_client.py @@ -24,11 +24,11 @@ from urllib.parse import quote from typing import Tuple, Optional, List -from listmonk_client.configuration import Configuration -from listmonk_client.api_response import ApiResponse -import listmonk_client.models -from listmonk_client import rest -from listmonk_client.exceptions import ( +from listmonk.configuration import Configuration +from listmonk.api_response import ApiResponse +import listmonk.models +from listmonk import rest +from listmonk.exceptions import ( ApiValueError, ApiException, BadRequestException, @@ -425,7 +425,7 @@ def __deserialize(self, data, klass): if klass in self.NATIVE_TYPES_MAPPING: klass = self.NATIVE_TYPES_MAPPING[klass] else: - klass = getattr(listmonk_client.models, klass) + klass = getattr(listmonk.models, klass) if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) diff --git a/listmonk/models/__init__.py b/listmonk/models/__init__.py index 656dd12..768aa60 100644 --- a/listmonk/models/__init__.py +++ b/listmonk/models/__init__.py @@ -14,85 +14,85 @@ # import models into model package -from listmonk_client.models.bounce import Bounce -from listmonk_client.models.bounce_results_inner import BounceResultsInner -from listmonk_client.models.bounce_results_inner_campaign import BounceResultsInnerCampaign -from listmonk_client.models.campaign import Campaign -from listmonk_client.models.campaign_analytics_count import CampaignAnalyticsCount -from listmonk_client.models.campaign_content_request import CampaignContentRequest -from listmonk_client.models.campaign_request import CampaignRequest -from listmonk_client.models.campaign_request_send_at import CampaignRequestSendAt -from listmonk_client.models.campaign_stats import CampaignStats -from listmonk_client.models.campaign_update import CampaignUpdate -from listmonk_client.models.create_campaign200_response import CreateCampaign200Response -from listmonk_client.models.create_list200_response import CreateList200Response -from listmonk_client.models.create_subscriber200_response import CreateSubscriber200Response -from listmonk_client.models.dashboard_chart import DashboardChart -from listmonk_client.models.dashboard_chart_link_clicks_inner import DashboardChartLinkClicksInner -from listmonk_client.models.dashboard_count import DashboardCount -from listmonk_client.models.dashboard_count_data import DashboardCountData -from listmonk_client.models.dashboard_count_data_campaigns import DashboardCountDataCampaigns -from listmonk_client.models.dashboard_count_data_campaigns_by_status import DashboardCountDataCampaignsByStatus -from listmonk_client.models.dashboard_count_data_lists import DashboardCountDataLists -from listmonk_client.models.dashboard_count_data_subscribers import DashboardCountDataSubscribers -from listmonk_client.models.delete_gc_subscribers200_response import DeleteGCSubscribers200Response -from listmonk_client.models.delete_gc_subscribers200_response_data import DeleteGCSubscribers200ResponseData -from listmonk_client.models.get_bounce_by_id200_response import GetBounceById200Response -from listmonk_client.models.get_bounces200_response import GetBounces200Response -from listmonk_client.models.get_bounces200_response_data import GetBounces200ResponseData -from listmonk_client.models.get_campaign_analytics200_response import GetCampaignAnalytics200Response -from listmonk_client.models.get_campaign_by_id200_response import GetCampaignById200Response -from listmonk_client.models.get_campaigns200_response import GetCampaigns200Response -from listmonk_client.models.get_campaigns200_response_data import GetCampaigns200ResponseData -from listmonk_client.models.get_dashboard_charts200_response import GetDashboardCharts200Response -from listmonk_client.models.get_dashboard_counts200_response import GetDashboardCounts200Response -from listmonk_client.models.get_health_check200_response import GetHealthCheck200Response -from listmonk_client.models.get_i18n_lang200_response import GetI18nLang200Response -from listmonk_client.models.get_import_subscriber_stats200_response import GetImportSubscriberStats200Response -from listmonk_client.models.get_import_subscribers200_response import GetImportSubscribers200Response -from listmonk_client.models.get_lists200_response import GetLists200Response -from listmonk_client.models.get_lists200_response_data import GetLists200ResponseData -from listmonk_client.models.get_logs200_response import GetLogs200Response -from listmonk_client.models.get_media200_response import GetMedia200Response -from listmonk_client.models.get_public_lists200_response_inner import GetPublicLists200ResponseInner -from listmonk_client.models.get_running_campaign_stats200_response import GetRunningCampaignStats200Response -from listmonk_client.models.get_server_config200_response import GetServerConfig200Response -from listmonk_client.models.get_settings200_response import GetSettings200Response -from listmonk_client.models.get_subscriber_bounces_by_id200_response import GetSubscriberBouncesById200Response -from listmonk_client.models.get_subscribers200_response import GetSubscribers200Response -from listmonk_client.models.get_subscribers200_response_data import GetSubscribers200ResponseData -from listmonk_client.models.get_template_by_id200_response import GetTemplateById200Response -from listmonk_client.models.get_templates200_response import GetTemplates200Response -from listmonk_client.models.handle_public_subscription200_response import HandlePublicSubscription200Response -from listmonk_client.models.handle_public_subscription_request import HandlePublicSubscriptionRequest -from listmonk_client.models.import_status import ImportStatus -from listmonk_client.models.import_status_data import ImportStatusData -from listmonk_client.models.import_subscribers_request import ImportSubscribersRequest -from listmonk_client.models.language_pack import LanguagePack -from listmonk_client.models.language_pack_data import LanguagePackData -from listmonk_client.models.list import List -from listmonk_client.models.mail_box_bounces import MailBoxBounces -from listmonk_client.models.media_file_object import MediaFileObject -from listmonk_client.models.new_list import NewList -from listmonk_client.models.new_subscriber import NewSubscriber -from listmonk_client.models.new_subscriber_attribs import NewSubscriberAttribs -from listmonk_client.models.new_subscriber_attribs_stack import NewSubscriberAttribsStack -from listmonk_client.models.smtp_settings import SMTPSettings -from listmonk_client.models.smtp_test import SMTPTest -from listmonk_client.models.server_config import ServerConfig -from listmonk_client.models.server_config_data import ServerConfigData -from listmonk_client.models.server_config_data_langs_inner import ServerConfigDataLangsInner -from listmonk_client.models.settings import Settings -from listmonk_client.models.subscriber import Subscriber -from listmonk_client.models.subscriber_data import SubscriberData -from listmonk_client.models.subscriber_lists_inner import SubscriberListsInner -from listmonk_client.models.subscriber_profile import SubscriberProfile -from listmonk_client.models.subscriber_profile_attribs import SubscriberProfileAttribs -from listmonk_client.models.subscriber_query_request import SubscriberQueryRequest -from listmonk_client.models.subscriptions import Subscriptions -from listmonk_client.models.template import Template -from listmonk_client.models.transactional_message import TransactionalMessage -from listmonk_client.models.update_campaign_archive_by_id_request import UpdateCampaignArchiveByIdRequest -from listmonk_client.models.update_campaign_status_by_id_request import UpdateCampaignStatusByIdRequest -from listmonk_client.models.update_subscriber import UpdateSubscriber -from listmonk_client.models.upload_media200_response import UploadMedia200Response +from listmonk.models.bounce import Bounce +from listmonk.models.bounce_results_inner import BounceResultsInner +from listmonk.models.bounce_results_inner_campaign import BounceResultsInnerCampaign +from listmonk.models.campaign import Campaign +from listmonk.models.campaign_analytics_count import CampaignAnalyticsCount +from listmonk.models.campaign_content_request import CampaignContentRequest +from listmonk.models.campaign_request import CampaignRequest +from listmonk.models.campaign_request_send_at import CampaignRequestSendAt +from listmonk.models.campaign_stats import CampaignStats +from listmonk.models.campaign_update import CampaignUpdate +from listmonk.models.create_campaign200_response import CreateCampaign200Response +from listmonk.models.create_list200_response import CreateList200Response +from listmonk.models.create_subscriber200_response import CreateSubscriber200Response +from listmonk.models.dashboard_chart import DashboardChart +from listmonk.models.dashboard_chart_link_clicks_inner import DashboardChartLinkClicksInner +from listmonk.models.dashboard_count import DashboardCount +from listmonk.models.dashboard_count_data import DashboardCountData +from listmonk.models.dashboard_count_data_campaigns import DashboardCountDataCampaigns +from listmonk.models.dashboard_count_data_campaigns_by_status import DashboardCountDataCampaignsByStatus +from listmonk.models.dashboard_count_data_lists import DashboardCountDataLists +from listmonk.models.dashboard_count_data_subscribers import DashboardCountDataSubscribers +from listmonk.models.delete_gc_subscribers200_response import DeleteGCSubscribers200Response +from listmonk.models.delete_gc_subscribers200_response_data import DeleteGCSubscribers200ResponseData +from listmonk.models.get_bounce_by_id200_response import GetBounceById200Response +from listmonk.models.get_bounces200_response import GetBounces200Response +from listmonk.models.get_bounces200_response_data import GetBounces200ResponseData +from listmonk.models.get_campaign_analytics200_response import GetCampaignAnalytics200Response +from listmonk.models.get_campaign_by_id200_response import GetCampaignById200Response +from listmonk.models.get_campaigns200_response import GetCampaigns200Response +from listmonk.models.get_campaigns200_response_data import GetCampaigns200ResponseData +from listmonk.models.get_dashboard_charts200_response import GetDashboardCharts200Response +from listmonk.models.get_dashboard_counts200_response import GetDashboardCounts200Response +from listmonk.models.get_health_check200_response import GetHealthCheck200Response +from listmonk.models.get_i18n_lang200_response import GetI18nLang200Response +from listmonk.models.get_import_subscriber_stats200_response import GetImportSubscriberStats200Response +from listmonk.models.get_import_subscribers200_response import GetImportSubscribers200Response +from listmonk.models.get_lists200_response import GetLists200Response +from listmonk.models.get_lists200_response_data import GetLists200ResponseData +from listmonk.models.get_logs200_response import GetLogs200Response +from listmonk.models.get_media200_response import GetMedia200Response +from listmonk.models.get_public_lists200_response_inner import GetPublicLists200ResponseInner +from listmonk.models.get_running_campaign_stats200_response import GetRunningCampaignStats200Response +from listmonk.models.get_server_config200_response import GetServerConfig200Response +from listmonk.models.get_settings200_response import GetSettings200Response +from listmonk.models.get_subscriber_bounces_by_id200_response import GetSubscriberBouncesById200Response +from listmonk.models.get_subscribers200_response import GetSubscribers200Response +from listmonk.models.get_subscribers200_response_data import GetSubscribers200ResponseData +from listmonk.models.get_template_by_id200_response import GetTemplateById200Response +from listmonk.models.get_templates200_response import GetTemplates200Response +from listmonk.models.handle_public_subscription200_response import HandlePublicSubscription200Response +from listmonk.models.handle_public_subscription_request import HandlePublicSubscriptionRequest +from listmonk.models.import_status import ImportStatus +from listmonk.models.import_status_data import ImportStatusData +from listmonk.models.import_subscribers_request import ImportSubscribersRequest +from listmonk.models.language_pack import LanguagePack +from listmonk.models.language_pack_data import LanguagePackData +from listmonk.models.list import List +from listmonk.models.mail_box_bounces import MailBoxBounces +from listmonk.models.media_file_object import MediaFileObject +from listmonk.models.new_list import NewList +from listmonk.models.new_subscriber import NewSubscriber +from listmonk.models.new_subscriber_attribs import NewSubscriberAttribs +from listmonk.models.new_subscriber_attribs_stack import NewSubscriberAttribsStack +from listmonk.models.smtp_settings import SMTPSettings +from listmonk.models.smtp_test import SMTPTest +from listmonk.models.server_config import ServerConfig +from listmonk.models.server_config_data import ServerConfigData +from listmonk.models.server_config_data_langs_inner import ServerConfigDataLangsInner +from listmonk.models.settings import Settings +from listmonk.models.subscriber import Subscriber +from listmonk.models.subscriber_data import SubscriberData +from listmonk.models.subscriber_lists_inner import SubscriberListsInner +from listmonk.models.subscriber_profile import SubscriberProfile +from listmonk.models.subscriber_profile_attribs import SubscriberProfileAttribs +from listmonk.models.subscriber_query_request import SubscriberQueryRequest +from listmonk.models.subscriptions import Subscriptions +from listmonk.models.template import Template +from listmonk.models.transactional_message import TransactionalMessage +from listmonk.models.update_campaign_archive_by_id_request import UpdateCampaignArchiveByIdRequest +from listmonk.models.update_campaign_status_by_id_request import UpdateCampaignStatusByIdRequest +from listmonk.models.update_subscriber import UpdateSubscriber +from listmonk.models.upload_media200_response import UploadMedia200Response diff --git a/listmonk/models/bounce.py b/listmonk/models/bounce.py index d6786cd..7dc40a9 100644 --- a/listmonk/models/bounce.py +++ b/listmonk/models/bounce.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.bounce_results_inner import BounceResultsInner +from listmonk.models.bounce_results_inner import BounceResultsInner try: from typing import Self except ImportError: diff --git a/listmonk/models/bounce_results_inner.py b/listmonk/models/bounce_results_inner.py index e10cd3f..c6f37da 100644 --- a/listmonk/models/bounce_results_inner.py +++ b/listmonk/models/bounce_results_inner.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from pydantic import BaseModel, StrictInt, StrictStr -from listmonk_client.models.bounce_results_inner_campaign import BounceResultsInnerCampaign +from listmonk.models.bounce_results_inner_campaign import BounceResultsInnerCampaign try: from typing import Self except ImportError: diff --git a/listmonk/models/campaign.py b/listmonk/models/campaign.py index 1c336a9..51c519f 100644 --- a/listmonk/models/campaign.py +++ b/listmonk/models/campaign.py @@ -21,7 +21,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictInt, StrictStr, field_validator from pydantic import Field -from listmonk_client.models.bounce_results_inner_campaign import BounceResultsInnerCampaign +from listmonk.models.bounce_results_inner_campaign import BounceResultsInnerCampaign try: from typing import Self except ImportError: diff --git a/listmonk/models/campaign_content_request.py b/listmonk/models/campaign_content_request.py index ceae0fb..8408879 100644 --- a/listmonk/models/campaign_content_request.py +++ b/listmonk/models/campaign_content_request.py @@ -21,7 +21,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictInt, StrictStr, field_validator from pydantic import Field -from listmonk_client.models.bounce_results_inner_campaign import BounceResultsInnerCampaign +from listmonk.models.bounce_results_inner_campaign import BounceResultsInnerCampaign try: from typing import Self except ImportError: diff --git a/listmonk/models/campaign_request.py b/listmonk/models/campaign_request.py index 9780a86..95f101a 100644 --- a/listmonk/models/campaign_request.py +++ b/listmonk/models/campaign_request.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr -from listmonk_client.models.campaign_request_send_at import CampaignRequestSendAt +from listmonk.models.campaign_request_send_at import CampaignRequestSendAt try: from typing import Self except ImportError: diff --git a/listmonk/models/create_campaign200_response.py b/listmonk/models/create_campaign200_response.py index 2b819aa..f220fb7 100644 --- a/listmonk/models/create_campaign200_response.py +++ b/listmonk/models/create_campaign200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.campaign_update import CampaignUpdate +from listmonk.models.campaign_update import CampaignUpdate try: from typing import Self except ImportError: diff --git a/listmonk/models/create_list200_response.py b/listmonk/models/create_list200_response.py index 34db95c..064c6eb 100644 --- a/listmonk/models/create_list200_response.py +++ b/listmonk/models/create_list200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.list import List +from listmonk.models.list import List try: from typing import Self except ImportError: diff --git a/listmonk/models/create_subscriber200_response.py b/listmonk/models/create_subscriber200_response.py index 3c8612f..faabcc8 100644 --- a/listmonk/models/create_subscriber200_response.py +++ b/listmonk/models/create_subscriber200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.subscriber import Subscriber +from listmonk.models.subscriber import Subscriber try: from typing import Self except ImportError: diff --git a/listmonk/models/dashboard_chart.py b/listmonk/models/dashboard_chart.py index 059d06a..c3ad9d6 100644 --- a/listmonk/models/dashboard_chart.py +++ b/listmonk/models/dashboard_chart.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.dashboard_chart_link_clicks_inner import DashboardChartLinkClicksInner +from listmonk.models.dashboard_chart_link_clicks_inner import DashboardChartLinkClicksInner try: from typing import Self except ImportError: diff --git a/listmonk/models/dashboard_count.py b/listmonk/models/dashboard_count.py index 06cf9b4..77829a1 100644 --- a/listmonk/models/dashboard_count.py +++ b/listmonk/models/dashboard_count.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.dashboard_count_data import DashboardCountData +from listmonk.models.dashboard_count_data import DashboardCountData try: from typing import Self except ImportError: diff --git a/listmonk/models/dashboard_count_data.py b/listmonk/models/dashboard_count_data.py index adcdf27..792adf8 100644 --- a/listmonk/models/dashboard_count_data.py +++ b/listmonk/models/dashboard_count_data.py @@ -20,9 +20,9 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictInt -from listmonk_client.models.dashboard_count_data_campaigns import DashboardCountDataCampaigns -from listmonk_client.models.dashboard_count_data_lists import DashboardCountDataLists -from listmonk_client.models.dashboard_count_data_subscribers import DashboardCountDataSubscribers +from listmonk.models.dashboard_count_data_campaigns import DashboardCountDataCampaigns +from listmonk.models.dashboard_count_data_lists import DashboardCountDataLists +from listmonk.models.dashboard_count_data_subscribers import DashboardCountDataSubscribers try: from typing import Self except ImportError: diff --git a/listmonk/models/dashboard_count_data_campaigns.py b/listmonk/models/dashboard_count_data_campaigns.py index ee3f9a0..37675dc 100644 --- a/listmonk/models/dashboard_count_data_campaigns.py +++ b/listmonk/models/dashboard_count_data_campaigns.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictInt -from listmonk_client.models.dashboard_count_data_campaigns_by_status import DashboardCountDataCampaignsByStatus +from listmonk.models.dashboard_count_data_campaigns_by_status import DashboardCountDataCampaignsByStatus try: from typing import Self except ImportError: diff --git a/listmonk/models/delete_gc_subscribers200_response.py b/listmonk/models/delete_gc_subscribers200_response.py index 4dde7a5..c88c4a2 100644 --- a/listmonk/models/delete_gc_subscribers200_response.py +++ b/listmonk/models/delete_gc_subscribers200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.delete_gc_subscribers200_response_data import DeleteGCSubscribers200ResponseData +from listmonk.models.delete_gc_subscribers200_response_data import DeleteGCSubscribers200ResponseData try: from typing import Self except ImportError: diff --git a/listmonk/models/get_bounce_by_id200_response.py b/listmonk/models/get_bounce_by_id200_response.py index daebf36..62fdc76 100644 --- a/listmonk/models/get_bounce_by_id200_response.py +++ b/listmonk/models/get_bounce_by_id200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.bounce import Bounce +from listmonk.models.bounce import Bounce try: from typing import Self except ImportError: diff --git a/listmonk/models/get_bounces200_response.py b/listmonk/models/get_bounces200_response.py index 17795f0..52fc143 100644 --- a/listmonk/models/get_bounces200_response.py +++ b/listmonk/models/get_bounces200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.get_bounces200_response_data import GetBounces200ResponseData +from listmonk.models.get_bounces200_response_data import GetBounces200ResponseData try: from typing import Self except ImportError: diff --git a/listmonk/models/get_bounces200_response_data.py b/listmonk/models/get_bounces200_response_data.py index 40acaba..67efe1c 100644 --- a/listmonk/models/get_bounces200_response_data.py +++ b/listmonk/models/get_bounces200_response_data.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictInt, StrictStr -from listmonk_client.models.bounce import Bounce +from listmonk.models.bounce import Bounce try: from typing import Self except ImportError: diff --git a/listmonk/models/get_campaign_analytics200_response.py b/listmonk/models/get_campaign_analytics200_response.py index 2828825..b2ee452 100644 --- a/listmonk/models/get_campaign_analytics200_response.py +++ b/listmonk/models/get_campaign_analytics200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.campaign_analytics_count import CampaignAnalyticsCount +from listmonk.models.campaign_analytics_count import CampaignAnalyticsCount try: from typing import Self except ImportError: diff --git a/listmonk/models/get_campaign_by_id200_response.py b/listmonk/models/get_campaign_by_id200_response.py index 565789f..a932668 100644 --- a/listmonk/models/get_campaign_by_id200_response.py +++ b/listmonk/models/get_campaign_by_id200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.campaign import Campaign +from listmonk.models.campaign import Campaign try: from typing import Self except ImportError: diff --git a/listmonk/models/get_campaigns200_response.py b/listmonk/models/get_campaigns200_response.py index 6b9b0f3..9ba7b72 100644 --- a/listmonk/models/get_campaigns200_response.py +++ b/listmonk/models/get_campaigns200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.get_campaigns200_response_data import GetCampaigns200ResponseData +from listmonk.models.get_campaigns200_response_data import GetCampaigns200ResponseData try: from typing import Self except ImportError: diff --git a/listmonk/models/get_campaigns200_response_data.py b/listmonk/models/get_campaigns200_response_data.py index 723cf44..2ec6d4a 100644 --- a/listmonk/models/get_campaigns200_response_data.py +++ b/listmonk/models/get_campaigns200_response_data.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictInt, StrictStr -from listmonk_client.models.campaign import Campaign +from listmonk.models.campaign import Campaign try: from typing import Self except ImportError: diff --git a/listmonk/models/get_dashboard_charts200_response.py b/listmonk/models/get_dashboard_charts200_response.py index 75340aa..550509e 100644 --- a/listmonk/models/get_dashboard_charts200_response.py +++ b/listmonk/models/get_dashboard_charts200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.dashboard_chart import DashboardChart +from listmonk.models.dashboard_chart import DashboardChart try: from typing import Self except ImportError: diff --git a/listmonk/models/get_dashboard_counts200_response.py b/listmonk/models/get_dashboard_counts200_response.py index 3e0cb4d..4f69e48 100644 --- a/listmonk/models/get_dashboard_counts200_response.py +++ b/listmonk/models/get_dashboard_counts200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.dashboard_count import DashboardCount +from listmonk.models.dashboard_count import DashboardCount try: from typing import Self except ImportError: diff --git a/listmonk/models/get_i18n_lang200_response.py b/listmonk/models/get_i18n_lang200_response.py index 4815641..0de7a96 100644 --- a/listmonk/models/get_i18n_lang200_response.py +++ b/listmonk/models/get_i18n_lang200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.language_pack import LanguagePack +from listmonk.models.language_pack import LanguagePack try: from typing import Self except ImportError: diff --git a/listmonk/models/get_import_subscribers200_response.py b/listmonk/models/get_import_subscribers200_response.py index ae6ca3d..3028cf4 100644 --- a/listmonk/models/get_import_subscribers200_response.py +++ b/listmonk/models/get_import_subscribers200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.import_status import ImportStatus +from listmonk.models.import_status import ImportStatus try: from typing import Self except ImportError: diff --git a/listmonk/models/get_lists200_response.py b/listmonk/models/get_lists200_response.py index cf03de3..d4b349d 100644 --- a/listmonk/models/get_lists200_response.py +++ b/listmonk/models/get_lists200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.get_lists200_response_data import GetLists200ResponseData +from listmonk.models.get_lists200_response_data import GetLists200ResponseData try: from typing import Self except ImportError: diff --git a/listmonk/models/get_lists200_response_data.py b/listmonk/models/get_lists200_response_data.py index e5d222c..d997bc8 100644 --- a/listmonk/models/get_lists200_response_data.py +++ b/listmonk/models/get_lists200_response_data.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictInt -from listmonk_client.models.list import List +from listmonk.models.list import List try: from typing import Self except ImportError: diff --git a/listmonk/models/get_media200_response.py b/listmonk/models/get_media200_response.py index 7394eb0..d752566 100644 --- a/listmonk/models/get_media200_response.py +++ b/listmonk/models/get_media200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.media_file_object import MediaFileObject +from listmonk.models.media_file_object import MediaFileObject try: from typing import Self except ImportError: diff --git a/listmonk/models/get_running_campaign_stats200_response.py b/listmonk/models/get_running_campaign_stats200_response.py index 4855c3c..7ed54d0 100644 --- a/listmonk/models/get_running_campaign_stats200_response.py +++ b/listmonk/models/get_running_campaign_stats200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.campaign_stats import CampaignStats +from listmonk.models.campaign_stats import CampaignStats try: from typing import Self except ImportError: diff --git a/listmonk/models/get_server_config200_response.py b/listmonk/models/get_server_config200_response.py index 278e567..b4d7e5c 100644 --- a/listmonk/models/get_server_config200_response.py +++ b/listmonk/models/get_server_config200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.server_config import ServerConfig +from listmonk.models.server_config import ServerConfig try: from typing import Self except ImportError: diff --git a/listmonk/models/get_settings200_response.py b/listmonk/models/get_settings200_response.py index ba0788f..6ddb725 100644 --- a/listmonk/models/get_settings200_response.py +++ b/listmonk/models/get_settings200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.settings import Settings +from listmonk.models.settings import Settings try: from typing import Self except ImportError: diff --git a/listmonk/models/get_subscriber_bounces_by_id200_response.py b/listmonk/models/get_subscriber_bounces_by_id200_response.py index 7b38582..e81abb3 100644 --- a/listmonk/models/get_subscriber_bounces_by_id200_response.py +++ b/listmonk/models/get_subscriber_bounces_by_id200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.bounce import Bounce +from listmonk.models.bounce import Bounce try: from typing import Self except ImportError: diff --git a/listmonk/models/get_subscribers200_response.py b/listmonk/models/get_subscribers200_response.py index 5ee4914..5ff768c 100644 --- a/listmonk/models/get_subscribers200_response.py +++ b/listmonk/models/get_subscribers200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.get_subscribers200_response_data import GetSubscribers200ResponseData +from listmonk.models.get_subscribers200_response_data import GetSubscribers200ResponseData try: from typing import Self except ImportError: diff --git a/listmonk/models/get_subscribers200_response_data.py b/listmonk/models/get_subscribers200_response_data.py index 34f51c7..7348e41 100644 --- a/listmonk/models/get_subscribers200_response_data.py +++ b/listmonk/models/get_subscribers200_response_data.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictInt, StrictStr -from listmonk_client.models.subscriber import Subscriber +from listmonk.models.subscriber import Subscriber try: from typing import Self except ImportError: diff --git a/listmonk/models/get_template_by_id200_response.py b/listmonk/models/get_template_by_id200_response.py index 1f19971..4ec0e7e 100644 --- a/listmonk/models/get_template_by_id200_response.py +++ b/listmonk/models/get_template_by_id200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.template import Template +from listmonk.models.template import Template try: from typing import Self except ImportError: diff --git a/listmonk/models/get_templates200_response.py b/listmonk/models/get_templates200_response.py index 55f6386..6ef4f9f 100644 --- a/listmonk/models/get_templates200_response.py +++ b/listmonk/models/get_templates200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.template import Template +from listmonk.models.template import Template try: from typing import Self except ImportError: diff --git a/listmonk/models/import_status.py b/listmonk/models/import_status.py index 96787b7..4b3df1c 100644 --- a/listmonk/models/import_status.py +++ b/listmonk/models/import_status.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.import_status_data import ImportStatusData +from listmonk.models.import_status_data import ImportStatusData try: from typing import Self except ImportError: diff --git a/listmonk/models/language_pack.py b/listmonk/models/language_pack.py index 1d06633..73a407a 100644 --- a/listmonk/models/language_pack.py +++ b/listmonk/models/language_pack.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.language_pack_data import LanguagePackData +from listmonk.models.language_pack_data import LanguagePackData try: from typing import Self except ImportError: diff --git a/listmonk/models/new_subscriber.py b/listmonk/models/new_subscriber.py index 61e9fa6..618491c 100644 --- a/listmonk/models/new_subscriber.py +++ b/listmonk/models/new_subscriber.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictBool, StrictInt, StrictStr -from listmonk_client.models.new_subscriber_attribs import NewSubscriberAttribs +from listmonk.models.new_subscriber_attribs import NewSubscriberAttribs try: from typing import Self except ImportError: diff --git a/listmonk/models/new_subscriber_attribs.py b/listmonk/models/new_subscriber_attribs.py index d6f3480..7c988ec 100644 --- a/listmonk/models/new_subscriber_attribs.py +++ b/listmonk/models/new_subscriber_attribs.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictInt, StrictStr -from listmonk_client.models.new_subscriber_attribs_stack import NewSubscriberAttribsStack +from listmonk.models.new_subscriber_attribs_stack import NewSubscriberAttribsStack try: from typing import Self except ImportError: diff --git a/listmonk/models/server_config.py b/listmonk/models/server_config.py index 1ac4afa..c34a4b7 100644 --- a/listmonk/models/server_config.py +++ b/listmonk/models/server_config.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.server_config_data import ServerConfigData +from listmonk.models.server_config_data import ServerConfigData try: from typing import Self except ImportError: diff --git a/listmonk/models/server_config_data.py b/listmonk/models/server_config_data.py index 8e6bb01..2a9bdf8 100644 --- a/listmonk/models/server_config_data.py +++ b/listmonk/models/server_config_data.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictBool, StrictStr -from listmonk_client.models.server_config_data_langs_inner import ServerConfigDataLangsInner +from listmonk.models.server_config_data_langs_inner import ServerConfigDataLangsInner try: from typing import Self except ImportError: diff --git a/listmonk/models/settings.py b/listmonk/models/settings.py index 9015f47..65450be 100644 --- a/listmonk/models/settings.py +++ b/listmonk/models/settings.py @@ -21,8 +21,8 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from pydantic import BaseModel, StrictBool, StrictInt, StrictStr from pydantic import Field -from listmonk_client.models.mail_box_bounces import MailBoxBounces -from listmonk_client.models.smtp_settings import SMTPSettings +from listmonk.models.mail_box_bounces import MailBoxBounces +from listmonk.models.smtp_settings import SMTPSettings try: from typing import Self except ImportError: diff --git a/listmonk/models/subscriber.py b/listmonk/models/subscriber.py index f7327b4..e11d308 100644 --- a/listmonk/models/subscriber.py +++ b/listmonk/models/subscriber.py @@ -20,8 +20,8 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictInt, StrictStr -from listmonk_client.models.subscriber_lists_inner import SubscriberListsInner -from listmonk_client.models.subscriber_profile_attribs import SubscriberProfileAttribs +from listmonk.models.subscriber_lists_inner import SubscriberListsInner +from listmonk.models.subscriber_profile_attribs import SubscriberProfileAttribs try: from typing import Self except ImportError: diff --git a/listmonk/models/subscriber_data.py b/listmonk/models/subscriber_data.py index df71f27..f9651cf 100644 --- a/listmonk/models/subscriber_data.py +++ b/listmonk/models/subscriber_data.py @@ -20,8 +20,8 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from pydantic import BaseModel, StrictStr -from listmonk_client.models.subscriber_profile import SubscriberProfile -from listmonk_client.models.subscriptions import Subscriptions +from listmonk.models.subscriber_profile import SubscriberProfile +from listmonk.models.subscriptions import Subscriptions try: from typing import Self except ImportError: diff --git a/listmonk/models/subscriber_profile.py b/listmonk/models/subscriber_profile.py index 0089560..e88ffa0 100644 --- a/listmonk/models/subscriber_profile.py +++ b/listmonk/models/subscriber_profile.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictInt, StrictStr -from listmonk_client.models.subscriber_profile_attribs import SubscriberProfileAttribs +from listmonk.models.subscriber_profile_attribs import SubscriberProfileAttribs try: from typing import Self except ImportError: diff --git a/listmonk/models/update_subscriber.py b/listmonk/models/update_subscriber.py index 8e97191..bfa5115 100644 --- a/listmonk/models/update_subscriber.py +++ b/listmonk/models/update_subscriber.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictBool, StrictInt, StrictStr -from listmonk_client.models.new_subscriber_attribs import NewSubscriberAttribs +from listmonk.models.new_subscriber_attribs import NewSubscriberAttribs try: from typing import Self except ImportError: diff --git a/listmonk/models/upload_media200_response.py b/listmonk/models/upload_media200_response.py index bc69d6f..7671e72 100644 --- a/listmonk/models/upload_media200_response.py +++ b/listmonk/models/upload_media200_response.py @@ -20,7 +20,7 @@ from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel -from listmonk_client.models.media_file_object import MediaFileObject +from listmonk.models.media_file_object import MediaFileObject try: from typing import Self except ImportError: diff --git a/listmonk/rest.py b/listmonk/rest.py index 0ec394a..0de76ce 100644 --- a/listmonk/rest.py +++ b/listmonk/rest.py @@ -19,7 +19,7 @@ import urllib3 -from listmonk_client.exceptions import ApiException, ApiValueError +from listmonk.exceptions import ApiException, ApiValueError RESTResponseType = urllib3.HTTPResponse diff --git a/pyproject.toml b/pyproject.toml index dca4b4e..70f7e05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ build-backend = "setuptools.build_meta" extension-pkg-whitelist = "pydantic" [tool.semantic_release] -version_variables = [ "listmonk_client/__init__.py:__version__",] +version_variables = [ "listmonk/__init__.py:__version__",] version_toml = [ "pyproject.toml:tool.poetry.version",] branch = "main" build_command = "pip install poetry && poetry build"