Package: python-listmonk
python-listmonkThe API collection for listmonkThis Python package is automatically generated by theOpenAPI Generatorproject:API version: 1.0.0Package version: 1.0.0Build package: org.openapitools.codegen.languages.PythonClientCodegenRequirements.Python 3.7+Installation & Usagepip installIf the python package is hosted on a repository, you can install directly using:pipinstallgit+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to runpipwith root permission:sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)Then import the package:importlistmonkSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importlistmonkTestsExecutepytestto run the tests.Getting StartedPlease follow theinstallation procedureand then run the following:importtimeimportlistmonkfromlistmonk.restimportApiExceptionfrompprintimportpprint# 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.Configuration(host="http://localhost:9000/api")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure HTTP basic authorization: basicAuthconfiguration=listmonk.Configuration(username=os.environ["USERNAME"],password=os.environ["PASSWORD"])# Enter a context with an instance of the API clientwithlistmonk.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=listmonk.AdminApi(api_client)try:api_response=api_instance.reload_app()print("The response of AdminApi->reload_app:\n")pprint(api_response)exceptApiExceptionase:print("Exception when calling AdminApi->reload_app:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttp://localhost:9000/apiClassMethodHTTP requestDescriptionAdminApireload_appPOST/admin/reloadBouncesApidelete_bounce_by_idDELETE/bounces/{id}BouncesApidelete_bouncesDELETE/bouncesBouncesApiget_bounce_by_idGET/bounces/{id}BouncesApiget_bouncesGET/bouncesCampaignsApicreate_campaignPOST/campaignsCampaignsApicreate_campaign_content_by_idPOST/campaigns/{id}/contentCampaignsApidelete_campaign_by_idDELETE/campaigns/{id}CampaignsApiget_campaign_analyticsGET/campaigns/analytics/{type}CampaignsApiget_campaign_by_idGET/campaigns/{id}CampaignsApiget_campaignsGET/campaignsCampaignsApiget_running_campaign_statsGET/campaigns/running/statsCampaignsApipreview_campaign_by_idGET/campaigns/{id}/previewCampaignsApipreview_campaign_text_by_idPOST/campaigns/{id}/textCampaignsApitest_campaign_by_idPOST/campaigns/{id}/testCampaignsApiupdate_campaign_archive_by_idPUT/campaigns/{id}/archiveCampaignsApiupdate_campaign_by_idPUT/campaigns/{id}CampaignsApiupdate_campaign_status_by_idPUT/campaigns/{id}/statusCampaignsApiupdate_preview_campaign_by_idPOST/campaigns/{id}/previewImportApiget_import_subscriber_statsGET/import/subscribers/logsImportApiget_import_subscribersGET/import/subscribersImportApiimport_subscribersPOST/import/subscribersImportApistop_import_subscribersDELETE/import/subscribersListsApicreate_listPOST/listsListsApidelete_list_by_idDELETE/lists/{list_id}ListsApiget_list_by_idGET/lists/{list_id}ListsApiget_listsGET/listsListsApiupdate_list_by_idPUT/lists/{list_id}LogsApiget_logsGET/logsMaintenanceApidelete_campaign_analytics_by_typeDELETE/maintenance/analytics/{type}MaintenanceApidelete_gc_subscribersDELETE/maintenance/subscribers/{type}MaintenanceApidelete_unconfirmed_subscriptionsDELETE/maintenance/subscriptions/unconfirmedMediaApidelete_media_by_idDELETE/media/{id}MediaApiget_mediaGET/mediaMediaApiget_media_by_idGET/media/{id}MediaApiupload_mediaPOST/mediaMiscellaneousApiget_dashboard_chartsGET/dashboard/chartsMiscellaneousApiget_dashboard_countsGET/dashboard/countsMiscellaneousApiget_health_checkGET/healthMiscellaneousApiget_i18n_langGET/lang/{lang}MiscellaneousApiget_server_configGET/configPublicApiget_public_listsGET/public/listsPublicApihandle_public_subscriptionPOST/public/subscriptionSettingsApiget_settingsGET/settingsSettingsApitest_smtp_settingsPOST/settings/smtp/testSettingsApiupdate_settingsPUT/settingsSubscribersApiblocklist_subscribers_queryPUT/subscribers/query/blocklistSubscribersApicreate_subscriberPOST/subscribersSubscribersApidelete_subscriber_bounces_by_idDELETE/subscribers/{id}/bouncesSubscribersApidelete_subscriber_by_idDELETE/subscribers/{id}SubscribersApidelete_subscriber_by_listDELETE/subscribersSubscribersApidelete_subscriber_by_queryPOST/subscribers/query/deleteSubscribersApiexport_subscriber_data_by_idGET/subscribers/{id}/exportSubscribersApiget_subscriber_bounces_by_idGET/subscribers/{id}/bouncesSubscribersApiget_subscriber_by_idGET/subscribers/{id}SubscribersApiget_subscribersGET/subscribersSubscribersApimanage_blocklist_by_subscriber_listPUT/subscribers/blocklistSubscribersApimanage_blocklist_subscribers_by_idPUT/subscribers/{id}/blocklistSubscribersApimanage_subscriber_list_by_idPUT/subscribers/lists/{id}SubscribersApimanage_subscriber_listsPUT/subscribers/listsSubscribersApimanage_subscriber_lists_by_queryPUT/subscribers/query/listsSubscribersApisubscriber_send_optin_by_idPOST/subscribers/{id}/optinSubscribersApiupdate_subscriber_by_idPUT/subscribers/{id}TemplatesApidelete_template_by_idDELETE/templates/{id}TemplatesApiget_template_by_idGET/templates/{id}TemplatesApiget_templatesGET/templatesTemplatesApipreview_templatePOST/templates/previewTemplatesApipreview_template_by_idGET/templates/{id}/previewTemplatesApiupdate_template_by_idPUT/templates/{id}/defaultTransactionalApitransact_with_subscriberPOST/txDocumentation For ModelsBounceBounceResultsInnerBounceResultsInnerCampaignCampaignCampaignAnalyticsCountCampaignContentRequestCampaignRequestCampaignRequestSendAtCampaignStatsCampaignUpdateCreateCampaign200ResponseCreateList200ResponseCreateSubscriber200ResponseDashboardChartDashboardChartLinkClicksInnerDashboardCountDashboardCountDataDashboardCountDataCampaignsDashboardCountDataCampaignsByStatusDashboardCountDataListsDashboardCountDataSubscribersDeleteGCSubscribers200ResponseDeleteGCSubscribers200ResponseDataGetBounceById200ResponseGetBounces200ResponseGetBounces200ResponseDataGetCampaignAnalytics200ResponseGetCampaignById200ResponseGetCampaigns200ResponseGetCampaigns200ResponseDataGetDashboardCharts200ResponseGetDashboardCounts200ResponseGetHealthCheck200ResponseGetI18nLang200ResponseGetImportSubscriberStats200ResponseGetImportSubscribers200ResponseGetLists200ResponseGetLists200ResponseDataGetLogs200ResponseGetMedia200ResponseGetPublicLists200ResponseInnerGetRunningCampaignStats200ResponseGetServerConfig200ResponseGetSettings200ResponseGetSubscriberBouncesById200ResponseGetSubscribers200ResponseGetSubscribers200ResponseDataGetTemplateById200ResponseGetTemplates200ResponseHandlePublicSubscription200ResponseHandlePublicSubscriptionRequestImportStatusImportStatusDataImportSubscribersRequestLanguagePackLanguagePackDataListMailBoxBouncesMediaFileObjectNewListNewSubscriberNewSubscriberAttribsNewSubscriberAttribsStackSMTPSettingsSMTPTestServerConfigServerConfigDataServerConfigDataLangsInnerSettingsSubscriberSubscriberDataSubscriberListsInnerSubscriberProfileSubscriberProfileAttribsSubscriberQueryRequestSubscriptionsTemplateTransactionalMessageUpdateCampaignArchiveByIdRequestUpdateCampaignStatusByIdRequestUpdateSubscriberUploadMedia200ResponseDocumentation For AuthorizationAuthentication schemes defined for the API:basicAuthType: HTTP basic authenticationAuthor