master c1a38f7248d8 cached
41 files
1.6 MB
356.6k tokens
969 symbols
1 requests
Download .txt
Showing preview only (1,662K chars total). Download the full file or copy to clipboard to get everything.
Repository: mailchimp/mailchimp-marketing-php
Branch: master
Commit: c1a38f7248d8
Files: 41
Total size: 1.6 MB

Directory structure:
gitextract_dj57h0oe/

├── .github/
│   └── PULL_REQUEST_TEMPLATE.md
├── .php_cs
├── .travis.yml
├── CHANGELOG.md
├── LICENSE
├── README.md
├── composer.json
├── git_push.sh
├── lib/
│   ├── Api/
│   │   ├── AccountExportApi.php
│   │   ├── AccountExportsApi.php
│   │   ├── ActivityFeedApi.php
│   │   ├── AuthorizedAppsApi.php
│   │   ├── AutomationsApi.php
│   │   ├── BatchWebhooksApi.php
│   │   ├── BatchesApi.php
│   │   ├── CampaignFoldersApi.php
│   │   ├── CampaignsApi.php
│   │   ├── ConnectedSitesApi.php
│   │   ├── ConversationsApi.php
│   │   ├── CustomerJourneysApi.php
│   │   ├── EcommerceApi.php
│   │   ├── FacebookAdsApi.php
│   │   ├── FileManagerApi.php
│   │   ├── LandingPagesApi.php
│   │   ├── ListsApi.php
│   │   ├── PingApi.php
│   │   ├── ReportingApi.php
│   │   ├── ReportsApi.php
│   │   ├── RootApi.php
│   │   ├── SearchCampaignsApi.php
│   │   ├── SearchMembersApi.php
│   │   ├── SurveysApi.php
│   │   ├── TemplateFoldersApi.php
│   │   ├── TemplatesApi.php
│   │   └── VerifiedDomainsApi.php
│   ├── ApiClient.php
│   ├── ApiException.php
│   ├── Configuration.php
│   ├── HeaderSelector.php
│   └── ObjectSerializer.php
└── phpunit.xml.dist

================================================
FILE CONTENTS
================================================

================================================
FILE: .github/PULL_REQUEST_TEMPLATE.md
================================================
Note: This repository is auto-generated, and does not accept pull requests.

To make changes or open issues for this SDK, use the [code generation repository](https://github.com/mailchimp/mailchimp-client-lib-codegen).


================================================
FILE: .php_cs
================================================
<?php

return PhpCsFixer\Config::create()
    ->setUsingCache(true)
    ->setRules([
        '@PSR2' => true,
        'ordered_imports' => true,
        'phpdoc_order' => true,
        'array_syntax' => [ 'syntax' => 'short' ],
        'strict_comparison' => true,
        'strict_param' => true,
        'no_trailing_whitespace' => false,
        'no_trailing_whitespace_in_comment' => false,
        'braces' => false,
        'single_blank_line_at_eof' => false,
        'blank_line_after_namespace' => false,
    ])
    ->setFinder(
        PhpCsFixer\Finder::create()
        ->exclude('test')
        ->exclude('tests')
        ->in(__DIR__)
    );


================================================
FILE: .travis.yml
================================================
language: php
sudo: false
php:
    - 5.4
    - 5.5
    - 5.6
    - 7.0
    - hhvm
before_install: "composer install"
script: "vendor/bin/phpunit"


================================================
FILE: CHANGELOG.md
================================================
# Changelog

## Transactional

### 1.0.48
* Allowing users to schedule messages (using messages/send, messages/send-template, messages/send-raw and messages/reschedule APIs) within a year from the date of scheduling.

### 1.0.46
* Added a little more granularity to the `set_timeout` method to the Client class in the Ruby SDK; now supports `read`, `write` and `connect` parameters, which will default to the `timeout` param if unspecified, or 300 seconds if `timeout` is unspecified.

### 1.0.45
* Added a `set_timeout` method to the Client class in the Ruby SDK

### 1.0.44
* Added a `set_timeout` method to the Client class in the Python SDK

### 1.0.43
* Added a `setTimeout` method to the Configuration class in the PHP SDK.

### 1.0.42
* Added a `setDefaultTimeoutMs` method to the node client. This allows users to override the default timeout for API requests, which is set to 5 minutes by default.

### 1.0.41
* Updated the "reject_reasons" response for /messages/send and /messages/send-template to correctly use "hard-bounce" and "soft-bounce" instead of the previously stated "hard_bounce" and "soft_bounce".

### 1.0.40
* Added the new /allowlists/ series of endpoints and the /exports/allowlist endpoint to the API reference

### 1.0.39
* Fixes the output directory for the Changelog for the php client library

### 1.0.38
* A change was made to `mailchimp-transactional-php` - the API client will now always return an `Exception`, instead of an `Exception` or a string, when the API returns an error. Having to parse the response as a string was found to be a bit clunky.

### 1.0.37
* Added a changelog, which will be used to describe changes to both transactional and marketing client libraries.

## Marketing

### 3.0.72
* Updated the `PATCH /automations/.../emails/.../` documentation to state the required `workflow_type`

### 3.0.70
* Added more granularity for the `timeout` field in the Ruby Marketing SDK; now supports `read_timeout`, `write_timeout` and `connect_timeout` fields which will default to the `timeout` value.

### 3.0.69
* Added handling for a `timeout` field in the config block passed to the client constructor in the Ruby Marketing SDK.

### 3.0.68
* Added handling for a `'timeout'` field in `set_config()` in the Python Marketing SDK.

### 3.0.67
* Added a `setTimeout()` method to the configuration class in the PHP Marketing SDK, to allow manually setting the timeout for Guzzle requests.

### 3.0.65
* Added a new API endpoint, `/3.0/account-exports`, allowing users to programatically export their account information

### 3.0.64
* Fixes the output directory for the Changelog for the php client library

### 3.0.63
* Added a changelog, which will be used to describe changes to both transactional and marketing client libraries.


================================================
FILE: LICENSE
================================================
Mailchimp Client Library License Agreement
 
IMPORTANT- PLEASE READ CAREFULLY BEFORE OPENING, INSTALLING, COPYING OR USING THE CLIENT LIBRARY.  This Client Library License Agreement (“Agreement”) is a legal document by and between you (hereinafter referred to as “You” “Your” or “Licensee”) and The Rocket Science Group LLC (“Mailchimp”) (each a “Party” and collectively, “Parties”) for the client library, including any upgrades, modified versions, updates, additions, and copies of the foregoing, including the software and related documentation (the “Mailchimp Client Library”).
 
BY OPENING, INSTALLING, COPYING OR USING THE MAILCHIMP CLIENT LIBRARY OR ANY PORTION THEREOF, YOU AGREE TO ALL THE TERMS OF THIS AGREEMENT.  IF YOU ARE AGREEING TO THIS AGREEMENT AS AN INDIVIDUAL, “YOU” “YOUR” AND “LICENSEE” REFERS TO YOU INDIVIDUALLY.  IF YOU ARE AGREEING TO THIS AGREEMENT AS A REPRESENTATIVE OF A LEGAL ENTITY, YOU REPRESENT THAT YOU HAVE THE AUTHORITY TO BIND THAT ENTITY AND “YOU” “YOUR” AND “LICENSEE” REFERS TO THAT LEGAL ENTITY AND ALL THE USERS ACCESSING THE SOFTWARE BY, THROUGH OR ON BEHALF OF THAT LEGAL ENTITY. IF YOU DO NOT AGREE WITH ALL OF THE TERMS OF THIS AGREEMENT, DO NOT (AND ENSURE THAT YOUR END USERS DO NOT) OPEN, INSTALL, COPY OR USE THE MAILCHIMP CLIENT LIBRARY.

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
“License” shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 10 of these Terms and Conditions for Use, Reproduction and Distribution.
“Legal Entity” shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, “control” means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
“You” (or “Your”) shall mean an individual or Legal Entity exercising permissions granted by this License.
“Source” form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
“Object” form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
“Work” shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work.
“Derivative Works” shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
“Contribution” shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Mailchimp for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, “submitted” means any form of electronic, verbal, or written communication sent to Mailchimp or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, Mailchimp for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as “Not a Contribution.”
“Contributor” shall mean Mailchimp and any individual or Legal Entity on behalf of whom a Contribution has been received by Mailchimp and subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of this Agreement, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
b) You must cause any modified files to carry prominent notices stating that You changed the files; and
c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
d) If the Work includes a “NOTICE” text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.

5. Submission of Contributions. Any Contribution submitted for inclusion in the Work by You to Mailchimp shall be made under the terms and conditions of the Individual Contributor License Agreement or the  Software Grant and Corporate Contributor License Agreement, as applicable.

6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of Mailchimp, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.

7. Export controls. The Mailchimp Client Library is subject to united states export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the Mailchimp Client Library. These laws include restrictions on destinations, end-users and end use. 

8. Disclaimer of Warranty.    Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.

9. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.

10. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.

Copyright 2020, The Rocket Science Group LLC

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

You should include a copy of the License, typically in a file called LICENSE, in your work, and consider also including a NOTICE file.

To apply the License to specific files in your work, attach the following boilerplate declaration, with the fields enclosed by brackets “[]” replaced with your own identifying information. (Don’t include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same “printed page” as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]

Licensed under the Mailchimp Client Library License Agreement (the “License”); you may not use this file except in compliance with the License. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either or express or implied.
See the License for the specific language governing permissions and
limitations under the License.


================================================
FILE: README.md
================================================
<p align="center">
  <a href="https://mailchimp.com/developer/">
    <img src="https://raw.githubusercontent.com/mailchimp/mailchimp-client-lib-codegen/main/resources/images/mcdev-banner.png" alt="Mailchimp Developer" width="100%" height="auto">
  </a>
</p>

# Mailchimp Marketing — PHP

The official PHP client library for the Mailchimp Marketing API

## Installation

**Option 1:** Install via Packagist
```
composer require mailchimp/marketing
```

Or add the following to `composer.json`
```
{
  "require": {
    "mailchimp/marketing": "*"
  }
}
```

Install all composer dependencies using:
```
composer install
```

**Option 2:** Install Manually

Clone the repo
```
git clone git@github.com:mailchimp/mailchimp-marketing-php.git
```

In the client library project root, install all dependencies
```
composer install
```

Manually include `vendor/autoload.php` in your implementation
```php
require_once('/path/to/MailchimpMarketing/vendor/autoload.php');
```

## Quick Start

### Note that this SDK requires PHP 7.2 or above.

```php
require_once('/path/to/MailchimpMarketing/vendor/autoload.php');

$mailchimp = new MailchimpMarketing\ApiClient();

$mailchimp->setConfig([
  'apiKey' => 'YOUR_API_KEY',
  'server' => 'YOUR_SERVER_PREFIX'
]);

$response = $mailchimp->ping->get();
print_r($response);
```

## Authentication Methods

The client library can be configured to use either **Basic Auth** or **OAuth2**.

For either method, a server prefix should be passed in i.e. `us19`, in order for the client to determine to appropriate host url.

### Basic Auth
```php
$mailchimp->setConfig([
  'apiKey' => 'YOUR_API_KEY',
  'server' => 'YOUR_SERVER_PREFIX'
]);
```

### OAuth2
```php
$mailchimp->setConfig([
  'accessToken' => 'YOUR_ACCESS_TOKEN',
  'server' => 'YOUR_SERVER_PREFIX'
]);
```

## PRs and Issues
This repo is autogenerated from https://github.com/mailchimp/mailchimp-client-lib-codegen -- please submit PRs or issues there!

## Other configuration options
The APIClient class lets you set various configuration options like timeouts, host, user agent, and debug output. See https://github.com/mailchimp/mailchimp-marketing-php/blob/master/lib/Configuration.php for more details.

## API Endpoints

All URIs are relative to *https://server.api.mailchimp.com/3.0*

| Method | Endpoint |
| ---------- | -------- |
| **accountExport.getAccountExports** | /account-exports/{export_id} |
| **accountExports.listAccountExports** | /account-exports |
| **accountExports.createAccountExport** | /account-exports |
| **activityFeed.getChimpChatter** | /activity-feed/chimp-chatter |
| **authorizedApps.list** | /authorized-apps |
| **authorizedApps.get** | /authorized-apps/{app_id} |
| **automations.archive** | /automations/{workflow_id}/actions/archive |
| **automations.deleteWorkflowEmail** | /automations/{workflow_id}/emails/{workflow_email_id} |
| **automations.list** | /automations |
| **automations.get** | /automations/{workflow_id} |
| **automations.listAllWorkflowEmails** | /automations/{workflow_id}/emails |
| **automations.getWorkflowEmail** | /automations/{workflow_id}/emails/{workflow_email_id} |
| **automations.getWorkflowEmailSubscriberQueue** | /automations/{workflow_id}/emails/{workflow_email_id}/queue |
| **automations.getWorkflowEmailSubscriber** | /automations/{workflow_id}/emails/{workflow_email_id}/queue/{subscriber_hash} |
| **automations.listWorkflowEmailSubscribersRemoved** | /automations/{workflow_id}/removed-subscribers |
| **automations.getRemovedWorkflowEmailSubscriber** | /automations/{workflow_id}/removed-subscribers/{subscriber_hash} |
| **automations.updateWorkflowEmail** | /automations/{workflow_id}/emails/{workflow_email_id} |
| **automations.create** | /automations |
| **automations.pauseAllEmails** | /automations/{workflow_id}/actions/pause-all-emails |
| **automations.startAllEmails** | /automations/{workflow_id}/actions/start-all-emails |
| **automations.pauseWorkflowEmail** | /automations/{workflow_id}/emails/{workflow_email_id}/actions/pause |
| **automations.startWorkflowEmail** | /automations/{workflow_id}/emails/{workflow_email_id}/actions/start |
| **automations.addWorkflowEmailSubscriber** | /automations/{workflow_id}/emails/{workflow_email_id}/queue |
| **automations.removeWorkflowEmailSubscriber** | /automations/{workflow_id}/removed-subscribers |
| **batchWebhooks.remove** | /batch-webhooks/{batch_webhook_id} |
| **batchWebhooks.get** | /batch-webhooks/{batch_webhook_id} |
| **batchWebhooks.list** | /batch-webhooks |
| **batchWebhooks.update** | /batch-webhooks/{batch_webhook_id} |
| **batchWebhooks.create** | /batch-webhooks |
| **batches.deleteRequest** | /batches/{batch_id} |
| **batches.list** | /batches |
| **batches.status** | /batches/{batch_id} |
| **batches.start** | /batches |
| **campaignFolders.remove** | /campaign-folders/{folder_id} |
| **campaignFolders.list** | /campaign-folders |
| **campaignFolders.get** | /campaign-folders/{folder_id} |
| **campaignFolders.update** | /campaign-folders/{folder_id} |
| **campaignFolders.create** | /campaign-folders |
| **campaigns.remove** | /campaigns/{campaign_id} |
| **campaigns.deleteFeedbackMessage** | /campaigns/{campaign_id}/feedback/{feedback_id} |
| **campaigns.list** | /campaigns |
| **campaigns.get** | /campaigns/{campaign_id} |
| **campaigns.getContent** | /campaigns/{campaign_id}/content |
| **campaigns.getFeedback** | /campaigns/{campaign_id}/feedback |
| **campaigns.getFeedbackMessage** | /campaigns/{campaign_id}/feedback/{feedback_id} |
| **campaigns.getSendChecklist** | /campaigns/{campaign_id}/send-checklist |
| **campaigns.update** | /campaigns/{campaign_id} |
| **campaigns.updateFeedbackMessage** | /campaigns/{campaign_id}/feedback/{feedback_id} |
| **campaigns.create** | /campaigns |
| **campaigns.cancelSend** | /campaigns/{campaign_id}/actions/cancel-send |
| **campaigns.createResend** | /campaigns/{campaign_id}/actions/create-resend |
| **campaigns.pause** | /campaigns/{campaign_id}/actions/pause |
| **campaigns.replicate** | /campaigns/{campaign_id}/actions/replicate |
| **campaigns.resume** | /campaigns/{campaign_id}/actions/resume |
| **campaigns.schedule** | /campaigns/{campaign_id}/actions/schedule |
| **campaigns.send** | /campaigns/{campaign_id}/actions/send |
| **campaigns.sendTestEmail** | /campaigns/{campaign_id}/actions/test |
| **campaigns.unschedule** | /campaigns/{campaign_id}/actions/unschedule |
| **campaigns.addFeedback** | /campaigns/{campaign_id}/feedback |
| **campaigns.setContent** | /campaigns/{campaign_id}/content |
| **connectedSites.remove** | /connected-sites/{connected_site_id} |
| **connectedSites.list** | /connected-sites |
| **connectedSites.get** | /connected-sites/{connected_site_id} |
| **connectedSites.create** | /connected-sites |
| **connectedSites.verifyScriptInstallation** | /connected-sites/{connected_site_id}/actions/verify-script-installation |
| **conversations.list** | /conversations |
| **conversations.get** | /conversations/{conversation_id} |
| **conversations.getConversationMessages** | /conversations/{conversation_id}/messages |
| **conversations.getConversationMessage** | /conversations/{conversation_id}/messages/{message_id} |
| **customerJourneys.trigger** | /customer-journeys/journeys/{journey_id}/steps/{step_id}/actions/trigger |
| **ecommerce.deleteStore** | /ecommerce/stores/{store_id} |
| **ecommerce.deleteStoreCart** | /ecommerce/stores/{store_id}/carts/{cart_id} |
| **ecommerce.deleteCartLineItem** | /ecommerce/stores/{store_id}/carts/{cart_id}/lines/{line_id} |
| **ecommerce.deleteStoreCustomer** | /ecommerce/stores/{store_id}/customers/{customer_id} |
| **ecommerce.deleteOrder** | /ecommerce/stores/{store_id}/orders/{order_id} |
| **ecommerce.deleteOrderLineItem** | /ecommerce/stores/{store_id}/orders/{order_id}/lines/{line_id} |
| **ecommerce.deleteStoreProduct** | /ecommerce/stores/{store_id}/products/{product_id} |
| **ecommerce.deleteProductImage** | /ecommerce/stores/{store_id}/products/{product_id}/images/{image_id} |
| **ecommerce.deleteProductVariant** | /ecommerce/stores/{store_id}/products/{product_id}/variants/{variant_id} |
| **ecommerce.deletePromoCode** | /ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}/promo-codes/{promo_code_id} |
| **ecommerce.deletePromoRule** | /ecommerce/stores/{store_id}/promo-rules/{promo_rule_id} |
| **ecommerce.orders** | /ecommerce/orders |
| **ecommerce.stores** | /ecommerce/stores |
| **ecommerce.getStore** | /ecommerce/stores/{store_id} |
| **ecommerce.getStoreCarts** | /ecommerce/stores/{store_id}/carts |
| **ecommerce.getStoreCart** | /ecommerce/stores/{store_id}/carts/{cart_id} |
| **ecommerce.getAllCartLineItems** | /ecommerce/stores/{store_id}/carts/{cart_id}/lines |
| **ecommerce.getCartLineItem** | /ecommerce/stores/{store_id}/carts/{cart_id}/lines/{line_id} |
| **ecommerce.getAllStoreCustomers** | /ecommerce/stores/{store_id}/customers |
| **ecommerce.getStoreCustomer** | /ecommerce/stores/{store_id}/customers/{customer_id} |
| **ecommerce.getStoreOrders** | /ecommerce/stores/{store_id}/orders |
| **ecommerce.getOrder** | /ecommerce/stores/{store_id}/orders/{order_id} |
| **ecommerce.getAllOrderLineItems** | /ecommerce/stores/{store_id}/orders/{order_id}/lines |
| **ecommerce.getOrderLineItem** | /ecommerce/stores/{store_id}/orders/{order_id}/lines/{line_id} |
| **ecommerce.getAllStoreProducts** | /ecommerce/stores/{store_id}/products |
| **ecommerce.getStoreProduct** | /ecommerce/stores/{store_id}/products/{product_id} |
| **ecommerce.getProductImages** | /ecommerce/stores/{store_id}/products/{product_id}/images |
| **ecommerce.getProductImage** | /ecommerce/stores/{store_id}/products/{product_id}/images/{image_id} |
| **ecommerce.getProductVariants** | /ecommerce/stores/{store_id}/products/{product_id}/variants |
| **ecommerce.getProductVariant** | /ecommerce/stores/{store_id}/products/{product_id}/variants/{variant_id} |
| **ecommerce.getPromoCodes** | /ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}/promo-codes |
| **ecommerce.getPromoCode** | /ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}/promo-codes/{promo_code_id} |
| **ecommerce.listPromoRules** | /ecommerce/stores/{store_id}/promo-rules |
| **ecommerce.getPromoRule** | /ecommerce/stores/{store_id}/promo-rules/{promo_rule_id} |
| **ecommerce.updateStore** | /ecommerce/stores/{store_id} |
| **ecommerce.updateStoreCart** | /ecommerce/stores/{store_id}/carts/{cart_id} |
| **ecommerce.updateCartLineItem** | /ecommerce/stores/{store_id}/carts/{cart_id}/lines/{line_id} |
| **ecommerce.updateStoreCustomer** | /ecommerce/stores/{store_id}/customers/{customer_id} |
| **ecommerce.updateOrder** | /ecommerce/stores/{store_id}/orders/{order_id} |
| **ecommerce.updateOrderLineItem** | /ecommerce/stores/{store_id}/orders/{order_id}/lines/{line_id} |
| **ecommerce.updateStoreProduct** | /ecommerce/stores/{store_id}/products/{product_id} |
| **ecommerce.updateProductImage** | /ecommerce/stores/{store_id}/products/{product_id}/images/{image_id} |
| **ecommerce.updateProductVariant** | /ecommerce/stores/{store_id}/products/{product_id}/variants/{variant_id} |
| **ecommerce.updatePromoCode** | /ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}/promo-codes/{promo_code_id} |
| **ecommerce.updatePromoRule** | /ecommerce/stores/{store_id}/promo-rules/{promo_rule_id} |
| **ecommerce.addStore** | /ecommerce/stores |
| **ecommerce.addStoreCart** | /ecommerce/stores/{store_id}/carts |
| **ecommerce.addCartLineItem** | /ecommerce/stores/{store_id}/carts/{cart_id}/lines |
| **ecommerce.addStoreCustomer** | /ecommerce/stores/{store_id}/customers |
| **ecommerce.addStoreOrder** | /ecommerce/stores/{store_id}/orders |
| **ecommerce.addOrderLineItem** | /ecommerce/stores/{store_id}/orders/{order_id}/lines |
| **ecommerce.addStoreProduct** | /ecommerce/stores/{store_id}/products |
| **ecommerce.addProductImage** | /ecommerce/stores/{store_id}/products/{product_id}/images |
| **ecommerce.addProductVariants** | /ecommerce/stores/{store_id}/products/{product_id}/variants |
| **ecommerce.addPromoCode** | /ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}/promo-codes |
| **ecommerce.addPromoRules** | /ecommerce/stores/{store_id}/promo-rules |
| **ecommerce.setStoreCustomer** | /ecommerce/stores/{store_id}/customers/{customer_id} |
| **ecommerce.addProductVariant** | /ecommerce/stores/{store_id}/products/{product_id}/variants/{variant_id} |
| **facebookAds.list** | /facebook-ads |
| **facebookAds.getAd** | /facebook-ads/{outreach_id} |
| **fileManager.deleteFile** | /file-manager/files/{file_id} |
| **fileManager.deleteFolder** | /file-manager/folders/{folder_id} |
| **fileManager.files** | /file-manager/files |
| **fileManager.getFile** | /file-manager/files/{file_id} |
| **fileManager.listFolders** | /file-manager/folders |
| **fileManager.getFolder** | /file-manager/folders/{folder_id} |
| **fileManager.updateFile** | /file-manager/files/{file_id} |
| **fileManager.updateFolder** | /file-manager/folders/{folder_id} |
| **fileManager.upload** | /file-manager/files |
| **fileManager.createFolder** | /file-manager/folders |
| **landingPages.deletePage** | /landing-pages/{page_id} |
| **landingPages.getAll** | /landing-pages |
| **landingPages.getPage** | /landing-pages/{page_id} |
| **landingPages.getPageContent** | /landing-pages/{page_id}/content |
| **landingPages.updatePage** | /landing-pages/{page_id} |
| **landingPages.create** | /landing-pages |
| **landingPages.publishPage** | /landing-pages/{page_id}/actions/publish |
| **landingPages.unpublishPage** | /landing-pages/{page_id}/actions/unpublish |
| **lists.deleteList** | /lists/{list_id} |
| **lists.deleteInterestCategory** | /lists/{list_id}/interest-categories/{interest_category_id} |
| **lists.deleteInterestCategoryInterest** | /lists/{list_id}/interest-categories/{interest_category_id}/interests/{interest_id} |
| **lists.deleteListMember** | /lists/{list_id}/members/{subscriber_hash} |
| **lists.deleteListMemberNote** | /lists/{list_id}/members/{subscriber_hash}/notes/{note_id} |
| **lists.deleteListMergeField** | /lists/{list_id}/merge-fields/{merge_id} |
| **lists.deleteSegment** | /lists/{list_id}/segments/{segment_id} |
| **lists.removeSegmentMember** | /lists/{list_id}/segments/{segment_id}/members/{subscriber_hash} |
| **lists.deleteListWebhook** | /lists/{list_id}/webhooks/{webhook_id} |
| **lists.getListMemberTags** | /lists/{list_id}/members/{subscriber_hash}/tags |
| **lists.getAllLists** | /lists |
| **lists.getList** | /lists/{list_id} |
| **lists.getListAbuseReports** | /lists/{list_id}/abuse-reports |
| **lists.getListAbuseReportDetails** | /lists/{list_id}/abuse-reports/{report_id} |
| **lists.getListRecentActivity** | /lists/{list_id}/activity |
| **lists.getListClients** | /lists/{list_id}/clients |
| **lists.getListGrowthHistory** | /lists/{list_id}/growth-history |
| **lists.getListGrowthHistoryByMonth** | /lists/{list_id}/growth-history/{month} |
| **lists.getListInterestCategories** | /lists/{list_id}/interest-categories |
| **lists.getInterestCategory** | /lists/{list_id}/interest-categories/{interest_category_id} |
| **lists.listInterestCategoryInterests** | /lists/{list_id}/interest-categories/{interest_category_id}/interests |
| **lists.getInterestCategoryInterest** | /lists/{list_id}/interest-categories/{interest_category_id}/interests/{interest_id} |
| **lists.getListLocations** | /lists/{list_id}/locations |
| **lists.getListMembersInfo** | /lists/{list_id}/members |
| **lists.getListMember** | /lists/{list_id}/members/{subscriber_hash} |
| **lists.getListMemberActivity** | /lists/{list_id}/members/{subscriber_hash}/activity |
| **lists.getListMemberActivityFeed** | /lists/{list_id}/members/{subscriber_hash}/activity-feed |
| **lists.getListMemberEvents** | /lists/{list_id}/members/{subscriber_hash}/events |
| **lists.getListMemberGoals** | /lists/{list_id}/members/{subscriber_hash}/goals |
| **lists.getListMemberNotes** | /lists/{list_id}/members/{subscriber_hash}/notes |
| **lists.getListMemberNote** | /lists/{list_id}/members/{subscriber_hash}/notes/{note_id} |
| **lists.getListMergeFields** | /lists/{list_id}/merge-fields |
| **lists.getListMergeField** | /lists/{list_id}/merge-fields/{merge_id} |
| **lists.getSegment** | /lists/{list_id}/segments/{segment_id} |
| **lists.getSegmentMembersList** | /lists/{list_id}/segments/{segment_id}/members |
| **lists.getListSignupForms** | /lists/{list_id}/signup-forms |
| **lists.getAllSurveysForList** | /lists/{list_id}/surveys |
| **lists.getSurvey** | /lists/{list_id}/surveys/{survey_id} |
| **lists.getListWebhooks** | /lists/{list_id}/webhooks |
| **lists.getListWebhook** | /lists/{list_id}/webhooks/{webhook_id} |
| **lists.updateList** | /lists/{list_id} |
| **lists.updateInterestCategory** | /lists/{list_id}/interest-categories/{interest_category_id} |
| **lists.updateInterestCategoryInterest** | /lists/{list_id}/interest-categories/{interest_category_id}/interests/{interest_id} |
| **lists.updateListMember** | /lists/{list_id}/members/{subscriber_hash} |
| **lists.updateListMemberNote** | /lists/{list_id}/members/{subscriber_hash}/notes/{note_id} |
| **lists.updateListMergeField** | /lists/{list_id}/merge-fields/{merge_id} |
| **lists.updateSegment** | /lists/{list_id}/segments/{segment_id} |
| **lists.updateListWebhook** | /lists/{list_id}/webhooks/{webhook_id} |
| **lists.createListMemberEvent** | /lists/{list_id}/members/{subscriber_hash}/events |
| **lists.updateListMemberTags** | /lists/{list_id}/members/{subscriber_hash}/tags |
| **lists.createList** | /lists |
| **lists.batchListMembers** | /lists/{list_id} |
| **lists.createListInterestCategory** | /lists/{list_id}/interest-categories |
| **lists.createInterestCategoryInterest** | /lists/{list_id}/interest-categories/{interest_category_id}/interests |
| **lists.addListMember** | /lists/{list_id}/members |
| **lists.deleteListMemberPermanent** | /lists/{list_id}/members/{subscriber_hash}/actions/delete-permanent |
| **lists.createListMemberNote** | /lists/{list_id}/members/{subscriber_hash}/notes |
| **lists.addListMergeField** | /lists/{list_id}/merge-fields |
| **lists.createSegment** | /lists/{list_id}/segments |
| **lists.batchSegmentMembers** | /lists/{list_id}/segments/{segment_id} |
| **lists.createSegmentMember** | /lists/{list_id}/segments/{segment_id}/members |
| **lists.updateListSignupForm** | /lists/{list_id}/signup-forms |
| **lists.createListWebhook** | /lists/{list_id}/webhooks |
| **lists.listSegments** | /lists/{list_id}/segments |
| **lists.setListMember** | /lists/{list_id}/members/{subscriber_hash} |
| **lists.tagSearch** | /lists/{list_id}/tag-search |
| **ping.get** | /ping |
| **reporting.getFacebookAdsReportAll** | /reporting/facebook-ads |
| **reporting.getFacebookAdReport** | /reporting/facebook-ads/{outreach_id} |
| **reporting.getFacebookAdProductActivityReport** | /reporting/facebook-ads/{outreach_id}/ecommerce-product-activity |
| **reporting.getLandingPageReportsAll** | /reporting/landing-pages |
| **reporting.getLandingPageReport** | /reporting/landing-pages/{outreach_id} |
| **reporting.getSurveyReportsAll** | /reporting/surveys |
| **reporting.getSurveyReport** | /reporting/surveys/{outreach_id} |
| **reporting.getSurveyQuestionReportsAll** | /reporting/surveys/{outreach_id}/questions |
| **reporting.getSurveyQuestionReport** | /reporting/surveys/{outreach_id}/questions/{question_id} |
| **reporting.getSurveyQuestionAnswers** | /reporting/surveys/{outreach_id}/questions/{question_id}/answers |
| **reporting.getSurveyResponsesAll** | /reporting/surveys/{outreach_id}/responses |
| **reporting.getSurveyResponse** | /reporting/surveys/{outreach_id}/responses/{response_id} |
| **reports.getAllCampaignReports** | /reports |
| **reports.getCampaignReport** | /reports/{campaign_id} |
| **reports.getCampaignAbuseReports** | /reports/{campaign_id}/abuse-reports |
| **reports.getCampaignAbuseReport** | /reports/{campaign_id}/abuse-reports/{report_id} |
| **reports.getCampaignAdvice** | /reports/{campaign_id}/advice |
| **reports.getCampaignClickDetails** | /reports/{campaign_id}/click-details |
| **reports.getCampaignClickDetailsForLink** | /reports/{campaign_id}/click-details/{link_id} |
| **reports.getSubscribersInfo** | /reports/{campaign_id}/click-details/{link_id}/members |
| **reports.getSubscriberInfo** | /reports/{campaign_id}/click-details/{link_id}/members/{subscriber_hash} |
| **reports.getDomainPerformanceForCampaign** | /reports/{campaign_id}/domain-performance |
| **reports.getEcommerceProductActivityForCampaign** | /reports/{campaign_id}/ecommerce-product-activity |
| **reports.getEepurlActivityForCampaign** | /reports/{campaign_id}/eepurl |
| **reports.getEmailActivityForCampaign** | /reports/{campaign_id}/email-activity |
| **reports.getEmailActivityForSubscriber** | /reports/{campaign_id}/email-activity/{subscriber_hash} |
| **reports.getLocationsForCampaign** | /reports/{campaign_id}/locations |
| **reports.getCampaignOpenDetails** | /reports/{campaign_id}/open-details |
| **reports.getSubscriberInfoForOpenedCampaign** | /reports/{campaign_id}/open-details/{subscriber_hash} |
| **reports.getCampaignRecipients** | /reports/{campaign_id}/sent-to |
| **reports.getCampaignRecipient** | /reports/{campaign_id}/sent-to/{subscriber_hash} |
| **reports.getSubReportsForCampaign** | /reports/{campaign_id}/sub-reports |
| **reports.getUnsubscribedListForCampaign** | /reports/{campaign_id}/unsubscribed |
| **reports.getUnsubscribedListMember** | /reports/{campaign_id}/unsubscribed/{subscriber_hash} |
| **root.getRoot** | / |
| **searchCampaigns.search** | /search-campaigns |
| **searchMembers.search** | /search-members |
| **Surveys.publishSurvey** | /lists/{list_id}/surveys/{survey_id}/actions/publish |
| **Surveys.unpublishSurvey** | /lists/{list_id}/surveys/{survey_id}/actions/unpublish |
| **templateFolders.remove** | /template-folders/{folder_id} |
| **templateFolders.list** | /template-folders |
| **templateFolders.get** | /template-folders/{folder_id} |
| **templateFolders.update** | /template-folders/{folder_id} |
| **templateFolders.create** | /template-folders |
| **templates.deleteTemplate** | /templates/{template_id} |
| **templates.list** | /templates |
| **templates.getTemplate** | /templates/{template_id} |
| **templates.getDefaultContentForTemplate** | /templates/{template_id}/default-content |
| **templates.updateTemplate** | /templates/{template_id} |
| **templates.create** | /templates |
| **verifiedDomains.createVerifiedDomain** | /verified-domains |
| **verifiedDomains.deleteDomain** | /verified-domains/{domain_name} |
| **verifiedDomains.getDomain** | /verified-domains/{domain_name} |
| **verifiedDomains.getVerifiedDomainsAll** | /verified-domains |
| **verifiedDomains.submitDomainVerification** | /verified-domains/{domain_name}/actions/verify |


## Additional Libraries

Mailchimp Marketing libraries are available in the following languages:

<div>
  <a href="https://github.com/mailchimp/mailchimp-marketing-node">
  <img src="https://github.com/mailchimp/mailchimp-client-lib-codegen/blob/main/resources/images/lang_node.png?raw=true" width="44" height="44">
  </a>
  <a href="https://github.com/mailchimp/mailchimp-marketing-php">
  <img src="https://github.com/mailchimp/mailchimp-client-lib-codegen/blob/main/resources/images/lang_php.png?raw=true" width="44" height="44">
  </a>
  <a href="https://github.com/mailchimp/mailchimp-marketing-ruby">
  <img src="https://github.com/mailchimp/mailchimp-client-lib-codegen/blob/main/resources/images/lang_ruby.png?raw=true" width="44" height="44">
  </a>
  <a href="https://github.com/mailchimp/mailchimp-marketing-python">
  <img src="https://github.com/mailchimp/mailchimp-client-lib-codegen/blob/main/resources/images/lang_python.png?raw=true" width="44" height="44">
  </a>
</div>


================================================
FILE: composer.json
================================================
{
    "name": "mailchimp/marketing",
    "version": "3.0.80",
    "description": "",
    "keywords": [
        "swagger",
        "php",
        "sdk",
        "api"
    ],
    "homepage": "http://swagger.io",
    "license": "proprietary",
    "authors": [
        {
            "name": "Mailchimp",
            "homepage": "https://github.com/mailchimp/mailchimp-marketing-php"
        }
    ],
    "require": {
        "php": ">=7.2",
        "ext-curl": "*",
        "ext-json": "*",
        "ext-mbstring": "*",
        "guzzlehttp/psr7": "^1.7 || ^2.0",
        "guzzlehttp/guzzle": "^6.4 || ^7.2"
    },
    "require-dev": {
        "phpunit/phpunit": "^7",
        "squizlabs/php_codesniffer": "~2.6",
        "friendsofphp/php-cs-fixer": "~2.12"
    },
    "autoload": {
        "psr-4": {
            "MailchimpMarketing\\" : "lib/"
        }
    },
    "autoload-dev": {
        "psr-4": { "MailchimpMarketing\\" : "test/" }
    }
}


================================================
FILE: git_push.sh
================================================
#!/bin/sh
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
#
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"

git_user_id=$1
git_repo_id=$2
release_note=$3

if [ "$git_user_id" = "" ]; then
    git_user_id="mailchimp"
    echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
fi

if [ "$git_repo_id" = "" ]; then
    git_repo_id="mailchimp-marketing-php"
    echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi

if [ "$release_note" = "" ]; then
    release_note="Minor update"
    echo "[INFO] No command line input provided. Set \$release_note to $release_note"
fi

# Initialize the local directory as a Git repository
git init

# Adds the files in the local repository and stages them for commit.
git add .

# Commits the tracked changes and prepares them to be pushed to a remote repository.
git commit -m "$release_note"

# Sets the new remote
git_remote=`git remote`
if [ "$git_remote" = "" ]; then # git remote not defined

    if [ "$GIT_TOKEN" = "" ]; then
        echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
        git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
    else
        git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
    fi

fi

git pull origin master

# Pushes (Forces) the changes in the local repository up to the remote repository
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
git push origin master 2>&1 | grep -v 'To https'



================================================
FILE: lib/Api/AccountExportApi.php
================================================
<?php

/**
 * AccountExportApi
 * PHP version 5
 *
 * @category Class
 * @package  MailchimpMarketing
 * @author   Swagger Codegen team
 * @link     https://github.com/swagger-api/swagger-codegen
 */

/**
 * Mailchimp Marketing API
 *
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 3.0.80
 * Contact: apihelp@mailchimp.com
 * Generated by: https://github.com/swagger-api/swagger-codegen.git
 * Swagger Codegen version: 2.4.12
 */

/**
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen
 * Do not edit the class manually.
 */

namespace MailchimpMarketing\Api;

use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\MultipartStream;
use GuzzleHttp\Psr7\Query;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RequestOptions;
use MailchimpMarketing\ApiException;
use MailchimpMarketing\Configuration;
use MailchimpMarketing\HeaderSelector;
use MailchimpMarketing\ObjectSerializer;

class AccountExportApi
{
    protected $client;
    protected $config;
    protected $headerSelector;

    public function __construct(Configuration $config = null)
    {
        $this->client = new Client([
            'defaults' => [
                'timeout' => 120.0
            ]
        ]);
        $this->headerSelector = new HeaderSelector();
        $this->config = $config ?: new Configuration();
    }

    public function getConfig()
    {
        return $this->config;
    }

    public function getAccountExports($export_id, $fields = null, $exclude_fields = null)
    {
        $response = $this->getAccountExportsWithHttpInfo($export_id, $fields, $exclude_fields);
        return $response;
    }

    public function getAccountExportsWithHttpInfo($export_id, $fields = null, $exclude_fields = null)
    {
        $request = $this->getAccountExportsRequest($export_id, $fields, $exclude_fields);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function getAccountExportsRequest($export_id, $fields = null, $exclude_fields = null)
    {
        // verify the required parameter 'export_id' is set
        if ($export_id === null || (is_array($export_id) && count($export_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $export_id when calling '
            );
        }

        $resourcePath = '/account-exports/{export_id}';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;
        // query params
        if (is_array($fields)) {
            $queryParams['fields'] = ObjectSerializer::serializeCollection($fields, 'csv');
        } else
        if ($fields !== null) {
            $queryParams['fields'] = ObjectSerializer::toQueryValue($fields);
        }
        // query params
        if (is_array($exclude_fields)) {
            $queryParams['exclude_fields'] = ObjectSerializer::serializeCollection($exclude_fields, 'csv');
        } else
        if ($exclude_fields !== null) {
            $queryParams['exclude_fields'] = ObjectSerializer::toQueryValue($exclude_fields);
        }

        // path params
        if ($export_id !== null) {
            $resourcePath = str_replace(
                '{' . 'export_id' . '}',
                ObjectSerializer::toPathValue($export_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'GET',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    protected function createHttpClientOption()
    {
        $options = [];
        if ($this->config->getDebug()) {
            $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a');
            if (!$options[RequestOptions::DEBUG]) {
                throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile());
            }
        }

        if ($this->config->getTimeout()) {
            $options[RequestOptions::TIMEOUT] = $this->config->getTimeout();
        }

        return $options;
    }
}


================================================
FILE: lib/Api/AccountExportsApi.php
================================================
<?php

/**
 * AccountExportsApi
 * PHP version 5
 *
 * @category Class
 * @package  MailchimpMarketing
 * @author   Swagger Codegen team
 * @link     https://github.com/swagger-api/swagger-codegen
 */

/**
 * Mailchimp Marketing API
 *
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 3.0.80
 * Contact: apihelp@mailchimp.com
 * Generated by: https://github.com/swagger-api/swagger-codegen.git
 * Swagger Codegen version: 2.4.12
 */

/**
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen
 * Do not edit the class manually.
 */

namespace MailchimpMarketing\Api;

use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\MultipartStream;
use GuzzleHttp\Psr7\Query;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RequestOptions;
use MailchimpMarketing\ApiException;
use MailchimpMarketing\Configuration;
use MailchimpMarketing\HeaderSelector;
use MailchimpMarketing\ObjectSerializer;

class AccountExportsApi
{
    protected $client;
    protected $config;
    protected $headerSelector;

    public function __construct(Configuration $config = null)
    {
        $this->client = new Client([
            'defaults' => [
                'timeout' => 120.0
            ]
        ]);
        $this->headerSelector = new HeaderSelector();
        $this->config = $config ?: new Configuration();
    }

    public function getConfig()
    {
        return $this->config;
    }

    public function listAccountExports($fields = null, $exclude_fields = null, $count = '10', $offset = '0')
    {
        $response = $this->listAccountExportsWithHttpInfo($fields, $exclude_fields, $count, $offset);
        return $response;
    }

    public function listAccountExportsWithHttpInfo($fields = null, $exclude_fields = null, $count = '10', $offset = '0')
    {
        $request = $this->listAccountExportsRequest($fields, $exclude_fields, $count, $offset);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function listAccountExportsRequest($fields = null, $exclude_fields = null, $count = '10', $offset = '0')
    {
        if ($count !== null && $count > 1000) {
            throw new \InvalidArgumentException('invalid value for "$count" when calling AccountExportsApi., must be smaller than or equal to 1000.');
        }


        $resourcePath = '/account-exports';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;
        // query params
        if (is_array($fields)) {
            $queryParams['fields'] = ObjectSerializer::serializeCollection($fields, 'csv');
        } else
        if ($fields !== null) {
            $queryParams['fields'] = ObjectSerializer::toQueryValue($fields);
        }
        // query params
        if (is_array($exclude_fields)) {
            $queryParams['exclude_fields'] = ObjectSerializer::serializeCollection($exclude_fields, 'csv');
        } else
        if ($exclude_fields !== null) {
            $queryParams['exclude_fields'] = ObjectSerializer::toQueryValue($exclude_fields);
        }
        // query params
        if ($count !== null) {
            $queryParams['count'] = ObjectSerializer::toQueryValue($count);
        }
        // query params
        if ($offset !== null) {
            $queryParams['offset'] = ObjectSerializer::toQueryValue($offset);
        }


        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'GET',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function createAccountExport($body)
    {
        $response = $this->createAccountExportWithHttpInfo($body);
        return $response;
    }

    public function createAccountExportWithHttpInfo($body)
    {
        $request = $this->createAccountExportRequest($body);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function createAccountExportRequest($body)
    {
        // verify the required parameter 'body' is set
        if ($body === null || (is_array($body) && count($body) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $body when calling '
            );
        }

        $resourcePath = '/account-exports';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;


        // body params
        $_tempBody = null;
        if (isset($body)) {
            $_tempBody = $body;
        }

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'POST',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    protected function createHttpClientOption()
    {
        $options = [];
        if ($this->config->getDebug()) {
            $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a');
            if (!$options[RequestOptions::DEBUG]) {
                throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile());
            }
        }

        if ($this->config->getTimeout()) {
            $options[RequestOptions::TIMEOUT] = $this->config->getTimeout();
        }

        return $options;
    }
}


================================================
FILE: lib/Api/ActivityFeedApi.php
================================================
<?php

/**
 * ActivityFeedApi
 * PHP version 5
 *
 * @category Class
 * @package  MailchimpMarketing
 * @author   Swagger Codegen team
 * @link     https://github.com/swagger-api/swagger-codegen
 */

/**
 * Mailchimp Marketing API
 *
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 3.0.80
 * Contact: apihelp@mailchimp.com
 * Generated by: https://github.com/swagger-api/swagger-codegen.git
 * Swagger Codegen version: 2.4.12
 */

/**
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen
 * Do not edit the class manually.
 */

namespace MailchimpMarketing\Api;

use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\MultipartStream;
use GuzzleHttp\Psr7\Query;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RequestOptions;
use MailchimpMarketing\ApiException;
use MailchimpMarketing\Configuration;
use MailchimpMarketing\HeaderSelector;
use MailchimpMarketing\ObjectSerializer;

class ActivityFeedApi
{
    protected $client;
    protected $config;
    protected $headerSelector;

    public function __construct(Configuration $config = null)
    {
        $this->client = new Client([
            'defaults' => [
                'timeout' => 120.0
            ]
        ]);
        $this->headerSelector = new HeaderSelector();
        $this->config = $config ?: new Configuration();
    }

    public function getConfig()
    {
        return $this->config;
    }

    public function getChimpChatter($count = '10', $offset = '0')
    {
        $response = $this->getChimpChatterWithHttpInfo($count, $offset);
        return $response;
    }

    public function getChimpChatterWithHttpInfo($count = '10', $offset = '0')
    {
        $request = $this->getChimpChatterRequest($count, $offset);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function getChimpChatterRequest($count = '10', $offset = '0')
    {
        if ($count !== null && $count > 1000) {
            throw new \InvalidArgumentException('invalid value for "$count" when calling ActivityFeedApi., must be smaller than or equal to 1000.');
        }


        $resourcePath = '/activity-feed/chimp-chatter';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;
        // query params
        if ($count !== null) {
            $queryParams['count'] = ObjectSerializer::toQueryValue($count);
        }
        // query params
        if ($offset !== null) {
            $queryParams['offset'] = ObjectSerializer::toQueryValue($offset);
        }


        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'GET',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    protected function createHttpClientOption()
    {
        $options = [];
        if ($this->config->getDebug()) {
            $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a');
            if (!$options[RequestOptions::DEBUG]) {
                throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile());
            }
        }

        if ($this->config->getTimeout()) {
            $options[RequestOptions::TIMEOUT] = $this->config->getTimeout();
        }

        return $options;
    }
}


================================================
FILE: lib/Api/AuthorizedAppsApi.php
================================================
<?php

/**
 * AuthorizedAppsApi
 * PHP version 5
 *
 * @category Class
 * @package  MailchimpMarketing
 * @author   Swagger Codegen team
 * @link     https://github.com/swagger-api/swagger-codegen
 */

/**
 * Mailchimp Marketing API
 *
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 3.0.80
 * Contact: apihelp@mailchimp.com
 * Generated by: https://github.com/swagger-api/swagger-codegen.git
 * Swagger Codegen version: 2.4.12
 */

/**
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen
 * Do not edit the class manually.
 */

namespace MailchimpMarketing\Api;

use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\MultipartStream;
use GuzzleHttp\Psr7\Query;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RequestOptions;
use MailchimpMarketing\ApiException;
use MailchimpMarketing\Configuration;
use MailchimpMarketing\HeaderSelector;
use MailchimpMarketing\ObjectSerializer;

class AuthorizedAppsApi
{
    protected $client;
    protected $config;
    protected $headerSelector;

    public function __construct(Configuration $config = null)
    {
        $this->client = new Client([
            'defaults' => [
                'timeout' => 120.0
            ]
        ]);
        $this->headerSelector = new HeaderSelector();
        $this->config = $config ?: new Configuration();
    }

    public function getConfig()
    {
        return $this->config;
    }

    public function list($fields = null, $exclude_fields = null, $count = '10', $offset = '0')
    {
        $response = $this->listWithHttpInfo($fields, $exclude_fields, $count, $offset);
        return $response;
    }

    public function listWithHttpInfo($fields = null, $exclude_fields = null, $count = '10', $offset = '0')
    {
        $request = $this->listRequest($fields, $exclude_fields, $count, $offset);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function listRequest($fields = null, $exclude_fields = null, $count = '10', $offset = '0')
    {
        if ($count !== null && $count > 1000) {
            throw new \InvalidArgumentException('invalid value for "$count" when calling AuthorizedAppsApi., must be smaller than or equal to 1000.');
        }


        $resourcePath = '/authorized-apps';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;
        // query params
        if (is_array($fields)) {
            $queryParams['fields'] = ObjectSerializer::serializeCollection($fields, 'csv');
        } else
        if ($fields !== null) {
            $queryParams['fields'] = ObjectSerializer::toQueryValue($fields);
        }
        // query params
        if (is_array($exclude_fields)) {
            $queryParams['exclude_fields'] = ObjectSerializer::serializeCollection($exclude_fields, 'csv');
        } else
        if ($exclude_fields !== null) {
            $queryParams['exclude_fields'] = ObjectSerializer::toQueryValue($exclude_fields);
        }
        // query params
        if ($count !== null) {
            $queryParams['count'] = ObjectSerializer::toQueryValue($count);
        }
        // query params
        if ($offset !== null) {
            $queryParams['offset'] = ObjectSerializer::toQueryValue($offset);
        }


        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'GET',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function get($app_id, $fields = null, $exclude_fields = null)
    {
        $response = $this->getWithHttpInfo($app_id, $fields, $exclude_fields);
        return $response;
    }

    public function getWithHttpInfo($app_id, $fields = null, $exclude_fields = null)
    {
        $request = $this->getRequest($app_id, $fields, $exclude_fields);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function getRequest($app_id, $fields = null, $exclude_fields = null)
    {
        // verify the required parameter 'app_id' is set
        if ($app_id === null || (is_array($app_id) && count($app_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $app_id when calling '
            );
        }

        $resourcePath = '/authorized-apps/{app_id}';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;
        // query params
        if (is_array($fields)) {
            $queryParams['fields'] = ObjectSerializer::serializeCollection($fields, 'csv');
        } else
        if ($fields !== null) {
            $queryParams['fields'] = ObjectSerializer::toQueryValue($fields);
        }
        // query params
        if (is_array($exclude_fields)) {
            $queryParams['exclude_fields'] = ObjectSerializer::serializeCollection($exclude_fields, 'csv');
        } else
        if ($exclude_fields !== null) {
            $queryParams['exclude_fields'] = ObjectSerializer::toQueryValue($exclude_fields);
        }

        // path params
        if ($app_id !== null) {
            $resourcePath = str_replace(
                '{' . 'app_id' . '}',
                ObjectSerializer::toPathValue($app_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'GET',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    protected function createHttpClientOption()
    {
        $options = [];
        if ($this->config->getDebug()) {
            $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a');
            if (!$options[RequestOptions::DEBUG]) {
                throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile());
            }
        }

        if ($this->config->getTimeout()) {
            $options[RequestOptions::TIMEOUT] = $this->config->getTimeout();
        }

        return $options;
    }
}


================================================
FILE: lib/Api/AutomationsApi.php
================================================
<?php

/**
 * AutomationsApi
 * PHP version 5
 *
 * @category Class
 * @package  MailchimpMarketing
 * @author   Swagger Codegen team
 * @link     https://github.com/swagger-api/swagger-codegen
 */

/**
 * Mailchimp Marketing API
 *
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 3.0.80
 * Contact: apihelp@mailchimp.com
 * Generated by: https://github.com/swagger-api/swagger-codegen.git
 * Swagger Codegen version: 2.4.12
 */

/**
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen
 * Do not edit the class manually.
 */

namespace MailchimpMarketing\Api;

use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\MultipartStream;
use GuzzleHttp\Psr7\Query;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RequestOptions;
use MailchimpMarketing\ApiException;
use MailchimpMarketing\Configuration;
use MailchimpMarketing\HeaderSelector;
use MailchimpMarketing\ObjectSerializer;

class AutomationsApi
{
    protected $client;
    protected $config;
    protected $headerSelector;

    public function __construct(Configuration $config = null)
    {
        $this->client = new Client([
            'defaults' => [
                'timeout' => 120.0
            ]
        ]);
        $this->headerSelector = new HeaderSelector();
        $this->config = $config ?: new Configuration();
    }

    public function getConfig()
    {
        return $this->config;
    }

    public function archive($workflow_id)
    {
        $this->archiveWithHttpInfo($workflow_id);
    }

    public function archiveWithHttpInfo($workflow_id)
    {
        $request = $this->archiveRequest($workflow_id);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function archiveRequest($workflow_id)
    {
        // verify the required parameter 'workflow_id' is set
        if ($workflow_id === null || (is_array($workflow_id) && count($workflow_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_id when calling '
            );
        }

        $resourcePath = '/automations/{workflow_id}/actions/archive';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;

        // path params
        if ($workflow_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_id' . '}',
                ObjectSerializer::toPathValue($workflow_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'POST',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function deleteWorkflowEmail($workflow_id, $workflow_email_id)
    {
        $this->deleteWorkflowEmailWithHttpInfo($workflow_id, $workflow_email_id);
    }

    public function deleteWorkflowEmailWithHttpInfo($workflow_id, $workflow_email_id)
    {
        $request = $this->deleteWorkflowEmailRequest($workflow_id, $workflow_email_id);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function deleteWorkflowEmailRequest($workflow_id, $workflow_email_id)
    {
        // verify the required parameter 'workflow_id' is set
        if ($workflow_id === null || (is_array($workflow_id) && count($workflow_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_id when calling '
            );
        }
        // verify the required parameter 'workflow_email_id' is set
        if ($workflow_email_id === null || (is_array($workflow_email_id) && count($workflow_email_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_email_id when calling '
            );
        }

        $resourcePath = '/automations/{workflow_id}/emails/{workflow_email_id}';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;

        // path params
        if ($workflow_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_id' . '}',
                ObjectSerializer::toPathValue($workflow_id),
                $resourcePath
            );
        }
        // path params
        if ($workflow_email_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_email_id' . '}',
                ObjectSerializer::toPathValue($workflow_email_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'DELETE',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function list($count = '10', $offset = '0', $fields = null, $exclude_fields = null, $before_create_time = null, $since_create_time = null, $before_start_time = null, $since_start_time = null, $status = null)
    {
        $response = $this->listWithHttpInfo($count, $offset, $fields, $exclude_fields, $before_create_time, $since_create_time, $before_start_time, $since_start_time, $status);
        return $response;
    }

    public function listWithHttpInfo($count = '10', $offset = '0', $fields = null, $exclude_fields = null, $before_create_time = null, $since_create_time = null, $before_start_time = null, $since_start_time = null, $status = null)
    {
        $request = $this->listRequest($count, $offset, $fields, $exclude_fields, $before_create_time, $since_create_time, $before_start_time, $since_start_time, $status);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function listRequest($count = '10', $offset = '0', $fields = null, $exclude_fields = null, $before_create_time = null, $since_create_time = null, $before_start_time = null, $since_start_time = null, $status = null)
    {
        if ($count !== null && $count > 1000) {
            throw new \InvalidArgumentException('invalid value for "$count" when calling AutomationsApi., must be smaller than or equal to 1000.');
        }


        $resourcePath = '/automations';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;
        // query params
        if ($count !== null) {
            $queryParams['count'] = ObjectSerializer::toQueryValue($count);
        }
        // query params
        if ($offset !== null) {
            $queryParams['offset'] = ObjectSerializer::toQueryValue($offset);
        }
        // query params
        if (is_array($fields)) {
            $queryParams['fields'] = ObjectSerializer::serializeCollection($fields, 'csv');
        } else
        if ($fields !== null) {
            $queryParams['fields'] = ObjectSerializer::toQueryValue($fields);
        }
        // query params
        if (is_array($exclude_fields)) {
            $queryParams['exclude_fields'] = ObjectSerializer::serializeCollection($exclude_fields, 'csv');
        } else
        if ($exclude_fields !== null) {
            $queryParams['exclude_fields'] = ObjectSerializer::toQueryValue($exclude_fields);
        }
        // query params
        if ($before_create_time !== null) {
            $queryParams['before_create_time'] = ObjectSerializer::toQueryValue($before_create_time);
        }
        // query params
        if ($since_create_time !== null) {
            $queryParams['since_create_time'] = ObjectSerializer::toQueryValue($since_create_time);
        }
        // query params
        if ($before_start_time !== null) {
            $queryParams['before_start_time'] = ObjectSerializer::toQueryValue($before_start_time);
        }
        // query params
        if ($since_start_time !== null) {
            $queryParams['since_start_time'] = ObjectSerializer::toQueryValue($since_start_time);
        }
        // query params
        if ($status !== null) {
            $queryParams['status'] = ObjectSerializer::toQueryValue($status);
        }


        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'GET',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function get($workflow_id, $fields = null, $exclude_fields = null)
    {
        $response = $this->getWithHttpInfo($workflow_id, $fields, $exclude_fields);
        return $response;
    }

    public function getWithHttpInfo($workflow_id, $fields = null, $exclude_fields = null)
    {
        $request = $this->getRequest($workflow_id, $fields, $exclude_fields);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function getRequest($workflow_id, $fields = null, $exclude_fields = null)
    {
        // verify the required parameter 'workflow_id' is set
        if ($workflow_id === null || (is_array($workflow_id) && count($workflow_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_id when calling '
            );
        }

        $resourcePath = '/automations/{workflow_id}';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;
        // query params
        if (is_array($fields)) {
            $queryParams['fields'] = ObjectSerializer::serializeCollection($fields, 'csv');
        } else
        if ($fields !== null) {
            $queryParams['fields'] = ObjectSerializer::toQueryValue($fields);
        }
        // query params
        if (is_array($exclude_fields)) {
            $queryParams['exclude_fields'] = ObjectSerializer::serializeCollection($exclude_fields, 'csv');
        } else
        if ($exclude_fields !== null) {
            $queryParams['exclude_fields'] = ObjectSerializer::toQueryValue($exclude_fields);
        }

        // path params
        if ($workflow_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_id' . '}',
                ObjectSerializer::toPathValue($workflow_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'GET',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function listAllWorkflowEmails($workflow_id)
    {
        $response = $this->listAllWorkflowEmailsWithHttpInfo($workflow_id);
        return $response;
    }

    public function listAllWorkflowEmailsWithHttpInfo($workflow_id)
    {
        $request = $this->listAllWorkflowEmailsRequest($workflow_id);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function listAllWorkflowEmailsRequest($workflow_id)
    {
        // verify the required parameter 'workflow_id' is set
        if ($workflow_id === null || (is_array($workflow_id) && count($workflow_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_id when calling '
            );
        }

        $resourcePath = '/automations/{workflow_id}/emails';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;

        // path params
        if ($workflow_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_id' . '}',
                ObjectSerializer::toPathValue($workflow_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'GET',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function getWorkflowEmail($workflow_id, $workflow_email_id)
    {
        $response = $this->getWorkflowEmailWithHttpInfo($workflow_id, $workflow_email_id);
        return $response;
    }

    public function getWorkflowEmailWithHttpInfo($workflow_id, $workflow_email_id)
    {
        $request = $this->getWorkflowEmailRequest($workflow_id, $workflow_email_id);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function getWorkflowEmailRequest($workflow_id, $workflow_email_id)
    {
        // verify the required parameter 'workflow_id' is set
        if ($workflow_id === null || (is_array($workflow_id) && count($workflow_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_id when calling '
            );
        }
        // verify the required parameter 'workflow_email_id' is set
        if ($workflow_email_id === null || (is_array($workflow_email_id) && count($workflow_email_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_email_id when calling '
            );
        }

        $resourcePath = '/automations/{workflow_id}/emails/{workflow_email_id}';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;

        // path params
        if ($workflow_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_id' . '}',
                ObjectSerializer::toPathValue($workflow_id),
                $resourcePath
            );
        }
        // path params
        if ($workflow_email_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_email_id' . '}',
                ObjectSerializer::toPathValue($workflow_email_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'GET',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function getWorkflowEmailSubscriberQueue($workflow_id, $workflow_email_id)
    {
        $response = $this->getWorkflowEmailSubscriberQueueWithHttpInfo($workflow_id, $workflow_email_id);
        return $response;
    }

    public function getWorkflowEmailSubscriberQueueWithHttpInfo($workflow_id, $workflow_email_id)
    {
        $request = $this->getWorkflowEmailSubscriberQueueRequest($workflow_id, $workflow_email_id);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function getWorkflowEmailSubscriberQueueRequest($workflow_id, $workflow_email_id)
    {
        // verify the required parameter 'workflow_id' is set
        if ($workflow_id === null || (is_array($workflow_id) && count($workflow_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_id when calling '
            );
        }
        // verify the required parameter 'workflow_email_id' is set
        if ($workflow_email_id === null || (is_array($workflow_email_id) && count($workflow_email_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_email_id when calling '
            );
        }

        $resourcePath = '/automations/{workflow_id}/emails/{workflow_email_id}/queue';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;

        // path params
        if ($workflow_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_id' . '}',
                ObjectSerializer::toPathValue($workflow_id),
                $resourcePath
            );
        }
        // path params
        if ($workflow_email_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_email_id' . '}',
                ObjectSerializer::toPathValue($workflow_email_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'GET',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function getWorkflowEmailSubscriber($workflow_id, $workflow_email_id, $subscriber_hash)
    {
        $response = $this->getWorkflowEmailSubscriberWithHttpInfo($workflow_id, $workflow_email_id, $subscriber_hash);
        return $response;
    }

    public function getWorkflowEmailSubscriberWithHttpInfo($workflow_id, $workflow_email_id, $subscriber_hash)
    {
        $request = $this->getWorkflowEmailSubscriberRequest($workflow_id, $workflow_email_id, $subscriber_hash);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function getWorkflowEmailSubscriberRequest($workflow_id, $workflow_email_id, $subscriber_hash)
    {
        // verify the required parameter 'workflow_id' is set
        if ($workflow_id === null || (is_array($workflow_id) && count($workflow_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_id when calling '
            );
        }
        // verify the required parameter 'workflow_email_id' is set
        if ($workflow_email_id === null || (is_array($workflow_email_id) && count($workflow_email_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_email_id when calling '
            );
        }
        // verify the required parameter 'subscriber_hash' is set
        if ($subscriber_hash === null || (is_array($subscriber_hash) && count($subscriber_hash) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $subscriber_hash when calling '
            );
        }

        $resourcePath = '/automations/{workflow_id}/emails/{workflow_email_id}/queue/{subscriber_hash}';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;

        // path params
        if ($workflow_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_id' . '}',
                ObjectSerializer::toPathValue($workflow_id),
                $resourcePath
            );
        }
        // path params
        if ($workflow_email_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_email_id' . '}',
                ObjectSerializer::toPathValue($workflow_email_id),
                $resourcePath
            );
        }
        // path params
        if ($subscriber_hash !== null) {
            $resourcePath = str_replace(
                '{' . 'subscriber_hash' . '}',
                ObjectSerializer::toPathValue($subscriber_hash),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'GET',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function listWorkflowEmailSubscribersRemoved($workflow_id)
    {
        $response = $this->listWorkflowEmailSubscribersRemovedWithHttpInfo($workflow_id);
        return $response;
    }

    public function listWorkflowEmailSubscribersRemovedWithHttpInfo($workflow_id)
    {
        $request = $this->listWorkflowEmailSubscribersRemovedRequest($workflow_id);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function listWorkflowEmailSubscribersRemovedRequest($workflow_id)
    {
        // verify the required parameter 'workflow_id' is set
        if ($workflow_id === null || (is_array($workflow_id) && count($workflow_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_id when calling '
            );
        }

        $resourcePath = '/automations/{workflow_id}/removed-subscribers';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;

        // path params
        if ($workflow_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_id' . '}',
                ObjectSerializer::toPathValue($workflow_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'GET',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function getRemovedWorkflowEmailSubscriber($workflow_id, $subscriber_hash)
    {
        $response = $this->getRemovedWorkflowEmailSubscriberWithHttpInfo($workflow_id, $subscriber_hash);
        return $response;
    }

    public function getRemovedWorkflowEmailSubscriberWithHttpInfo($workflow_id, $subscriber_hash)
    {
        $request = $this->getRemovedWorkflowEmailSubscriberRequest($workflow_id, $subscriber_hash);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function getRemovedWorkflowEmailSubscriberRequest($workflow_id, $subscriber_hash)
    {
        // verify the required parameter 'workflow_id' is set
        if ($workflow_id === null || (is_array($workflow_id) && count($workflow_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_id when calling '
            );
        }
        // verify the required parameter 'subscriber_hash' is set
        if ($subscriber_hash === null || (is_array($subscriber_hash) && count($subscriber_hash) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $subscriber_hash when calling '
            );
        }

        $resourcePath = '/automations/{workflow_id}/removed-subscribers/{subscriber_hash}';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;

        // path params
        if ($workflow_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_id' . '}',
                ObjectSerializer::toPathValue($workflow_id),
                $resourcePath
            );
        }
        // path params
        if ($subscriber_hash !== null) {
            $resourcePath = str_replace(
                '{' . 'subscriber_hash' . '}',
                ObjectSerializer::toPathValue($subscriber_hash),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'GET',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function updateWorkflowEmail($workflow_id, $workflow_email_id, $body)
    {
        $response = $this->updateWorkflowEmailWithHttpInfo($workflow_id, $workflow_email_id, $body);
        return $response;
    }

    public function updateWorkflowEmailWithHttpInfo($workflow_id, $workflow_email_id, $body)
    {
        $request = $this->updateWorkflowEmailRequest($workflow_id, $workflow_email_id, $body);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function updateWorkflowEmailRequest($workflow_id, $workflow_email_id, $body)
    {
        // verify the required parameter 'workflow_id' is set
        if ($workflow_id === null || (is_array($workflow_id) && count($workflow_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_id when calling '
            );
        }
        // verify the required parameter 'workflow_email_id' is set
        if ($workflow_email_id === null || (is_array($workflow_email_id) && count($workflow_email_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_email_id when calling '
            );
        }
        // verify the required parameter 'body' is set
        if ($body === null || (is_array($body) && count($body) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $body when calling '
            );
        }

        $resourcePath = '/automations/{workflow_id}/emails/{workflow_email_id}';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;

        // path params
        if ($workflow_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_id' . '}',
                ObjectSerializer::toPathValue($workflow_id),
                $resourcePath
            );
        }
        // path params
        if ($workflow_email_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_email_id' . '}',
                ObjectSerializer::toPathValue($workflow_email_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;
        if (isset($body)) {
            $_tempBody = $body;
        }

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'PATCH',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function create($body)
    {
        $response = $this->createWithHttpInfo($body);
        return $response;
    }

    public function createWithHttpInfo($body)
    {
        $request = $this->createRequest($body);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function createRequest($body)
    {
        // verify the required parameter 'body' is set
        if ($body === null || (is_array($body) && count($body) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $body when calling '
            );
        }

        $resourcePath = '/automations';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;


        // body params
        $_tempBody = null;
        if (isset($body)) {
            $_tempBody = $body;
        }

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'POST',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function pauseAllEmails($workflow_id)
    {
        $this->pauseAllEmailsWithHttpInfo($workflow_id);
    }

    public function pauseAllEmailsWithHttpInfo($workflow_id)
    {
        $request = $this->pauseAllEmailsRequest($workflow_id);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function pauseAllEmailsRequest($workflow_id)
    {
        // verify the required parameter 'workflow_id' is set
        if ($workflow_id === null || (is_array($workflow_id) && count($workflow_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_id when calling '
            );
        }

        $resourcePath = '/automations/{workflow_id}/actions/pause-all-emails';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;

        // path params
        if ($workflow_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_id' . '}',
                ObjectSerializer::toPathValue($workflow_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'POST',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function startAllEmails($workflow_id)
    {
        $this->startAllEmailsWithHttpInfo($workflow_id);
    }

    public function startAllEmailsWithHttpInfo($workflow_id)
    {
        $request = $this->startAllEmailsRequest($workflow_id);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function startAllEmailsRequest($workflow_id)
    {
        // verify the required parameter 'workflow_id' is set
        if ($workflow_id === null || (is_array($workflow_id) && count($workflow_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_id when calling '
            );
        }

        $resourcePath = '/automations/{workflow_id}/actions/start-all-emails';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;

        // path params
        if ($workflow_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_id' . '}',
                ObjectSerializer::toPathValue($workflow_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'POST',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function pauseWorkflowEmail($workflow_id, $workflow_email_id)
    {
        $this->pauseWorkflowEmailWithHttpInfo($workflow_id, $workflow_email_id);
    }

    public function pauseWorkflowEmailWithHttpInfo($workflow_id, $workflow_email_id)
    {
        $request = $this->pauseWorkflowEmailRequest($workflow_id, $workflow_email_id);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function pauseWorkflowEmailRequest($workflow_id, $workflow_email_id)
    {
        // verify the required parameter 'workflow_id' is set
        if ($workflow_id === null || (is_array($workflow_id) && count($workflow_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_id when calling '
            );
        }
        // verify the required parameter 'workflow_email_id' is set
        if ($workflow_email_id === null || (is_array($workflow_email_id) && count($workflow_email_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_email_id when calling '
            );
        }

        $resourcePath = '/automations/{workflow_id}/emails/{workflow_email_id}/actions/pause';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;

        // path params
        if ($workflow_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_id' . '}',
                ObjectSerializer::toPathValue($workflow_id),
                $resourcePath
            );
        }
        // path params
        if ($workflow_email_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_email_id' . '}',
                ObjectSerializer::toPathValue($workflow_email_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'POST',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function startWorkflowEmail($workflow_id, $workflow_email_id)
    {
        $this->startWorkflowEmailWithHttpInfo($workflow_id, $workflow_email_id);
    }

    public function startWorkflowEmailWithHttpInfo($workflow_id, $workflow_email_id)
    {
        $request = $this->startWorkflowEmailRequest($workflow_id, $workflow_email_id);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function startWorkflowEmailRequest($workflow_id, $workflow_email_id)
    {
        // verify the required parameter 'workflow_id' is set
        if ($workflow_id === null || (is_array($workflow_id) && count($workflow_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_id when calling '
            );
        }
        // verify the required parameter 'workflow_email_id' is set
        if ($workflow_email_id === null || (is_array($workflow_email_id) && count($workflow_email_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_email_id when calling '
            );
        }

        $resourcePath = '/automations/{workflow_id}/emails/{workflow_email_id}/actions/start';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;

        // path params
        if ($workflow_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_id' . '}',
                ObjectSerializer::toPathValue($workflow_id),
                $resourcePath
            );
        }
        // path params
        if ($workflow_email_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_email_id' . '}',
                ObjectSerializer::toPathValue($workflow_email_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'POST',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function addWorkflowEmailSubscriber($workflow_id, $workflow_email_id, $body)
    {
        $response = $this->addWorkflowEmailSubscriberWithHttpInfo($workflow_id, $workflow_email_id, $body);
        return $response;
    }

    public function addWorkflowEmailSubscriberWithHttpInfo($workflow_id, $workflow_email_id, $body)
    {
        $request = $this->addWorkflowEmailSubscriberRequest($workflow_id, $workflow_email_id, $body);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function addWorkflowEmailSubscriberRequest($workflow_id, $workflow_email_id, $body)
    {
        // verify the required parameter 'workflow_id' is set
        if ($workflow_id === null || (is_array($workflow_id) && count($workflow_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_id when calling '
            );
        }
        // verify the required parameter 'workflow_email_id' is set
        if ($workflow_email_id === null || (is_array($workflow_email_id) && count($workflow_email_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_email_id when calling '
            );
        }
        // verify the required parameter 'body' is set
        if ($body === null || (is_array($body) && count($body) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $body when calling '
            );
        }

        $resourcePath = '/automations/{workflow_id}/emails/{workflow_email_id}/queue';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;

        // path params
        if ($workflow_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_id' . '}',
                ObjectSerializer::toPathValue($workflow_id),
                $resourcePath
            );
        }
        // path params
        if ($workflow_email_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_email_id' . '}',
                ObjectSerializer::toPathValue($workflow_email_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;
        if (isset($body)) {
            $_tempBody = $body;
        }

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'POST',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function removeWorkflowEmailSubscriber($workflow_id, $body)
    {
        $response = $this->removeWorkflowEmailSubscriberWithHttpInfo($workflow_id, $body);
        return $response;
    }

    public function removeWorkflowEmailSubscriberWithHttpInfo($workflow_id, $body)
    {
        $request = $this->removeWorkflowEmailSubscriberRequest($workflow_id, $body);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function removeWorkflowEmailSubscriberRequest($workflow_id, $body)
    {
        // verify the required parameter 'workflow_id' is set
        if ($workflow_id === null || (is_array($workflow_id) && count($workflow_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $workflow_id when calling '
            );
        }
        // verify the required parameter 'body' is set
        if ($body === null || (is_array($body) && count($body) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $body when calling '
            );
        }

        $resourcePath = '/automations/{workflow_id}/removed-subscribers';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;

        // path params
        if ($workflow_id !== null) {
            $resourcePath = str_replace(
                '{' . 'workflow_id' . '}',
                ObjectSerializer::toPathValue($workflow_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;
        if (isset($body)) {
            $_tempBody = $body;
        }

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'POST',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    protected function createHttpClientOption()
    {
        $options = [];
        if ($this->config->getDebug()) {
            $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a');
            if (!$options[RequestOptions::DEBUG]) {
                throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile());
            }
        }

        if ($this->config->getTimeout()) {
            $options[RequestOptions::TIMEOUT] = $this->config->getTimeout();
        }

        return $options;
    }
}


================================================
FILE: lib/Api/BatchWebhooksApi.php
================================================
<?php

/**
 * BatchWebhooksApi
 * PHP version 5
 *
 * @category Class
 * @package  MailchimpMarketing
 * @author   Swagger Codegen team
 * @link     https://github.com/swagger-api/swagger-codegen
 */

/**
 * Mailchimp Marketing API
 *
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 3.0.80
 * Contact: apihelp@mailchimp.com
 * Generated by: https://github.com/swagger-api/swagger-codegen.git
 * Swagger Codegen version: 2.4.12
 */

/**
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen
 * Do not edit the class manually.
 */

namespace MailchimpMarketing\Api;

use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\MultipartStream;
use GuzzleHttp\Psr7\Query;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RequestOptions;
use MailchimpMarketing\ApiException;
use MailchimpMarketing\Configuration;
use MailchimpMarketing\HeaderSelector;
use MailchimpMarketing\ObjectSerializer;

class BatchWebhooksApi
{
    protected $client;
    protected $config;
    protected $headerSelector;

    public function __construct(Configuration $config = null)
    {
        $this->client = new Client([
            'defaults' => [
                'timeout' => 120.0
            ]
        ]);
        $this->headerSelector = new HeaderSelector();
        $this->config = $config ?: new Configuration();
    }

    public function getConfig()
    {
        return $this->config;
    }

    public function remove($batch_webhook_id)
    {
        $this->removeWithHttpInfo($batch_webhook_id);
    }

    public function removeWithHttpInfo($batch_webhook_id)
    {
        $request = $this->removeRequest($batch_webhook_id);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function removeRequest($batch_webhook_id)
    {
        // verify the required parameter 'batch_webhook_id' is set
        if ($batch_webhook_id === null || (is_array($batch_webhook_id) && count($batch_webhook_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $batch_webhook_id when calling '
            );
        }

        $resourcePath = '/batch-webhooks/{batch_webhook_id}';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;

        // path params
        if ($batch_webhook_id !== null) {
            $resourcePath = str_replace(
                '{' . 'batch_webhook_id' . '}',
                ObjectSerializer::toPathValue($batch_webhook_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'DELETE',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function get($batch_webhook_id, $fields = null, $exclude_fields = null)
    {
        $response = $this->getWithHttpInfo($batch_webhook_id, $fields, $exclude_fields);
        return $response;
    }

    public function getWithHttpInfo($batch_webhook_id, $fields = null, $exclude_fields = null)
    {
        $request = $this->getRequest($batch_webhook_id, $fields, $exclude_fields);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function getRequest($batch_webhook_id, $fields = null, $exclude_fields = null)
    {
        // verify the required parameter 'batch_webhook_id' is set
        if ($batch_webhook_id === null || (is_array($batch_webhook_id) && count($batch_webhook_id) === 0)) {
            throw new \InvalidArgumentException(
                'Missing the required parameter $batch_webhook_id when calling '
            );
        }

        $resourcePath = '/batch-webhooks/{batch_webhook_id}';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;
        // query params
        if (is_array($fields)) {
            $queryParams['fields'] = ObjectSerializer::serializeCollection($fields, 'csv');
        } else
        if ($fields !== null) {
            $queryParams['fields'] = ObjectSerializer::toQueryValue($fields);
        }
        // query params
        if (is_array($exclude_fields)) {
            $queryParams['exclude_fields'] = ObjectSerializer::serializeCollection($exclude_fields, 'csv');
        } else
        if ($exclude_fields !== null) {
            $queryParams['exclude_fields'] = ObjectSerializer::toQueryValue($exclude_fields);
        }

        // path params
        if ($batch_webhook_id !== null) {
            $resourcePath = str_replace(
                '{' . 'batch_webhook_id' . '}',
                ObjectSerializer::toPathValue($batch_webhook_id),
                $resourcePath
            );
        }

        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'GET',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function list($fields = null, $exclude_fields = null, $count = '10', $offset = '0')
    {
        $response = $this->listWithHttpInfo($fields, $exclude_fields, $count, $offset);
        return $response;
    }

    public function listWithHttpInfo($fields = null, $exclude_fields = null, $count = '10', $offset = '0')
    {
        $request = $this->listRequest($fields, $exclude_fields, $count, $offset);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
            } catch (RequestException $e) {
                throw $e;
            }

            $statusCode = $response->getStatusCode();

            if ($statusCode < 200 || $statusCode > 299) {
                throw new ApiException(
                    sprintf(
                        '[%d] Error connecting to the API (%s)',
                        $statusCode,
                        $request->getUri()
                    ),
                    $statusCode,
                    $response->getHeaders(),
                    $response->getBody()
                );
            }

            $responseBody = $response->getBody();
            $content = $responseBody->getContents();
            $content = json_decode($content);

            return $content;

        } catch (ApiException $e) {
            throw $e->getResponseBody();
        }
    }

    protected function listRequest($fields = null, $exclude_fields = null, $count = '10', $offset = '0')
    {
        if ($count !== null && $count > 1000) {
            throw new \InvalidArgumentException('invalid value for "$count" when calling BatchWebhooksApi., must be smaller than or equal to 1000.');
        }


        $resourcePath = '/batch-webhooks';
        $formParams = [];
        $queryParams = [];
        $headerParams = [];
        $httpBody = '';
        $multipart = false;
        // query params
        if (is_array($fields)) {
            $queryParams['fields'] = ObjectSerializer::serializeCollection($fields, 'csv');
        } else
        if ($fields !== null) {
            $queryParams['fields'] = ObjectSerializer::toQueryValue($fields);
        }
        // query params
        if (is_array($exclude_fields)) {
            $queryParams['exclude_fields'] = ObjectSerializer::serializeCollection($exclude_fields, 'csv');
        } else
        if ($exclude_fields !== null) {
            $queryParams['exclude_fields'] = ObjectSerializer::toQueryValue($exclude_fields);
        }
        // query params
        if ($count !== null) {
            $queryParams['count'] = ObjectSerializer::toQueryValue($count);
        }
        // query params
        if ($offset !== null) {
            $queryParams['offset'] = ObjectSerializer::toQueryValue($offset);
        }


        // body params
        $_tempBody = null;

        if ($multipart) {
            $headers = $this->headerSelector->selectHeadersForMultipart(
                ['application/json', 'application/problem+json']
            );
        } else {
            $headers = $this->headerSelector->selectHeaders(
                ['application/json', 'application/problem+json'],
                ['application/json']
            );
        }

        // for model (json/xml)
        if (isset($_tempBody)) {
            $httpBody = $_tempBody;

            if($headers['Content-Type'] === 'application/json') {
                if ($httpBody instanceof \stdClass) {
                    $httpBody = \GuzzleHttp\json_encode($httpBody);
                }
                if (is_array($httpBody)) {
                    $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
                }
            }
        } elseif (count($formParams) > 0) {
            if ($multipart) {
                $multipartContents = [];
                foreach ($formParams as $formParamName => $formParamValue) {
                    $multipartContents[] = [
                        'name' => $formParamName,
                        'contents' => $formParamValue
                    ];
                }
                $httpBody = new MultipartStream($multipartContents);

            } elseif ($headers['Content-Type'] === 'application/json') {
                $httpBody = \GuzzleHttp\json_encode($formParams);

            } else {
                $httpBody = Query::build($formParams);
            }
        }


        // Basic Authentication
        if (!empty($this->config->getUsername()) && !empty($this->config->getPassword())) {
            $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
        }

        // OAuth Authentication
        if (!empty($this->config->getAccessToken())) {
            $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
        }

        $defaultHeaders = [];
        if ($this->config->getUserAgent()) {
            $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
        }

        $headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = Query::build($queryParams);
        return new Request(
            'GET',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
    }

    public function update($batch_webhook_id, $body)
    {
        $response = $this->updateWithHttpInfo($batch_webhook_id, $body);
        return $response;
    }

    public function updateWithHttpInfo($batch_webhook_id, $body)
    {
        $request = $this->updateRequest($batch_webhook_id, $body);

        try {
            $options = $this->createHttpClientOption();
            try {
                $response = $this->client->send($request, $options);
  
Download .txt
gitextract_dj57h0oe/

├── .github/
│   └── PULL_REQUEST_TEMPLATE.md
├── .php_cs
├── .travis.yml
├── CHANGELOG.md
├── LICENSE
├── README.md
├── composer.json
├── git_push.sh
├── lib/
│   ├── Api/
│   │   ├── AccountExportApi.php
│   │   ├── AccountExportsApi.php
│   │   ├── ActivityFeedApi.php
│   │   ├── AuthorizedAppsApi.php
│   │   ├── AutomationsApi.php
│   │   ├── BatchWebhooksApi.php
│   │   ├── BatchesApi.php
│   │   ├── CampaignFoldersApi.php
│   │   ├── CampaignsApi.php
│   │   ├── ConnectedSitesApi.php
│   │   ├── ConversationsApi.php
│   │   ├── CustomerJourneysApi.php
│   │   ├── EcommerceApi.php
│   │   ├── FacebookAdsApi.php
│   │   ├── FileManagerApi.php
│   │   ├── LandingPagesApi.php
│   │   ├── ListsApi.php
│   │   ├── PingApi.php
│   │   ├── ReportingApi.php
│   │   ├── ReportsApi.php
│   │   ├── RootApi.php
│   │   ├── SearchCampaignsApi.php
│   │   ├── SearchMembersApi.php
│   │   ├── SurveysApi.php
│   │   ├── TemplateFoldersApi.php
│   │   ├── TemplatesApi.php
│   │   └── VerifiedDomainsApi.php
│   ├── ApiClient.php
│   ├── ApiException.php
│   ├── Configuration.php
│   ├── HeaderSelector.php
│   └── ObjectSerializer.php
└── phpunit.xml.dist
Download .txt
SYMBOL INDEX (969 symbols across 32 files)

FILE: lib/Api/AccountExportApi.php
  class AccountExportApi (line 44) | class AccountExportApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method getAccountExports (line 66) | public function getAccountExports($export_id, $fields = null, $exclude...
    method getAccountExportsWithHttpInfo (line 72) | public function getAccountExportsWithHttpInfo($export_id, $fields = nu...
    method getAccountExportsRequest (line 110) | protected function getAccountExportsRequest($export_id, $fields = null...
    method createHttpClientOption (line 225) | protected function createHttpClientOption()

FILE: lib/Api/AccountExportsApi.php
  class AccountExportsApi (line 44) | class AccountExportsApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method listAccountExports (line 66) | public function listAccountExports($fields = null, $exclude_fields = n...
    method listAccountExportsWithHttpInfo (line 72) | public function listAccountExportsWithHttpInfo($fields = null, $exclud...
    method listAccountExportsRequest (line 110) | protected function listAccountExportsRequest($fields = null, $exclude_...
    method createAccountExport (line 223) | public function createAccountExport($body)
    method createAccountExportWithHttpInfo (line 229) | public function createAccountExportWithHttpInfo($body)
    method createAccountExportRequest (line 267) | protected function createAccountExportRequest($body)
    method createHttpClientOption (line 363) | protected function createHttpClientOption()

FILE: lib/Api/ActivityFeedApi.php
  class ActivityFeedApi (line 44) | class ActivityFeedApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method getChimpChatter (line 66) | public function getChimpChatter($count = '10', $offset = '0')
    method getChimpChatterWithHttpInfo (line 72) | public function getChimpChatterWithHttpInfo($count = '10', $offset = '0')
    method getChimpChatterRequest (line 110) | protected function getChimpChatterRequest($count = '10', $offset = '0')
    method createHttpClientOption (line 209) | protected function createHttpClientOption()

FILE: lib/Api/AuthorizedAppsApi.php
  class AuthorizedAppsApi (line 44) | class AuthorizedAppsApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method list (line 66) | public function list($fields = null, $exclude_fields = null, $count = ...
    method listWithHttpInfo (line 72) | public function listWithHttpInfo($fields = null, $exclude_fields = nul...
    method listRequest (line 110) | protected function listRequest($fields = null, $exclude_fields = null,...
    method get (line 223) | public function get($app_id, $fields = null, $exclude_fields = null)
    method getWithHttpInfo (line 229) | public function getWithHttpInfo($app_id, $fields = null, $exclude_fiel...
    method getRequest (line 267) | protected function getRequest($app_id, $fields = null, $exclude_fields...
    method createHttpClientOption (line 382) | protected function createHttpClientOption()

FILE: lib/Api/AutomationsApi.php
  class AutomationsApi (line 44) | class AutomationsApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method archive (line 66) | public function archive($workflow_id)
    method archiveWithHttpInfo (line 71) | public function archiveWithHttpInfo($workflow_id)
    method archiveRequest (line 109) | protected function archiveRequest($workflow_id)
    method deleteWorkflowEmail (line 210) | public function deleteWorkflowEmail($workflow_id, $workflow_email_id)
    method deleteWorkflowEmailWithHttpInfo (line 215) | public function deleteWorkflowEmailWithHttpInfo($workflow_id, $workflo...
    method deleteWorkflowEmailRequest (line 253) | protected function deleteWorkflowEmailRequest($workflow_id, $workflow_...
    method list (line 368) | public function list($count = '10', $offset = '0', $fields = null, $ex...
    method listWithHttpInfo (line 374) | public function listWithHttpInfo($count = '10', $offset = '0', $fields...
    method listRequest (line 412) | protected function listRequest($count = '10', $offset = '0', $fields =...
    method get (line 545) | public function get($workflow_id, $fields = null, $exclude_fields = null)
    method getWithHttpInfo (line 551) | public function getWithHttpInfo($workflow_id, $fields = null, $exclude...
    method getRequest (line 589) | protected function getRequest($workflow_id, $fields = null, $exclude_f...
    method listAllWorkflowEmails (line 704) | public function listAllWorkflowEmails($workflow_id)
    method listAllWorkflowEmailsWithHttpInfo (line 710) | public function listAllWorkflowEmailsWithHttpInfo($workflow_id)
    method listAllWorkflowEmailsRequest (line 748) | protected function listAllWorkflowEmailsRequest($workflow_id)
    method getWorkflowEmail (line 849) | public function getWorkflowEmail($workflow_id, $workflow_email_id)
    method getWorkflowEmailWithHttpInfo (line 855) | public function getWorkflowEmailWithHttpInfo($workflow_id, $workflow_e...
    method getWorkflowEmailRequest (line 893) | protected function getWorkflowEmailRequest($workflow_id, $workflow_ema...
    method getWorkflowEmailSubscriberQueue (line 1008) | public function getWorkflowEmailSubscriberQueue($workflow_id, $workflo...
    method getWorkflowEmailSubscriberQueueWithHttpInfo (line 1014) | public function getWorkflowEmailSubscriberQueueWithHttpInfo($workflow_...
    method getWorkflowEmailSubscriberQueueRequest (line 1052) | protected function getWorkflowEmailSubscriberQueueRequest($workflow_id...
    method getWorkflowEmailSubscriber (line 1167) | public function getWorkflowEmailSubscriber($workflow_id, $workflow_ema...
    method getWorkflowEmailSubscriberWithHttpInfo (line 1173) | public function getWorkflowEmailSubscriberWithHttpInfo($workflow_id, $...
    method getWorkflowEmailSubscriberRequest (line 1211) | protected function getWorkflowEmailSubscriberRequest($workflow_id, $wo...
    method listWorkflowEmailSubscribersRemoved (line 1340) | public function listWorkflowEmailSubscribersRemoved($workflow_id)
    method listWorkflowEmailSubscribersRemovedWithHttpInfo (line 1346) | public function listWorkflowEmailSubscribersRemovedWithHttpInfo($workf...
    method listWorkflowEmailSubscribersRemovedRequest (line 1384) | protected function listWorkflowEmailSubscribersRemovedRequest($workflo...
    method getRemovedWorkflowEmailSubscriber (line 1485) | public function getRemovedWorkflowEmailSubscriber($workflow_id, $subsc...
    method getRemovedWorkflowEmailSubscriberWithHttpInfo (line 1491) | public function getRemovedWorkflowEmailSubscriberWithHttpInfo($workflo...
    method getRemovedWorkflowEmailSubscriberRequest (line 1529) | protected function getRemovedWorkflowEmailSubscriberRequest($workflow_...
    method updateWorkflowEmail (line 1644) | public function updateWorkflowEmail($workflow_id, $workflow_email_id, ...
    method updateWorkflowEmailWithHttpInfo (line 1650) | public function updateWorkflowEmailWithHttpInfo($workflow_id, $workflo...
    method updateWorkflowEmailRequest (line 1688) | protected function updateWorkflowEmailRequest($workflow_id, $workflow_...
    method create (line 1812) | public function create($body)
    method createWithHttpInfo (line 1818) | public function createWithHttpInfo($body)
    method createRequest (line 1856) | protected function createRequest($body)
    method pauseAllEmails (line 1952) | public function pauseAllEmails($workflow_id)
    method pauseAllEmailsWithHttpInfo (line 1957) | public function pauseAllEmailsWithHttpInfo($workflow_id)
    method pauseAllEmailsRequest (line 1995) | protected function pauseAllEmailsRequest($workflow_id)
    method startAllEmails (line 2096) | public function startAllEmails($workflow_id)
    method startAllEmailsWithHttpInfo (line 2101) | public function startAllEmailsWithHttpInfo($workflow_id)
    method startAllEmailsRequest (line 2139) | protected function startAllEmailsRequest($workflow_id)
    method pauseWorkflowEmail (line 2240) | public function pauseWorkflowEmail($workflow_id, $workflow_email_id)
    method pauseWorkflowEmailWithHttpInfo (line 2245) | public function pauseWorkflowEmailWithHttpInfo($workflow_id, $workflow...
    method pauseWorkflowEmailRequest (line 2283) | protected function pauseWorkflowEmailRequest($workflow_id, $workflow_e...
    method startWorkflowEmail (line 2398) | public function startWorkflowEmail($workflow_id, $workflow_email_id)
    method startWorkflowEmailWithHttpInfo (line 2403) | public function startWorkflowEmailWithHttpInfo($workflow_id, $workflow...
    method startWorkflowEmailRequest (line 2441) | protected function startWorkflowEmailRequest($workflow_id, $workflow_e...
    method addWorkflowEmailSubscriber (line 2556) | public function addWorkflowEmailSubscriber($workflow_id, $workflow_ema...
    method addWorkflowEmailSubscriberWithHttpInfo (line 2562) | public function addWorkflowEmailSubscriberWithHttpInfo($workflow_id, $...
    method addWorkflowEmailSubscriberRequest (line 2600) | protected function addWorkflowEmailSubscriberRequest($workflow_id, $wo...
    method removeWorkflowEmailSubscriber (line 2724) | public function removeWorkflowEmailSubscriber($workflow_id, $body)
    method removeWorkflowEmailSubscriberWithHttpInfo (line 2730) | public function removeWorkflowEmailSubscriberWithHttpInfo($workflow_id...
    method removeWorkflowEmailSubscriberRequest (line 2768) | protected function removeWorkflowEmailSubscriberRequest($workflow_id, ...
    method createHttpClientOption (line 2878) | protected function createHttpClientOption()

FILE: lib/Api/BatchWebhooksApi.php
  class BatchWebhooksApi (line 44) | class BatchWebhooksApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method remove (line 66) | public function remove($batch_webhook_id)
    method removeWithHttpInfo (line 71) | public function removeWithHttpInfo($batch_webhook_id)
    method removeRequest (line 109) | protected function removeRequest($batch_webhook_id)
    method get (line 210) | public function get($batch_webhook_id, $fields = null, $exclude_fields...
    method getWithHttpInfo (line 216) | public function getWithHttpInfo($batch_webhook_id, $fields = null, $ex...
    method getRequest (line 254) | protected function getRequest($batch_webhook_id, $fields = null, $excl...
    method list (line 369) | public function list($fields = null, $exclude_fields = null, $count = ...
    method listWithHttpInfo (line 375) | public function listWithHttpInfo($fields = null, $exclude_fields = nul...
    method listRequest (line 413) | protected function listRequest($fields = null, $exclude_fields = null,...
    method update (line 526) | public function update($batch_webhook_id, $body)
    method updateWithHttpInfo (line 532) | public function updateWithHttpInfo($batch_webhook_id, $body)
    method updateRequest (line 570) | protected function updateRequest($batch_webhook_id, $body)
    method create (line 680) | public function create($body)
    method createWithHttpInfo (line 686) | public function createWithHttpInfo($body)
    method createRequest (line 724) | protected function createRequest($body)
    method createHttpClientOption (line 820) | protected function createHttpClientOption()

FILE: lib/Api/BatchesApi.php
  class BatchesApi (line 44) | class BatchesApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method deleteRequest (line 66) | public function deleteRequest($batch_id)
    method deleteRequestWithHttpInfo (line 71) | public function deleteRequestWithHttpInfo($batch_id)
    method deleteRequestRequest (line 109) | protected function deleteRequestRequest($batch_id)
    method list (line 210) | public function list($fields = null, $exclude_fields = null, $count = ...
    method listWithHttpInfo (line 216) | public function listWithHttpInfo($fields = null, $exclude_fields = nul...
    method listRequest (line 254) | protected function listRequest($fields = null, $exclude_fields = null,...
    method status (line 367) | public function status($batch_id, $fields = null, $exclude_fields = null)
    method statusWithHttpInfo (line 373) | public function statusWithHttpInfo($batch_id, $fields = null, $exclude...
    method statusRequest (line 411) | protected function statusRequest($batch_id, $fields = null, $exclude_f...
    method start (line 526) | public function start($body)
    method startWithHttpInfo (line 532) | public function startWithHttpInfo($body)
    method startRequest (line 570) | protected function startRequest($body)
    method createHttpClientOption (line 666) | protected function createHttpClientOption()

FILE: lib/Api/CampaignFoldersApi.php
  class CampaignFoldersApi (line 44) | class CampaignFoldersApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method remove (line 66) | public function remove($folder_id)
    method removeWithHttpInfo (line 71) | public function removeWithHttpInfo($folder_id)
    method removeRequest (line 109) | protected function removeRequest($folder_id)
    method list (line 210) | public function list($fields = null, $exclude_fields = null, $count = ...
    method listWithHttpInfo (line 216) | public function listWithHttpInfo($fields = null, $exclude_fields = nul...
    method listRequest (line 254) | protected function listRequest($fields = null, $exclude_fields = null,...
    method get (line 367) | public function get($folder_id, $fields = null, $exclude_fields = null)
    method getWithHttpInfo (line 373) | public function getWithHttpInfo($folder_id, $fields = null, $exclude_f...
    method getRequest (line 411) | protected function getRequest($folder_id, $fields = null, $exclude_fie...
    method update (line 526) | public function update($folder_id, $body)
    method updateWithHttpInfo (line 532) | public function updateWithHttpInfo($folder_id, $body)
    method updateRequest (line 570) | protected function updateRequest($folder_id, $body)
    method create (line 680) | public function create($body)
    method createWithHttpInfo (line 686) | public function createWithHttpInfo($body)
    method createRequest (line 724) | protected function createRequest($body)
    method createHttpClientOption (line 820) | protected function createHttpClientOption()

FILE: lib/Api/CampaignsApi.php
  class CampaignsApi (line 44) | class CampaignsApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method remove (line 66) | public function remove($campaign_id)
    method removeWithHttpInfo (line 71) | public function removeWithHttpInfo($campaign_id)
    method removeRequest (line 109) | protected function removeRequest($campaign_id)
    method deleteFeedbackMessage (line 210) | public function deleteFeedbackMessage($campaign_id, $feedback_id)
    method deleteFeedbackMessageWithHttpInfo (line 215) | public function deleteFeedbackMessageWithHttpInfo($campaign_id, $feedb...
    method deleteFeedbackMessageRequest (line 253) | protected function deleteFeedbackMessageRequest($campaign_id, $feedbac...
    method list (line 368) | public function list($fields = null, $exclude_fields = null, $count = ...
    method listWithHttpInfo (line 374) | public function listWithHttpInfo($fields = null, $exclude_fields = nul...
    method listRequest (line 412) | protected function listRequest($fields = null, $exclude_fields = null,...
    method get (line 569) | public function get($campaign_id, $fields = null, $exclude_fields = null)
    method getWithHttpInfo (line 575) | public function getWithHttpInfo($campaign_id, $fields = null, $exclude...
    method getRequest (line 613) | protected function getRequest($campaign_id, $fields = null, $exclude_f...
    method getContent (line 728) | public function getContent($campaign_id, $fields = null, $exclude_fiel...
    method getContentWithHttpInfo (line 734) | public function getContentWithHttpInfo($campaign_id, $fields = null, $...
    method getContentRequest (line 772) | protected function getContentRequest($campaign_id, $fields = null, $ex...
    method getFeedback (line 887) | public function getFeedback($campaign_id, $fields = null, $exclude_fie...
    method getFeedbackWithHttpInfo (line 893) | public function getFeedbackWithHttpInfo($campaign_id, $fields = null, ...
    method getFeedbackRequest (line 931) | protected function getFeedbackRequest($campaign_id, $fields = null, $e...
    method getFeedbackMessage (line 1046) | public function getFeedbackMessage($campaign_id, $feedback_id, $fields...
    method getFeedbackMessageWithHttpInfo (line 1052) | public function getFeedbackMessageWithHttpInfo($campaign_id, $feedback...
    method getFeedbackMessageRequest (line 1090) | protected function getFeedbackMessageRequest($campaign_id, $feedback_i...
    method getSendChecklist (line 1219) | public function getSendChecklist($campaign_id, $fields = null, $exclud...
    method getSendChecklistWithHttpInfo (line 1225) | public function getSendChecklistWithHttpInfo($campaign_id, $fields = n...
    method getSendChecklistRequest (line 1263) | protected function getSendChecklistRequest($campaign_id, $fields = nul...
    method update (line 1378) | public function update($campaign_id, $body)
    method updateWithHttpInfo (line 1384) | public function updateWithHttpInfo($campaign_id, $body)
    method updateRequest (line 1422) | protected function updateRequest($campaign_id, $body)
    method updateFeedbackMessage (line 1532) | public function updateFeedbackMessage($campaign_id, $feedback_id, $body)
    method updateFeedbackMessageWithHttpInfo (line 1538) | public function updateFeedbackMessageWithHttpInfo($campaign_id, $feedb...
    method updateFeedbackMessageRequest (line 1576) | protected function updateFeedbackMessageRequest($campaign_id, $feedbac...
    method create (line 1700) | public function create($body)
    method createWithHttpInfo (line 1706) | public function createWithHttpInfo($body)
    method createRequest (line 1744) | protected function createRequest($body)
    method cancelSend (line 1840) | public function cancelSend($campaign_id)
    method cancelSendWithHttpInfo (line 1845) | public function cancelSendWithHttpInfo($campaign_id)
    method cancelSendRequest (line 1883) | protected function cancelSendRequest($campaign_id)
    method createResend (line 1984) | public function createResend($campaign_id)
    method createResendWithHttpInfo (line 1990) | public function createResendWithHttpInfo($campaign_id)
    method createResendRequest (line 2028) | protected function createResendRequest($campaign_id)
    method pause (line 2129) | public function pause($campaign_id)
    method pauseWithHttpInfo (line 2134) | public function pauseWithHttpInfo($campaign_id)
    method pauseRequest (line 2172) | protected function pauseRequest($campaign_id)
    method replicate (line 2273) | public function replicate($campaign_id)
    method replicateWithHttpInfo (line 2279) | public function replicateWithHttpInfo($campaign_id)
    method replicateRequest (line 2317) | protected function replicateRequest($campaign_id)
    method resume (line 2418) | public function resume($campaign_id)
    method resumeWithHttpInfo (line 2423) | public function resumeWithHttpInfo($campaign_id)
    method resumeRequest (line 2461) | protected function resumeRequest($campaign_id)
    method schedule (line 2562) | public function schedule($campaign_id, $body)
    method scheduleWithHttpInfo (line 2567) | public function scheduleWithHttpInfo($campaign_id, $body)
    method scheduleRequest (line 2605) | protected function scheduleRequest($campaign_id, $body)
    method send (line 2715) | public function send($campaign_id)
    method sendWithHttpInfo (line 2720) | public function sendWithHttpInfo($campaign_id)
    method sendRequest (line 2758) | protected function sendRequest($campaign_id)
    method sendTestEmail (line 2859) | public function sendTestEmail($campaign_id, $body)
    method sendTestEmailWithHttpInfo (line 2864) | public function sendTestEmailWithHttpInfo($campaign_id, $body)
    method sendTestEmailRequest (line 2902) | protected function sendTestEmailRequest($campaign_id, $body)
    method unschedule (line 3012) | public function unschedule($campaign_id)
    method unscheduleWithHttpInfo (line 3017) | public function unscheduleWithHttpInfo($campaign_id)
    method unscheduleRequest (line 3055) | protected function unscheduleRequest($campaign_id)
    method addFeedback (line 3156) | public function addFeedback($campaign_id, $body)
    method addFeedbackWithHttpInfo (line 3162) | public function addFeedbackWithHttpInfo($campaign_id, $body)
    method addFeedbackRequest (line 3200) | protected function addFeedbackRequest($campaign_id, $body)
    method setContent (line 3310) | public function setContent($campaign_id, $body)
    method setContentWithHttpInfo (line 3316) | public function setContentWithHttpInfo($campaign_id, $body)
    method setContentRequest (line 3354) | protected function setContentRequest($campaign_id, $body)
    method createHttpClientOption (line 3464) | protected function createHttpClientOption()

FILE: lib/Api/ConnectedSitesApi.php
  class ConnectedSitesApi (line 44) | class ConnectedSitesApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method remove (line 66) | public function remove($connected_site_id)
    method removeWithHttpInfo (line 71) | public function removeWithHttpInfo($connected_site_id)
    method removeRequest (line 109) | protected function removeRequest($connected_site_id)
    method list (line 210) | public function list($fields = null, $exclude_fields = null, $count = ...
    method listWithHttpInfo (line 216) | public function listWithHttpInfo($fields = null, $exclude_fields = nul...
    method listRequest (line 254) | protected function listRequest($fields = null, $exclude_fields = null,...
    method get (line 367) | public function get($connected_site_id, $fields = null, $exclude_field...
    method getWithHttpInfo (line 373) | public function getWithHttpInfo($connected_site_id, $fields = null, $e...
    method getRequest (line 411) | protected function getRequest($connected_site_id, $fields = null, $exc...
    method create (line 526) | public function create($body)
    method createWithHttpInfo (line 532) | public function createWithHttpInfo($body)
    method createRequest (line 570) | protected function createRequest($body)
    method verifyScriptInstallation (line 666) | public function verifyScriptInstallation($connected_site_id)
    method verifyScriptInstallationWithHttpInfo (line 671) | public function verifyScriptInstallationWithHttpInfo($connected_site_id)
    method verifyScriptInstallationRequest (line 709) | protected function verifyScriptInstallationRequest($connected_site_id)
    method createHttpClientOption (line 810) | protected function createHttpClientOption()

FILE: lib/Api/ConversationsApi.php
  class ConversationsApi (line 44) | class ConversationsApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method list (line 66) | public function list($fields = null, $exclude_fields = null, $count = ...
    method listWithHttpInfo (line 72) | public function listWithHttpInfo($fields = null, $exclude_fields = nul...
    method listRequest (line 110) | protected function listRequest($fields = null, $exclude_fields = null,...
    method get (line 235) | public function get($conversation_id, $fields = null, $exclude_fields ...
    method getWithHttpInfo (line 241) | public function getWithHttpInfo($conversation_id, $fields = null, $exc...
    method getRequest (line 279) | protected function getRequest($conversation_id, $fields = null, $exclu...
    method getConversationMessages (line 394) | public function getConversationMessages($conversation_id, $fields = nu...
    method getConversationMessagesWithHttpInfo (line 400) | public function getConversationMessagesWithHttpInfo($conversation_id, ...
    method getConversationMessagesRequest (line 438) | protected function getConversationMessagesRequest($conversation_id, $f...
    method getConversationMessage (line 565) | public function getConversationMessage($conversation_id, $message_id, ...
    method getConversationMessageWithHttpInfo (line 571) | public function getConversationMessageWithHttpInfo($conversation_id, $...
    method getConversationMessageRequest (line 609) | protected function getConversationMessageRequest($conversation_id, $me...
    method createHttpClientOption (line 738) | protected function createHttpClientOption()

FILE: lib/Api/CustomerJourneysApi.php
  class CustomerJourneysApi (line 44) | class CustomerJourneysApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method trigger (line 66) | public function trigger($journey_id, $step_id, $body)
    method triggerWithHttpInfo (line 72) | public function triggerWithHttpInfo($journey_id, $step_id, $body)
    method triggerRequest (line 110) | protected function triggerRequest($journey_id, $step_id, $body)
    method createHttpClientOption (line 234) | protected function createHttpClientOption()

FILE: lib/Api/EcommerceApi.php
  class EcommerceApi (line 44) | class EcommerceApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method deleteStore (line 66) | public function deleteStore($store_id)
    method deleteStoreWithHttpInfo (line 72) | public function deleteStoreWithHttpInfo($store_id)
    method deleteStoreRequest (line 110) | protected function deleteStoreRequest($store_id)
    method deleteStoreCart (line 211) | public function deleteStoreCart($store_id, $cart_id)
    method deleteStoreCartWithHttpInfo (line 216) | public function deleteStoreCartWithHttpInfo($store_id, $cart_id)
    method deleteStoreCartRequest (line 254) | protected function deleteStoreCartRequest($store_id, $cart_id)
    method deleteCartLineItem (line 369) | public function deleteCartLineItem($store_id, $cart_id, $line_id)
    method deleteCartLineItemWithHttpInfo (line 374) | public function deleteCartLineItemWithHttpInfo($store_id, $cart_id, $l...
    method deleteCartLineItemRequest (line 412) | protected function deleteCartLineItemRequest($store_id, $cart_id, $lin...
    method deleteStoreCustomer (line 541) | public function deleteStoreCustomer($store_id, $customer_id)
    method deleteStoreCustomerWithHttpInfo (line 546) | public function deleteStoreCustomerWithHttpInfo($store_id, $customer_id)
    method deleteStoreCustomerRequest (line 584) | protected function deleteStoreCustomerRequest($store_id, $customer_id)
    method deleteOrder (line 699) | public function deleteOrder($store_id, $order_id)
    method deleteOrderWithHttpInfo (line 704) | public function deleteOrderWithHttpInfo($store_id, $order_id)
    method deleteOrderRequest (line 742) | protected function deleteOrderRequest($store_id, $order_id)
    method deleteOrderLineItem (line 857) | public function deleteOrderLineItem($store_id, $order_id, $line_id)
    method deleteOrderLineItemWithHttpInfo (line 862) | public function deleteOrderLineItemWithHttpInfo($store_id, $order_id, ...
    method deleteOrderLineItemRequest (line 900) | protected function deleteOrderLineItemRequest($store_id, $order_id, $l...
    method deleteStoreProduct (line 1029) | public function deleteStoreProduct($store_id, $product_id)
    method deleteStoreProductWithHttpInfo (line 1034) | public function deleteStoreProductWithHttpInfo($store_id, $product_id)
    method deleteStoreProductRequest (line 1072) | protected function deleteStoreProductRequest($store_id, $product_id)
    method deleteProductImage (line 1187) | public function deleteProductImage($store_id, $product_id, $image_id)
    method deleteProductImageWithHttpInfo (line 1192) | public function deleteProductImageWithHttpInfo($store_id, $product_id,...
    method deleteProductImageRequest (line 1230) | protected function deleteProductImageRequest($store_id, $product_id, $...
    method deleteProductVariant (line 1359) | public function deleteProductVariant($store_id, $product_id, $variant_id)
    method deleteProductVariantWithHttpInfo (line 1364) | public function deleteProductVariantWithHttpInfo($store_id, $product_i...
    method deleteProductVariantRequest (line 1402) | protected function deleteProductVariantRequest($store_id, $product_id,...
    method deletePromoCode (line 1531) | public function deletePromoCode($store_id, $promo_rule_id, $promo_code...
    method deletePromoCodeWithHttpInfo (line 1536) | public function deletePromoCodeWithHttpInfo($store_id, $promo_rule_id,...
    method deletePromoCodeRequest (line 1574) | protected function deletePromoCodeRequest($store_id, $promo_rule_id, $...
    method deletePromoRule (line 1703) | public function deletePromoRule($store_id, $promo_rule_id)
    method deletePromoRuleWithHttpInfo (line 1708) | public function deletePromoRuleWithHttpInfo($store_id, $promo_rule_id)
    method deletePromoRuleRequest (line 1746) | protected function deletePromoRuleRequest($store_id, $promo_rule_id)
    method orders (line 1861) | public function orders($fields = null, $exclude_fields = null, $count ...
    method ordersWithHttpInfo (line 1867) | public function ordersWithHttpInfo($fields = null, $exclude_fields = n...
    method ordersRequest (line 1905) | protected function ordersRequest($fields = null, $exclude_fields = nul...
    method stores (line 2034) | public function stores($fields = null, $exclude_fields = null, $count ...
    method storesWithHttpInfo (line 2040) | public function storesWithHttpInfo($fields = null, $exclude_fields = n...
    method storesRequest (line 2078) | protected function storesRequest($fields = null, $exclude_fields = nul...
    method getStore (line 2191) | public function getStore($store_id, $fields = null, $exclude_fields = ...
    method getStoreWithHttpInfo (line 2197) | public function getStoreWithHttpInfo($store_id, $fields = null, $exclu...
    method getStoreRequest (line 2235) | protected function getStoreRequest($store_id, $fields = null, $exclude...
    method getStoreCarts (line 2350) | public function getStoreCarts($store_id, $fields = null, $exclude_fiel...
    method getStoreCartsWithHttpInfo (line 2356) | public function getStoreCartsWithHttpInfo($store_id, $fields = null, $...
    method getStoreCartsRequest (line 2394) | protected function getStoreCartsRequest($store_id, $fields = null, $ex...
    method getStoreCart (line 2521) | public function getStoreCart($store_id, $cart_id, $fields = null, $exc...
    method getStoreCartWithHttpInfo (line 2527) | public function getStoreCartWithHttpInfo($store_id, $cart_id, $fields ...
    method getStoreCartRequest (line 2565) | protected function getStoreCartRequest($store_id, $cart_id, $fields = ...
    method getAllCartLineItems (line 2694) | public function getAllCartLineItems($store_id, $cart_id, $fields = nul...
    method getAllCartLineItemsWithHttpInfo (line 2700) | public function getAllCartLineItemsWithHttpInfo($store_id, $cart_id, $...
    method getAllCartLineItemsRequest (line 2738) | protected function getAllCartLineItemsRequest($store_id, $cart_id, $fi...
    method getCartLineItem (line 2879) | public function getCartLineItem($store_id, $cart_id, $line_id, $fields...
    method getCartLineItemWithHttpInfo (line 2885) | public function getCartLineItemWithHttpInfo($store_id, $cart_id, $line...
    method getCartLineItemRequest (line 2923) | protected function getCartLineItemRequest($store_id, $cart_id, $line_i...
    method getAllStoreCustomers (line 3066) | public function getAllStoreCustomers($store_id, $fields = null, $exclu...
    method getAllStoreCustomersWithHttpInfo (line 3072) | public function getAllStoreCustomersWithHttpInfo($store_id, $fields = ...
    method getAllStoreCustomersRequest (line 3110) | protected function getAllStoreCustomersRequest($store_id, $fields = nu...
    method getStoreCustomer (line 3241) | public function getStoreCustomer($store_id, $customer_id, $fields = nu...
    method getStoreCustomerWithHttpInfo (line 3247) | public function getStoreCustomerWithHttpInfo($store_id, $customer_id, ...
    method getStoreCustomerRequest (line 3285) | protected function getStoreCustomerRequest($store_id, $customer_id, $f...
    method getStoreOrders (line 3414) | public function getStoreOrders($store_id, $fields = null, $exclude_fie...
    method getStoreOrdersWithHttpInfo (line 3420) | public function getStoreOrdersWithHttpInfo($store_id, $fields = null, ...
    method getStoreOrdersRequest (line 3458) | protected function getStoreOrdersRequest($store_id, $fields = null, $e...
    method getOrder (line 3601) | public function getOrder($store_id, $order_id, $fields = null, $exclud...
    method getOrderWithHttpInfo (line 3607) | public function getOrderWithHttpInfo($store_id, $order_id, $fields = n...
    method getOrderRequest (line 3645) | protected function getOrderRequest($store_id, $order_id, $fields = nul...
    method getAllOrderLineItems (line 3774) | public function getAllOrderLineItems($store_id, $order_id, $fields = n...
    method getAllOrderLineItemsWithHttpInfo (line 3780) | public function getAllOrderLineItemsWithHttpInfo($store_id, $order_id,...
    method getAllOrderLineItemsRequest (line 3818) | protected function getAllOrderLineItemsRequest($store_id, $order_id, $...
    method getOrderLineItem (line 3959) | public function getOrderLineItem($store_id, $order_id, $line_id, $fiel...
    method getOrderLineItemWithHttpInfo (line 3965) | public function getOrderLineItemWithHttpInfo($store_id, $order_id, $li...
    method getOrderLineItemRequest (line 4003) | protected function getOrderLineItemRequest($store_id, $order_id, $line...
    method getAllStoreProducts (line 4146) | public function getAllStoreProducts($store_id, $fields = null, $exclud...
    method getAllStoreProductsWithHttpInfo (line 4152) | public function getAllStoreProductsWithHttpInfo($store_id, $fields = n...
    method getAllStoreProductsRequest (line 4190) | protected function getAllStoreProductsRequest($store_id, $fields = nul...
    method getStoreProduct (line 4317) | public function getStoreProduct($store_id, $product_id, $fields = null...
    method getStoreProductWithHttpInfo (line 4323) | public function getStoreProductWithHttpInfo($store_id, $product_id, $f...
    method getStoreProductRequest (line 4361) | protected function getStoreProductRequest($store_id, $product_id, $fie...
    method getProductImages (line 4490) | public function getProductImages($store_id, $product_id, $fields = nul...
    method getProductImagesWithHttpInfo (line 4496) | public function getProductImagesWithHttpInfo($store_id, $product_id, $...
    method getProductImagesRequest (line 4534) | protected function getProductImagesRequest($store_id, $product_id, $fi...
    method getProductImage (line 4675) | public function getProductImage($store_id, $product_id, $image_id, $fi...
    method getProductImageWithHttpInfo (line 4681) | public function getProductImageWithHttpInfo($store_id, $product_id, $i...
    method getProductImageRequest (line 4719) | protected function getProductImageRequest($store_id, $product_id, $ima...
    method getProductVariants (line 4862) | public function getProductVariants($store_id, $product_id, $fields = n...
    method getProductVariantsWithHttpInfo (line 4868) | public function getProductVariantsWithHttpInfo($store_id, $product_id,...
    method getProductVariantsRequest (line 4906) | protected function getProductVariantsRequest($store_id, $product_id, $...
    method getProductVariant (line 5047) | public function getProductVariant($store_id, $product_id, $variant_id,...
    method getProductVariantWithHttpInfo (line 5053) | public function getProductVariantWithHttpInfo($store_id, $product_id, ...
    method getProductVariantRequest (line 5091) | protected function getProductVariantRequest($store_id, $product_id, $v...
    method getPromoCodes (line 5234) | public function getPromoCodes($promo_rule_id, $store_id, $fields = nul...
    method getPromoCodesWithHttpInfo (line 5240) | public function getPromoCodesWithHttpInfo($promo_rule_id, $store_id, $...
    method getPromoCodesRequest (line 5278) | protected function getPromoCodesRequest($promo_rule_id, $store_id, $fi...
    method getPromoCode (line 5419) | public function getPromoCode($store_id, $promo_rule_id, $promo_code_id...
    method getPromoCodeWithHttpInfo (line 5425) | public function getPromoCodeWithHttpInfo($store_id, $promo_rule_id, $p...
    method getPromoCodeRequest (line 5463) | protected function getPromoCodeRequest($store_id, $promo_rule_id, $pro...
    method listPromoRules (line 5606) | public function listPromoRules($store_id, $fields = null, $exclude_fie...
    method listPromoRulesWithHttpInfo (line 5612) | public function listPromoRulesWithHttpInfo($store_id, $fields = null, ...
    method listPromoRulesRequest (line 5650) | protected function listPromoRulesRequest($store_id, $fields = null, $e...
    method getPromoRule (line 5777) | public function getPromoRule($store_id, $promo_rule_id, $fields = null...
    method getPromoRuleWithHttpInfo (line 5783) | public function getPromoRuleWithHttpInfo($store_id, $promo_rule_id, $f...
    method getPromoRuleRequest (line 5821) | protected function getPromoRuleRequest($store_id, $promo_rule_id, $fie...
    method updateStore (line 5950) | public function updateStore($store_id, $body)
    method updateStoreWithHttpInfo (line 5956) | public function updateStoreWithHttpInfo($store_id, $body)
    method updateStoreRequest (line 5994) | protected function updateStoreRequest($store_id, $body)
    method updateStoreCart (line 6104) | public function updateStoreCart($store_id, $cart_id, $body)
    method updateStoreCartWithHttpInfo (line 6110) | public function updateStoreCartWithHttpInfo($store_id, $cart_id, $body)
    method updateStoreCartRequest (line 6148) | protected function updateStoreCartRequest($store_id, $cart_id, $body)
    method updateCartLineItem (line 6272) | public function updateCartLineItem($store_id, $cart_id, $line_id, $body)
    method updateCartLineItemWithHttpInfo (line 6278) | public function updateCartLineItemWithHttpInfo($store_id, $cart_id, $l...
    method updateCartLineItemRequest (line 6316) | protected function updateCartLineItemRequest($store_id, $cart_id, $lin...
    method updateStoreCustomer (line 6454) | public function updateStoreCustomer($store_id, $customer_id, $body)
    method updateStoreCustomerWithHttpInfo (line 6460) | public function updateStoreCustomerWithHttpInfo($store_id, $customer_i...
    method updateStoreCustomerRequest (line 6498) | protected function updateStoreCustomerRequest($store_id, $customer_id,...
    method updateOrder (line 6622) | public function updateOrder($store_id, $order_id, $body)
    method updateOrderWithHttpInfo (line 6628) | public function updateOrderWithHttpInfo($store_id, $order_id, $body)
    method updateOrderRequest (line 6666) | protected function updateOrderRequest($store_id, $order_id, $body)
    method updateOrderLineItem (line 6790) | public function updateOrderLineItem($store_id, $order_id, $line_id, $b...
    method updateOrderLineItemWithHttpInfo (line 6796) | public function updateOrderLineItemWithHttpInfo($store_id, $order_id, ...
    method updateOrderLineItemRequest (line 6834) | protected function updateOrderLineItemRequest($store_id, $order_id, $l...
    method updateStoreProduct (line 6972) | public function updateStoreProduct($store_id, $product_id, $body)
    method updateStoreProductWithHttpInfo (line 6978) | public function updateStoreProductWithHttpInfo($store_id, $product_id,...
    method updateStoreProductRequest (line 7016) | protected function updateStoreProductRequest($store_id, $product_id, $...
    method updateProductImage (line 7140) | public function updateProductImage($store_id, $product_id, $image_id, ...
    method updateProductImageWithHttpInfo (line 7146) | public function updateProductImageWithHttpInfo($store_id, $product_id,...
    method updateProductImageRequest (line 7184) | protected function updateProductImageRequest($store_id, $product_id, $...
    method updateProductVariant (line 7322) | public function updateProductVariant($store_id, $product_id, $variant_...
    method updateProductVariantWithHttpInfo (line 7328) | public function updateProductVariantWithHttpInfo($store_id, $product_i...
    method updateProductVariantRequest (line 7366) | protected function updateProductVariantRequest($store_id, $product_id,...
    method updatePromoCode (line 7504) | public function updatePromoCode($store_id, $promo_rule_id, $promo_code...
    method updatePromoCodeWithHttpInfo (line 7510) | public function updatePromoCodeWithHttpInfo($store_id, $promo_rule_id,...
    method updatePromoCodeRequest (line 7548) | protected function updatePromoCodeRequest($store_id, $promo_rule_id, $...
    method updatePromoRule (line 7686) | public function updatePromoRule($store_id, $promo_rule_id, $body)
    method updatePromoRuleWithHttpInfo (line 7692) | public function updatePromoRuleWithHttpInfo($store_id, $promo_rule_id,...
    method updatePromoRuleRequest (line 7730) | protected function updatePromoRuleRequest($store_id, $promo_rule_id, $...
    method addStore (line 7854) | public function addStore($body)
    method addStoreWithHttpInfo (line 7860) | public function addStoreWithHttpInfo($body)
    method addStoreRequest (line 7898) | protected function addStoreRequest($body)
    method addStoreCart (line 7994) | public function addStoreCart($store_id, $body)
    method addStoreCartWithHttpInfo (line 8000) | public function addStoreCartWithHttpInfo($store_id, $body)
    method addStoreCartRequest (line 8038) | protected function addStoreCartRequest($store_id, $body)
    method addCartLineItem (line 8148) | public function addCartLineItem($store_id, $cart_id, $body)
    method addCartLineItemWithHttpInfo (line 8154) | public function addCartLineItemWithHttpInfo($store_id, $cart_id, $body)
    method addCartLineItemRequest (line 8192) | protected function addCartLineItemRequest($store_id, $cart_id, $body)
    method addStoreCustomer (line 8316) | public function addStoreCustomer($store_id, $body)
    method addStoreCustomerWithHttpInfo (line 8322) | public function addStoreCustomerWithHttpInfo($store_id, $body)
    method addStoreCustomerRequest (line 8360) | protected function addStoreCustomerRequest($store_id, $body)
    method addStoreOrder (line 8470) | public function addStoreOrder($store_id, $body)
    method addStoreOrderWithHttpInfo (line 8476) | public function addStoreOrderWithHttpInfo($store_id, $body)
    method addStoreOrderRequest (line 8514) | protected function addStoreOrderRequest($store_id, $body)
    method addOrderLineItem (line 8624) | public function addOrderLineItem($store_id, $order_id, $body)
    method addOrderLineItemWithHttpInfo (line 8630) | public function addOrderLineItemWithHttpInfo($store_id, $order_id, $body)
    method addOrderLineItemRequest (line 8668) | protected function addOrderLineItemRequest($store_id, $order_id, $body)
    method addStoreProduct (line 8792) | public function addStoreProduct($store_id, $body)
    method addStoreProductWithHttpInfo (line 8798) | public function addStoreProductWithHttpInfo($store_id, $body)
    method addStoreProductRequest (line 8836) | protected function addStoreProductRequest($store_id, $body)
    method addProductImage (line 8946) | public function addProductImage($store_id, $product_id, $body)
    method addProductImageWithHttpInfo (line 8952) | public function addProductImageWithHttpInfo($store_id, $product_id, $b...
    method addProductImageRequest (line 8990) | protected function addProductImageRequest($store_id, $product_id, $body)
    method addProductVariants (line 9114) | public function addProductVariants($store_id, $product_id, $body)
    method addProductVariantsWithHttpInfo (line 9120) | public function addProductVariantsWithHttpInfo($store_id, $product_id,...
    method addProductVariantsRequest (line 9158) | protected function addProductVariantsRequest($store_id, $product_id, $...
    method addPromoCode (line 9282) | public function addPromoCode($store_id, $promo_rule_id, $body)
    method addPromoCodeWithHttpInfo (line 9288) | public function addPromoCodeWithHttpInfo($store_id, $promo_rule_id, $b...
    method addPromoCodeRequest (line 9326) | protected function addPromoCodeRequest($store_id, $promo_rule_id, $body)
    method addPromoRules (line 9450) | public function addPromoRules($store_id, $body)
    method addPromoRulesWithHttpInfo (line 9456) | public function addPromoRulesWithHttpInfo($store_id, $body)
    method addPromoRulesRequest (line 9494) | protected function addPromoRulesRequest($store_id, $body)
    method setStoreCustomer (line 9604) | public function setStoreCustomer($store_id, $customer_id, $body)
    method setStoreCustomerWithHttpInfo (line 9610) | public function setStoreCustomerWithHttpInfo($store_id, $customer_id, ...
    method setStoreCustomerRequest (line 9648) | protected function setStoreCustomerRequest($store_id, $customer_id, $b...
    method addProductVariant (line 9772) | public function addProductVariant($store_id, $product_id, $variant_id,...
    method addProductVariantWithHttpInfo (line 9778) | public function addProductVariantWithHttpInfo($store_id, $product_id, ...
    method addProductVariantRequest (line 9816) | protected function addProductVariantRequest($store_id, $product_id, $v...
    method createHttpClientOption (line 9954) | protected function createHttpClientOption()

FILE: lib/Api/FacebookAdsApi.php
  class FacebookAdsApi (line 44) | class FacebookAdsApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method list (line 66) | public function list($fields = null, $exclude_fields = null, $count = ...
    method listWithHttpInfo (line 72) | public function listWithHttpInfo($fields = null, $exclude_fields = nul...
    method listRequest (line 110) | protected function listRequest($fields = null, $exclude_fields = null,...
    method getAd (line 231) | public function getAd($outreach_id, $fields = null, $exclude_fields = ...
    method getAdWithHttpInfo (line 237) | public function getAdWithHttpInfo($outreach_id, $fields = null, $exclu...
    method getAdRequest (line 275) | protected function getAdRequest($outreach_id, $fields = null, $exclude...
    method createHttpClientOption (line 390) | protected function createHttpClientOption()

FILE: lib/Api/FileManagerApi.php
  class FileManagerApi (line 44) | class FileManagerApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method deleteFile (line 66) | public function deleteFile($file_id)
    method deleteFileWithHttpInfo (line 71) | public function deleteFileWithHttpInfo($file_id)
    method deleteFileRequest (line 109) | protected function deleteFileRequest($file_id)
    method deleteFolder (line 210) | public function deleteFolder($folder_id)
    method deleteFolderWithHttpInfo (line 215) | public function deleteFolderWithHttpInfo($folder_id)
    method deleteFolderRequest (line 253) | protected function deleteFolderRequest($folder_id)
    method files (line 354) | public function files($fields = null, $exclude_fields = null, $count =...
    method filesWithHttpInfo (line 360) | public function filesWithHttpInfo($fields = null, $exclude_fields = nu...
    method filesRequest (line 398) | protected function filesRequest($fields = null, $exclude_fields = null...
    method getFile (line 535) | public function getFile($file_id, $fields = null, $exclude_fields = null)
    method getFileWithHttpInfo (line 541) | public function getFileWithHttpInfo($file_id, $fields = null, $exclude...
    method getFileRequest (line 579) | protected function getFileRequest($file_id, $fields = null, $exclude_f...
    method listFolders (line 694) | public function listFolders($fields = null, $exclude_fields = null, $c...
    method listFoldersWithHttpInfo (line 700) | public function listFoldersWithHttpInfo($fields = null, $exclude_field...
    method listFoldersRequest (line 738) | protected function listFoldersRequest($fields = null, $exclude_fields ...
    method getFolder (line 863) | public function getFolder($folder_id, $fields = null, $exclude_fields ...
    method getFolderWithHttpInfo (line 869) | public function getFolderWithHttpInfo($folder_id, $fields = null, $exc...
    method getFolderRequest (line 907) | protected function getFolderRequest($folder_id, $fields = null, $exclu...
    method updateFile (line 1022) | public function updateFile($file_id, $body)
    method updateFileWithHttpInfo (line 1028) | public function updateFileWithHttpInfo($file_id, $body)
    method updateFileRequest (line 1066) | protected function updateFileRequest($file_id, $body)
    method updateFolder (line 1176) | public function updateFolder($folder_id, $body)
    method updateFolderWithHttpInfo (line 1182) | public function updateFolderWithHttpInfo($folder_id, $body)
    method updateFolderRequest (line 1220) | protected function updateFolderRequest($folder_id, $body)
    method upload (line 1330) | public function upload($body)
    method uploadWithHttpInfo (line 1336) | public function uploadWithHttpInfo($body)
    method uploadRequest (line 1374) | protected function uploadRequest($body)
    method createFolder (line 1470) | public function createFolder($body)
    method createFolderWithHttpInfo (line 1476) | public function createFolderWithHttpInfo($body)
    method createFolderRequest (line 1514) | protected function createFolderRequest($body)
    method createHttpClientOption (line 1610) | protected function createHttpClientOption()

FILE: lib/Api/LandingPagesApi.php
  class LandingPagesApi (line 44) | class LandingPagesApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method deletePage (line 66) | public function deletePage($page_id)
    method deletePageWithHttpInfo (line 71) | public function deletePageWithHttpInfo($page_id)
    method deletePageRequest (line 109) | protected function deletePageRequest($page_id)
    method getAll (line 210) | public function getAll($sort_dir = null, $sort_field = null, $fields =...
    method getAllWithHttpInfo (line 216) | public function getAllWithHttpInfo($sort_dir = null, $sort_field = nul...
    method getAllRequest (line 254) | protected function getAllRequest($sort_dir = null, $sort_field = null,...
    method getPage (line 371) | public function getPage($page_id, $fields = null, $exclude_fields = null)
    method getPageWithHttpInfo (line 377) | public function getPageWithHttpInfo($page_id, $fields = null, $exclude...
    method getPageRequest (line 415) | protected function getPageRequest($page_id, $fields = null, $exclude_f...
    method getPageContent (line 530) | public function getPageContent($page_id, $fields = null, $exclude_fiel...
    method getPageContentWithHttpInfo (line 536) | public function getPageContentWithHttpInfo($page_id, $fields = null, $...
    method getPageContentRequest (line 574) | protected function getPageContentRequest($page_id, $fields = null, $ex...
    method updatePage (line 689) | public function updatePage($page_id, $body)
    method updatePageWithHttpInfo (line 695) | public function updatePageWithHttpInfo($page_id, $body)
    method updatePageRequest (line 733) | protected function updatePageRequest($page_id, $body)
    method create (line 843) | public function create($body, $use_default_list = null)
    method createWithHttpInfo (line 849) | public function createWithHttpInfo($body, $use_default_list = null)
    method createRequest (line 887) | protected function createRequest($body, $use_default_list = null)
    method publishPage (line 987) | public function publishPage($page_id)
    method publishPageWithHttpInfo (line 992) | public function publishPageWithHttpInfo($page_id)
    method publishPageRequest (line 1030) | protected function publishPageRequest($page_id)
    method unpublishPage (line 1131) | public function unpublishPage($page_id)
    method unpublishPageWithHttpInfo (line 1136) | public function unpublishPageWithHttpInfo($page_id)
    method unpublishPageRequest (line 1174) | protected function unpublishPageRequest($page_id)
    method createHttpClientOption (line 1275) | protected function createHttpClientOption()

FILE: lib/Api/ListsApi.php
  class ListsApi (line 44) | class ListsApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method deleteList (line 66) | public function deleteList($list_id)
    method deleteListWithHttpInfo (line 71) | public function deleteListWithHttpInfo($list_id)
    method deleteListRequest (line 109) | protected function deleteListRequest($list_id)
    method deleteInterestCategory (line 210) | public function deleteInterestCategory($list_id, $interest_category_id)
    method deleteInterestCategoryWithHttpInfo (line 215) | public function deleteInterestCategoryWithHttpInfo($list_id, $interest...
    method deleteInterestCategoryRequest (line 253) | protected function deleteInterestCategoryRequest($list_id, $interest_c...
    method deleteInterestCategoryInterest (line 368) | public function deleteInterestCategoryInterest($list_id, $interest_cat...
    method deleteInterestCategoryInterestWithHttpInfo (line 373) | public function deleteInterestCategoryInterestWithHttpInfo($list_id, $...
    method deleteInterestCategoryInterestRequest (line 411) | protected function deleteInterestCategoryInterestRequest($list_id, $in...
    method deleteListMember (line 540) | public function deleteListMember($list_id, $subscriber_hash)
    method deleteListMemberWithHttpInfo (line 545) | public function deleteListMemberWithHttpInfo($list_id, $subscriber_hash)
    method deleteListMemberRequest (line 583) | protected function deleteListMemberRequest($list_id, $subscriber_hash)
    method deleteListMemberNote (line 698) | public function deleteListMemberNote($list_id, $subscriber_hash, $note...
    method deleteListMemberNoteWithHttpInfo (line 703) | public function deleteListMemberNoteWithHttpInfo($list_id, $subscriber...
    method deleteListMemberNoteRequest (line 741) | protected function deleteListMemberNoteRequest($list_id, $subscriber_h...
    method deleteListMergeField (line 870) | public function deleteListMergeField($list_id, $merge_id)
    method deleteListMergeFieldWithHttpInfo (line 875) | public function deleteListMergeFieldWithHttpInfo($list_id, $merge_id)
    method deleteListMergeFieldRequest (line 913) | protected function deleteListMergeFieldRequest($list_id, $merge_id)
    method deleteSegment (line 1028) | public function deleteSegment($list_id, $segment_id)
    method deleteSegmentWithHttpInfo (line 1033) | public function deleteSegmentWithHttpInfo($list_id, $segment_id)
    method deleteSegmentRequest (line 1071) | protected function deleteSegmentRequest($list_id, $segment_id)
    method removeSegmentMember (line 1186) | public function removeSegmentMember($list_id, $segment_id, $subscriber...
    method removeSegmentMemberWithHttpInfo (line 1191) | public function removeSegmentMemberWithHttpInfo($list_id, $segment_id,...
    method removeSegmentMemberRequest (line 1229) | protected function removeSegmentMemberRequest($list_id, $segment_id, $...
    method deleteListWebhook (line 1358) | public function deleteListWebhook($list_id, $webhook_id)
    method deleteListWebhookWithHttpInfo (line 1363) | public function deleteListWebhookWithHttpInfo($list_id, $webhook_id)
    method deleteListWebhookRequest (line 1401) | protected function deleteListWebhookRequest($list_id, $webhook_id)
    method getListMemberTags (line 1516) | public function getListMemberTags($list_id, $subscriber_hash, $fields ...
    method getListMemberTagsWithHttpInfo (line 1522) | public function getListMemberTagsWithHttpInfo($list_id, $subscriber_ha...
    method getListMemberTagsRequest (line 1560) | protected function getListMemberTagsRequest($list_id, $subscriber_hash...
    method getAllLists (line 1701) | public function getAllLists($fields = null, $exclude_fields = null, $c...
    method getAllListsWithHttpInfo (line 1707) | public function getAllListsWithHttpInfo($fields = null, $exclude_field...
    method getAllListsRequest (line 1745) | protected function getAllListsRequest($fields = null, $exclude_fields ...
    method getList (line 1894) | public function getList($list_id, $fields = null, $exclude_fields = nu...
    method getListWithHttpInfo (line 1900) | public function getListWithHttpInfo($list_id, $fields = null, $exclude...
    method getListRequest (line 1938) | protected function getListRequest($list_id, $fields = null, $exclude_f...
    method getListAbuseReports (line 2057) | public function getListAbuseReports($list_id, $fields = null, $exclude...
    method getListAbuseReportsWithHttpInfo (line 2063) | public function getListAbuseReportsWithHttpInfo($list_id, $fields = nu...
    method getListAbuseReportsRequest (line 2101) | protected function getListAbuseReportsRequest($list_id, $fields = null...
    method getListAbuseReportDetails (line 2228) | public function getListAbuseReportDetails($list_id, $report_id, $field...
    method getListAbuseReportDetailsWithHttpInfo (line 2234) | public function getListAbuseReportDetailsWithHttpInfo($list_id, $repor...
    method getListAbuseReportDetailsRequest (line 2272) | protected function getListAbuseReportDetailsRequest($list_id, $report_...
    method getListRecentActivity (line 2413) | public function getListRecentActivity($list_id, $count = '10', $offset...
    method getListRecentActivityWithHttpInfo (line 2419) | public function getListRecentActivityWithHttpInfo($list_id, $count = '...
    method getListRecentActivityRequest (line 2457) | protected function getListRecentActivityRequest($list_id, $count = '10...
    method getListClients (line 2584) | public function getListClients($list_id, $fields = null, $exclude_fiel...
    method getListClientsWithHttpInfo (line 2590) | public function getListClientsWithHttpInfo($list_id, $fields = null, $...
    method getListClientsRequest (line 2628) | protected function getListClientsRequest($list_id, $fields = null, $ex...
    method getListGrowthHistory (line 2743) | public function getListGrowthHistory($list_id, $fields = null, $exclud...
    method getListGrowthHistoryWithHttpInfo (line 2749) | public function getListGrowthHistoryWithHttpInfo($list_id, $fields = n...
    method getListGrowthHistoryRequest (line 2787) | protected function getListGrowthHistoryRequest($list_id, $fields = nul...
    method getListGrowthHistoryByMonth (line 2922) | public function getListGrowthHistoryByMonth($list_id, $month, $fields ...
    method getListGrowthHistoryByMonthWithHttpInfo (line 2928) | public function getListGrowthHistoryByMonthWithHttpInfo($list_id, $mon...
    method getListGrowthHistoryByMonthRequest (line 2966) | protected function getListGrowthHistoryByMonthRequest($list_id, $month...
    method getListInterestCategories (line 3095) | public function getListInterestCategories($list_id, $fields = null, $e...
    method getListInterestCategoriesWithHttpInfo (line 3101) | public function getListInterestCategoriesWithHttpInfo($list_id, $field...
    method getListInterestCategoriesRequest (line 3139) | protected function getListInterestCategoriesRequest($list_id, $fields ...
    method getInterestCategory (line 3270) | public function getInterestCategory($list_id, $interest_category_id, $...
    method getInterestCategoryWithHttpInfo (line 3276) | public function getInterestCategoryWithHttpInfo($list_id, $interest_ca...
    method getInterestCategoryRequest (line 3314) | protected function getInterestCategoryRequest($list_id, $interest_cate...
    method listInterestCategoryInterests (line 3443) | public function listInterestCategoryInterests($list_id, $interest_cate...
    method listInterestCategoryInterestsWithHttpInfo (line 3449) | public function listInterestCategoryInterestsWithHttpInfo($list_id, $i...
    method listInterestCategoryInterestsRequest (line 3487) | protected function listInterestCategoryInterestsRequest($list_id, $int...
    method getInterestCategoryInterest (line 3628) | public function getInterestCategoryInterest($list_id, $interest_catego...
    method getInterestCategoryInterestWithHttpInfo (line 3634) | public function getInterestCategoryInterestWithHttpInfo($list_id, $int...
    method getInterestCategoryInterestRequest (line 3672) | protected function getInterestCategoryInterestRequest($list_id, $inter...
    method getListLocations (line 3815) | public function getListLocations($list_id, $fields = null, $exclude_fi...
    method getListLocationsWithHttpInfo (line 3821) | public function getListLocationsWithHttpInfo($list_id, $fields = null,...
    method getListLocationsRequest (line 3859) | protected function getListLocationsRequest($list_id, $fields = null, $...
    method getListMembersInfo (line 3974) | public function getListMembersInfo($list_id, $fields = null, $exclude_...
    method getListMembersInfoWithHttpInfo (line 3980) | public function getListMembersInfoWithHttpInfo($list_id, $fields = nul...
    method getListMembersInfoRequest (line 4018) | protected function getListMembersInfoRequest($list_id, $fields = null,...
    method getListMember (line 4205) | public function getListMember($list_id, $subscriber_hash, $fields = nu...
    method getListMemberWithHttpInfo (line 4211) | public function getListMemberWithHttpInfo($list_id, $subscriber_hash, ...
    method getListMemberRequest (line 4249) | protected function getListMemberRequest($list_id, $subscriber_hash, $f...
    method getListMemberActivity (line 4378) | public function getListMemberActivity($list_id, $subscriber_hash, $fie...
    method getListMemberActivityWithHttpInfo (line 4384) | public function getListMemberActivityWithHttpInfo($list_id, $subscribe...
    method getListMemberActivityRequest (line 4422) | protected function getListMemberActivityRequest($list_id, $subscriber_...
    method getListMemberActivityFeed (line 4558) | public function getListMemberActivityFeed($list_id, $subscriber_hash, ...
    method getListMemberActivityFeedWithHttpInfo (line 4564) | public function getListMemberActivityFeedWithHttpInfo($list_id, $subsc...
    method getListMemberActivityFeedRequest (line 4602) | protected function getListMemberActivityFeedRequest($list_id, $subscri...
    method getListMemberEvents (line 4750) | public function getListMemberEvents($list_id, $subscriber_hash, $count...
    method getListMemberEventsWithHttpInfo (line 4756) | public function getListMemberEventsWithHttpInfo($list_id, $subscriber_...
    method getListMemberEventsRequest (line 4794) | protected function getListMemberEventsRequest($list_id, $subscriber_ha...
    method getListMemberGoals (line 4935) | public function getListMemberGoals($list_id, $subscriber_hash, $fields...
    method getListMemberGoalsWithHttpInfo (line 4941) | public function getListMemberGoalsWithHttpInfo($list_id, $subscriber_h...
    method getListMemberGoalsRequest (line 4979) | protected function getListMemberGoalsRequest($list_id, $subscriber_has...
    method getListMemberNotes (line 5108) | public function getListMemberNotes($list_id, $subscriber_hash, $sort_f...
    method getListMemberNotesWithHttpInfo (line 5114) | public function getListMemberNotesWithHttpInfo($list_id, $subscriber_h...
    method getListMemberNotesRequest (line 5152) | protected function getListMemberNotesRequest($list_id, $subscriber_has...
    method getListMemberNote (line 5301) | public function getListMemberNote($list_id, $subscriber_hash, $note_id...
    method getListMemberNoteWithHttpInfo (line 5307) | public function getListMemberNoteWithHttpInfo($list_id, $subscriber_ha...
    method getListMemberNoteRequest (line 5345) | protected function getListMemberNoteRequest($list_id, $subscriber_hash...
    method getListMergeFields (line 5488) | public function getListMergeFields($list_id, $fields = null, $exclude_...
    method getListMergeFieldsWithHttpInfo (line 5494) | public function getListMergeFieldsWithHttpInfo($list_id, $fields = nul...
    method getListMergeFieldsRequest (line 5532) | protected function getListMergeFieldsRequest($list_id, $fields = null,...
    method getListMergeField (line 5667) | public function getListMergeField($list_id, $merge_id, $exclude_fields...
    method getListMergeFieldWithHttpInfo (line 5673) | public function getListMergeFieldWithHttpInfo($list_id, $merge_id, $ex...
    method getListMergeFieldRequest (line 5711) | protected function getListMergeFieldRequest($list_id, $merge_id, $excl...
    method getSegment (line 5840) | public function getSegment($list_id, $segment_id, $fields = null, $exc...
    method getSegmentWithHttpInfo (line 5846) | public function getSegmentWithHttpInfo($list_id, $segment_id, $fields ...
    method getSegmentRequest (line 5884) | protected function getSegmentRequest($list_id, $segment_id, $fields = ...
    method getSegmentMembersList (line 6025) | public function getSegmentMembersList($list_id, $segment_id, $fields =...
    method getSegmentMembersListWithHttpInfo (line 6031) | public function getSegmentMembersListWithHttpInfo($list_id, $segment_i...
    method getSegmentMembersListRequest (line 6069) | protected function getSegmentMembersListRequest($list_id, $segment_id,...
    method getListSignupForms (line 6222) | public function getListSignupForms($list_id)
    method getListSignupFormsWithHttpInfo (line 6228) | public function getListSignupFormsWithHttpInfo($list_id)
    method getListSignupFormsRequest (line 6266) | protected function getListSignupFormsRequest($list_id)
    method getAllSurveysForList (line 6367) | public function getAllSurveysForList($list_id)
    method getAllSurveysForListWithHttpInfo (line 6372) | public function getAllSurveysForListWithHttpInfo($list_id)
    method getAllSurveysForListRequest (line 6410) | protected function getAllSurveysForListRequest($list_id)
    method getSurvey (line 6511) | public function getSurvey($list_id, $survey_id)
    method getSurveyWithHttpInfo (line 6516) | public function getSurveyWithHttpInfo($list_id, $survey_id)
    method getSurveyRequest (line 6554) | protected function getSurveyRequest($list_id, $survey_id)
    method getListWebhooks (line 6669) | public function getListWebhooks($list_id)
    method getListWebhooksWithHttpInfo (line 6675) | public function getListWebhooksWithHttpInfo($list_id)
    method getListWebhooksRequest (line 6713) | protected function getListWebhooksRequest($list_id)
    method getListWebhook (line 6814) | public function getListWebhook($list_id, $webhook_id)
    method getListWebhookWithHttpInfo (line 6820) | public function getListWebhookWithHttpInfo($list_id, $webhook_id)
    method getListWebhookRequest (line 6858) | protected function getListWebhookRequest($list_id, $webhook_id)
    method updateList (line 6973) | public function updateList($list_id, $body)
    method updateListWithHttpInfo (line 6979) | public function updateListWithHttpInfo($list_id, $body)
    method updateListRequest (line 7017) | protected function updateListRequest($list_id, $body)
    method updateInterestCategory (line 7127) | public function updateInterestCategory($list_id, $interest_category_id...
    method updateInterestCategoryWithHttpInfo (line 7133) | public function updateInterestCategoryWithHttpInfo($list_id, $interest...
    method updateInterestCategoryRequest (line 7171) | protected function updateInterestCategoryRequest($list_id, $interest_c...
    method updateInterestCategoryInterest (line 7295) | public function updateInterestCategoryInterest($list_id, $interest_cat...
    method updateInterestCategoryInterestWithHttpInfo (line 7301) | public function updateInterestCategoryInterestWithHttpInfo($list_id, $...
    method updateInterestCategoryInterestRequest (line 7339) | protected function updateInterestCategoryInterestRequest($list_id, $in...
    method updateListMember (line 7477) | public function updateListMember($list_id, $subscriber_hash, $body, $s...
    method updateListMemberWithHttpInfo (line 7483) | public function updateListMemberWithHttpInfo($list_id, $subscriber_has...
    method updateListMemberRequest (line 7521) | protected function updateListMemberRequest($list_id, $subscriber_hash,...
    method updateListMemberNote (line 7649) | public function updateListMemberNote($list_id, $subscriber_hash, $note...
    method updateListMemberNoteWithHttpInfo (line 7655) | public function updateListMemberNoteWithHttpInfo($list_id, $subscriber...
    method updateListMemberNoteRequest (line 7693) | protected function updateListMemberNoteRequest($list_id, $subscriber_h...
    method updateListMergeField (line 7831) | public function updateListMergeField($list_id, $merge_id, $body)
    method updateListMergeFieldWithHttpInfo (line 7837) | public function updateListMergeFieldWithHttpInfo($list_id, $merge_id, ...
    method updateListMergeFieldRequest (line 7875) | protected function updateListMergeFieldRequest($list_id, $merge_id, $b...
    method updateSegment (line 7999) | public function updateSegment($list_id, $segment_id, $body)
    method updateSegmentWithHttpInfo (line 8005) | public function updateSegmentWithHttpInfo($list_id, $segment_id, $body)
    method updateSegmentRequest (line 8043) | protected function updateSegmentRequest($list_id, $segment_id, $body)
    method updateListWebhook (line 8167) | public function updateListWebhook($list_id, $webhook_id, $body)
    method updateListWebhookWithHttpInfo (line 8173) | public function updateListWebhookWithHttpInfo($list_id, $webhook_id, $...
    method updateListWebhookRequest (line 8211) | protected function updateListWebhookRequest($list_id, $webhook_id, $body)
    method createListMemberEvent (line 8335) | public function createListMemberEvent($list_id, $subscriber_hash, $body)
    method createListMemberEventWithHttpInfo (line 8340) | public function createListMemberEventWithHttpInfo($list_id, $subscribe...
    method createListMemberEventRequest (line 8378) | protected function createListMemberEventRequest($list_id, $subscriber_...
    method updateListMemberTags (line 8502) | public function updateListMemberTags($list_id, $subscriber_hash, $body)
    method updateListMemberTagsWithHttpInfo (line 8507) | public function updateListMemberTagsWithHttpInfo($list_id, $subscriber...
    method updateListMemberTagsRequest (line 8545) | protected function updateListMemberTagsRequest($list_id, $subscriber_h...
    method createList (line 8669) | public function createList($body)
    method createListWithHttpInfo (line 8675) | public function createListWithHttpInfo($body)
    method createListRequest (line 8713) | protected function createListRequest($body)
    method batchListMembers (line 8809) | public function batchListMembers($list_id, $body, $skip_merge_validati...
    method batchListMembersWithHttpInfo (line 8815) | public function batchListMembersWithHttpInfo($list_id, $body, $skip_me...
    method batchListMembersRequest (line 8853) | protected function batchListMembersRequest($list_id, $body, $skip_merg...
    method createListInterestCategory (line 8971) | public function createListInterestCategory($list_id, $body)
    method createListInterestCategoryWithHttpInfo (line 8977) | public function createListInterestCategoryWithHttpInfo($list_id, $body)
    method createListInterestCategoryRequest (line 9015) | protected function createListInterestCategoryRequest($list_id, $body)
    method createInterestCategoryInterest (line 9125) | public function createInterestCategoryInterest($list_id, $interest_cat...
    method createInterestCategoryInterestWithHttpInfo (line 9131) | public function createInterestCategoryInterestWithHttpInfo($list_id, $...
    method createInterestCategoryInterestRequest (line 9169) | protected function createInterestCategoryInterestRequest($list_id, $in...
    method addListMember (line 9293) | public function addListMember($list_id, $body, $skip_merge_validation ...
    method addListMemberWithHttpInfo (line 9299) | public function addListMemberWithHttpInfo($list_id, $body, $skip_merge...
    method addListMemberRequest (line 9337) | protected function addListMemberRequest($list_id, $body, $skip_merge_v...
    method deleteListMemberPermanent (line 9451) | public function deleteListMemberPermanent($list_id, $subscriber_hash)
    method deleteListMemberPermanentWithHttpInfo (line 9456) | public function deleteListMemberPermanentWithHttpInfo($list_id, $subsc...
    method deleteListMemberPermanentRequest (line 9494) | protected function deleteListMemberPermanentRequest($list_id, $subscri...
    method createListMemberNote (line 9609) | public function createListMemberNote($list_id, $subscriber_hash, $body)
    method createListMemberNoteWithHttpInfo (line 9615) | public function createListMemberNoteWithHttpInfo($list_id, $subscriber...
    method createListMemberNoteRequest (line 9653) | protected function createListMemberNoteRequest($list_id, $subscriber_h...
    method addListMergeField (line 9777) | public function addListMergeField($list_id, $body)
    method addListMergeFieldWithHttpInfo (line 9783) | public function addListMergeFieldWithHttpInfo($list_id, $body)
    method addListMergeFieldRequest (line 9821) | protected function addListMergeFieldRequest($list_id, $body)
    method createSegment (line 9931) | public function createSegment($list_id, $body)
    method createSegmentWithHttpInfo (line 9937) | public function createSegmentWithHttpInfo($list_id, $body)
    method createSegmentRequest (line 9975) | protected function createSegmentRequest($list_id, $body)
    method batchSegmentMembers (line 10085) | public function batchSegmentMembers($body, $list_id, $segment_id)
    method batchSegmentMembersWithHttpInfo (line 10091) | public function batchSegmentMembersWithHttpInfo($body, $list_id, $segm...
    method batchSegmentMembersRequest (line 10129) | protected function batchSegmentMembersRequest($body, $list_id, $segmen...
    method createSegmentMember (line 10253) | public function createSegmentMember($list_id, $segment_id, $body)
    method createSegmentMemberWithHttpInfo (line 10259) | public function createSegmentMemberWithHttpInfo($list_id, $segment_id,...
    method createSegmentMemberRequest (line 10297) | protected function createSegmentMemberRequest($list_id, $segment_id, $...
    method updateListSignupForm (line 10421) | public function updateListSignupForm($list_id, $body)
    method updateListSignupFormWithHttpInfo (line 10427) | public function updateListSignupFormWithHttpInfo($list_id, $body)
    method updateListSignupFormRequest (line 10465) | protected function updateListSignupFormRequest($list_id, $body)
    method createListWebhook (line 10575) | public function createListWebhook($list_id, $body)
    method createListWebhookWithHttpInfo (line 10581) | public function createListWebhookWithHttpInfo($list_id, $body)
    method createListWebhookRequest (line 10619) | protected function createListWebhookRequest($list_id, $body)
    method listSegments (line 10729) | public function listSegments($list_id, $fields = null, $exclude_fields...
    method listSegmentsWithHttpInfo (line 10735) | public function listSegmentsWithHttpInfo($list_id, $fields = null, $ex...
    method listSegmentsRequest (line 10773) | protected function listSegmentsRequest($list_id, $fields = null, $excl...
    method setListMember (line 10932) | public function setListMember($list_id, $subscriber_hash, $body, $skip...
    method setListMemberWithHttpInfo (line 10938) | public function setListMemberWithHttpInfo($list_id, $subscriber_hash, ...
    method setListMemberRequest (line 10976) | protected function setListMemberRequest($list_id, $subscriber_hash, $b...
    method tagSearch (line 11104) | public function tagSearch($list_id, $name = null)
    method tagSearchWithHttpInfo (line 11110) | public function tagSearchWithHttpInfo($list_id, $name = null)
    method tagSearchRequest (line 11148) | protected function tagSearchRequest($list_id, $name = null)
    method createHttpClientOption (line 11253) | protected function createHttpClientOption()

FILE: lib/Api/PingApi.php
  class PingApi (line 44) | class PingApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method get (line 66) | public function get()
    method getWithHttpInfo (line 72) | public function getWithHttpInfo()
    method getRequest (line 110) | protected function getRequest()
    method createHttpClientOption (line 197) | protected function createHttpClientOption()

FILE: lib/Api/ReportingApi.php
  class ReportingApi (line 44) | class ReportingApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method getFacebookAdsReportAll (line 66) | public function getFacebookAdsReportAll($fields = null, $exclude_field...
    method getFacebookAdsReportAllWithHttpInfo (line 72) | public function getFacebookAdsReportAllWithHttpInfo($fields = null, $e...
    method getFacebookAdsReportAllRequest (line 110) | protected function getFacebookAdsReportAllRequest($fields = null, $exc...
    method getFacebookAdReport (line 231) | public function getFacebookAdReport($outreach_id, $fields = null, $exc...
    method getFacebookAdReportWithHttpInfo (line 237) | public function getFacebookAdReportWithHttpInfo($outreach_id, $fields ...
    method getFacebookAdReportRequest (line 275) | protected function getFacebookAdReportRequest($outreach_id, $fields = ...
    method getFacebookAdProductActivityReport (line 390) | public function getFacebookAdProductActivityReport($outreach_id, $fiel...
    method getFacebookAdProductActivityReportWithHttpInfo (line 396) | public function getFacebookAdProductActivityReportWithHttpInfo($outrea...
    method getFacebookAdProductActivityReportRequest (line 434) | protected function getFacebookAdProductActivityReportRequest($outreach...
    method getLandingPageReportsAll (line 565) | public function getLandingPageReportsAll($fields = null, $exclude_fiel...
    method getLandingPageReportsAllWithHttpInfo (line 571) | public function getLandingPageReportsAllWithHttpInfo($fields = null, $...
    method getLandingPageReportsAllRequest (line 609) | protected function getLandingPageReportsAllRequest($fields = null, $ex...
    method getLandingPageReport (line 722) | public function getLandingPageReport($outreach_id, $fields = null, $ex...
    method getLandingPageReportWithHttpInfo (line 728) | public function getLandingPageReportWithHttpInfo($outreach_id, $fields...
    method getLandingPageReportRequest (line 766) | protected function getLandingPageReportRequest($outreach_id, $fields =...
    method getSurveyReportsAll (line 881) | public function getSurveyReportsAll($fields = null, $exclude_fields = ...
    method getSurveyReportsAllWithHttpInfo (line 887) | public function getSurveyReportsAllWithHttpInfo($fields = null, $exclu...
    method getSurveyReportsAllRequest (line 925) | protected function getSurveyReportsAllRequest($fields = null, $exclude...
    method getSurveyReport (line 1038) | public function getSurveyReport($outreach_id, $fields = null, $exclude...
    method getSurveyReportWithHttpInfo (line 1044) | public function getSurveyReportWithHttpInfo($outreach_id, $fields = nu...
    method getSurveyReportRequest (line 1082) | protected function getSurveyReportRequest($outreach_id, $fields = null...
    method getSurveyQuestionReportsAll (line 1197) | public function getSurveyQuestionReportsAll($outreach_id, $fields = nu...
    method getSurveyQuestionReportsAllWithHttpInfo (line 1203) | public function getSurveyQuestionReportsAllWithHttpInfo($outreach_id, ...
    method getSurveyQuestionReportsAllRequest (line 1241) | protected function getSurveyQuestionReportsAllRequest($outreach_id, $f...
    method getSurveyQuestionReport (line 1356) | public function getSurveyQuestionReport($outreach_id, $question_id, $f...
    method getSurveyQuestionReportWithHttpInfo (line 1362) | public function getSurveyQuestionReportWithHttpInfo($outreach_id, $que...
    method getSurveyQuestionReportRequest (line 1400) | protected function getSurveyQuestionReportRequest($outreach_id, $quest...
    method getSurveyQuestionAnswers (line 1529) | public function getSurveyQuestionAnswers($outreach_id, $question_id, $...
    method getSurveyQuestionAnswersWithHttpInfo (line 1535) | public function getSurveyQuestionAnswersWithHttpInfo($outreach_id, $qu...
    method getSurveyQuestionAnswersRequest (line 1573) | protected function getSurveyQuestionAnswersRequest($outreach_id, $ques...
    method getSurveyResponsesAll (line 1706) | public function getSurveyResponsesAll($outreach_id, $fields = null, $e...
    method getSurveyResponsesAllWithHttpInfo (line 1712) | public function getSurveyResponsesAllWithHttpInfo($outreach_id, $field...
    method getSurveyResponsesAllRequest (line 1750) | protected function getSurveyResponsesAllRequest($outreach_id, $fields ...
    method getSurveyResponse (line 1877) | public function getSurveyResponse($outreach_id, $response_id)
    method getSurveyResponseWithHttpInfo (line 1883) | public function getSurveyResponseWithHttpInfo($outreach_id, $response_id)
    method getSurveyResponseRequest (line 1921) | protected function getSurveyResponseRequest($outreach_id, $response_id)
    method createHttpClientOption (line 2036) | protected function createHttpClientOption()

FILE: lib/Api/ReportsApi.php
  class ReportsApi (line 44) | class ReportsApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method getAllCampaignReports (line 66) | public function getAllCampaignReports($fields = null, $exclude_fields ...
    method getAllCampaignReportsWithHttpInfo (line 72) | public function getAllCampaignReportsWithHttpInfo($fields = null, $exc...
    method getAllCampaignReportsRequest (line 110) | protected function getAllCampaignReportsRequest($fields = null, $exclu...
    method getCampaignReport (line 235) | public function getCampaignReport($campaign_id, $fields = null, $exclu...
    method getCampaignReportWithHttpInfo (line 241) | public function getCampaignReportWithHttpInfo($campaign_id, $fields = ...
    method getCampaignReportRequest (line 279) | protected function getCampaignReportRequest($campaign_id, $fields = nu...
    method getCampaignAbuseReports (line 394) | public function getCampaignAbuseReports($campaign_id, $fields = null, ...
    method getCampaignAbuseReportsWithHttpInfo (line 400) | public function getCampaignAbuseReportsWithHttpInfo($campaign_id, $fie...
    method getCampaignAbuseReportsRequest (line 438) | protected function getCampaignAbuseReportsRequest($campaign_id, $field...
    method getCampaignAbuseReport (line 553) | public function getCampaignAbuseReport($campaign_id, $report_id, $fiel...
    method getCampaignAbuseReportWithHttpInfo (line 559) | public function getCampaignAbuseReportWithHttpInfo($campaign_id, $repo...
    method getCampaignAbuseReportRequest (line 597) | protected function getCampaignAbuseReportRequest($campaign_id, $report...
    method getCampaignAdvice (line 726) | public function getCampaignAdvice($campaign_id, $fields = null, $exclu...
    method getCampaignAdviceWithHttpInfo (line 732) | public function getCampaignAdviceWithHttpInfo($campaign_id, $fields = ...
    method getCampaignAdviceRequest (line 770) | protected function getCampaignAdviceRequest($campaign_id, $fields = nu...
    method getCampaignClickDetails (line 885) | public function getCampaignClickDetails($campaign_id, $fields = null, ...
    method getCampaignClickDetailsWithHttpInfo (line 891) | public function getCampaignClickDetailsWithHttpInfo($campaign_id, $fie...
    method getCampaignClickDetailsRequest (line 929) | protected function getCampaignClickDetailsRequest($campaign_id, $field...
    method getCampaignClickDetailsForLink (line 1056) | public function getCampaignClickDetailsForLink($campaign_id, $link_id,...
    method getCampaignClickDetailsForLinkWithHttpInfo (line 1062) | public function getCampaignClickDetailsForLinkWithHttpInfo($campaign_i...
    method getCampaignClickDetailsForLinkRequest (line 1100) | protected function getCampaignClickDetailsForLinkRequest($campaign_id,...
    method getSubscribersInfo (line 1229) | public function getSubscribersInfo($campaign_id, $link_id, $fields = n...
    method getSubscribersInfoWithHttpInfo (line 1235) | public function getSubscribersInfoWithHttpInfo($campaign_id, $link_id,...
    method getSubscribersInfoRequest (line 1273) | protected function getSubscribersInfoRequest($campaign_id, $link_id, $...
    method getSubscriberInfo (line 1414) | public function getSubscriberInfo($campaign_id, $link_id, $subscriber_...
    method getSubscriberInfoWithHttpInfo (line 1420) | public function getSubscriberInfoWithHttpInfo($campaign_id, $link_id, ...
    method getSubscriberInfoRequest (line 1458) | protected function getSubscriberInfoRequest($campaign_id, $link_id, $s...
    method getDomainPerformanceForCampaign (line 1601) | public function getDomainPerformanceForCampaign($campaign_id, $fields ...
    method getDomainPerformanceForCampaignWithHttpInfo (line 1607) | public function getDomainPerformanceForCampaignWithHttpInfo($campaign_...
    method getDomainPerformanceForCampaignRequest (line 1645) | protected function getDomainPerformanceForCampaignRequest($campaign_id...
    method getEcommerceProductActivityForCampaign (line 1760) | public function getEcommerceProductActivityForCampaign($campaign_id, $...
    method getEcommerceProductActivityForCampaignWithHttpInfo (line 1766) | public function getEcommerceProductActivityForCampaignWithHttpInfo($ca...
    method getEcommerceProductActivityForCampaignRequest (line 1804) | protected function getEcommerceProductActivityForCampaignRequest($camp...
    method getEepurlActivityForCampaign (line 1935) | public function getEepurlActivityForCampaign($campaign_id, $fields = n...
    method getEepurlActivityForCampaignWithHttpInfo (line 1941) | public function getEepurlActivityForCampaignWithHttpInfo($campaign_id,...
    method getEepurlActivityForCampaignRequest (line 1979) | protected function getEepurlActivityForCampaignRequest($campaign_id, $...
    method getEmailActivityForCampaign (line 2094) | public function getEmailActivityForCampaign($campaign_id, $fields = nu...
    method getEmailActivityForCampaignWithHttpInfo (line 2100) | public function getEmailActivityForCampaignWithHttpInfo($campaign_id, ...
    method getEmailActivityForCampaignRequest (line 2138) | protected function getEmailActivityForCampaignRequest($campaign_id, $f...
    method getEmailActivityForSubscriber (line 2269) | public function getEmailActivityForSubscriber($campaign_id, $subscribe...
    method getEmailActivityForSubscriberWithHttpInfo (line 2275) | public function getEmailActivityForSubscriberWithHttpInfo($campaign_id...
    method getEmailActivityForSubscriberRequest (line 2313) | protected function getEmailActivityForSubscriberRequest($campaign_id, ...
    method getLocationsForCampaign (line 2446) | public function getLocationsForCampaign($campaign_id, $fields = null, ...
    method getLocationsForCampaignWithHttpInfo (line 2452) | public function getLocationsForCampaignWithHttpInfo($campaign_id, $fie...
    method getLocationsForCampaignRequest (line 2490) | protected function getLocationsForCampaignRequest($campaign_id, $field...
    method getCampaignOpenDetails (line 2617) | public function getCampaignOpenDetails($campaign_id, $fields = null, $...
    method getCampaignOpenDetailsWithHttpInfo (line 2623) | public function getCampaignOpenDetailsWithHttpInfo($campaign_id, $fiel...
    method getCampaignOpenDetailsRequest (line 2661) | protected function getCampaignOpenDetailsRequest($campaign_id, $fields...
    method getSubscriberInfoForOpenedCampaign (line 2792) | public function getSubscriberInfoForOpenedCampaign($campaign_id, $subs...
    method getSubscriberInfoForOpenedCampaignWithHttpInfo (line 2798) | public function getSubscriberInfoForOpenedCampaignWithHttpInfo($campai...
    method getSubscriberInfoForOpenedCampaignRequest (line 2836) | protected function getSubscriberInfoForOpenedCampaignRequest($campaign...
    method getCampaignRecipients (line 2965) | public function getCampaignRecipients($campaign_id, $fields = null, $e...
    method getCampaignRecipientsWithHttpInfo (line 2971) | public function getCampaignRecipientsWithHttpInfo($campaign_id, $field...
    method getCampaignRecipientsRequest (line 3009) | protected function getCampaignRecipientsRequest($campaign_id, $fields ...
    method getCampaignRecipient (line 3136) | public function getCampaignRecipient($campaign_id, $subscriber_hash, $...
    method getCampaignRecipientWithHttpInfo (line 3142) | public function getCampaignRecipientWithHttpInfo($campaign_id, $subscr...
    method getCampaignRecipientRequest (line 3180) | protected function getCampaignRecipientRequest($campaign_id, $subscrib...
    method getSubReportsForCampaign (line 3309) | public function getSubReportsForCampaign($campaign_id, $fields = null,...
    method getSubReportsForCampaignWithHttpInfo (line 3315) | public function getSubReportsForCampaignWithHttpInfo($campaign_id, $fi...
    method getSubReportsForCampaignRequest (line 3353) | protected function getSubReportsForCampaignRequest($campaign_id, $fiel...
    method getUnsubscribedListForCampaign (line 3468) | public function getUnsubscribedListForCampaign($campaign_id, $fields =...
    method getUnsubscribedListForCampaignWithHttpInfo (line 3474) | public function getUnsubscribedListForCampaignWithHttpInfo($campaign_i...
    method getUnsubscribedListForCampaignRequest (line 3512) | protected function getUnsubscribedListForCampaignRequest($campaign_id,...
    method getUnsubscribedListMember (line 3639) | public function getUnsubscribedListMember($campaign_id, $subscriber_ha...
    method getUnsubscribedListMemberWithHttpInfo (line 3645) | public function getUnsubscribedListMemberWithHttpInfo($campaign_id, $s...
    method getUnsubscribedListMemberRequest (line 3683) | protected function getUnsubscribedListMemberRequest($campaign_id, $sub...
    method createHttpClientOption (line 3812) | protected function createHttpClientOption()

FILE: lib/Api/RootApi.php
  class RootApi (line 44) | class RootApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method getRoot (line 66) | public function getRoot($fields = null, $exclude_fields = null)
    method getRootWithHttpInfo (line 72) | public function getRootWithHttpInfo($fields = null, $exclude_fields = ...
    method getRootRequest (line 110) | protected function getRootRequest($fields = null, $exclude_fields = null)
    method createHttpClientOption (line 211) | protected function createHttpClientOption()

FILE: lib/Api/SearchCampaignsApi.php
  class SearchCampaignsApi (line 44) | class SearchCampaignsApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method search (line 66) | public function search($query, $fields = null, $exclude_fields = null)
    method searchWithHttpInfo (line 72) | public function searchWithHttpInfo($query, $fields = null, $exclude_fi...
    method searchRequest (line 110) | protected function searchRequest($query, $fields = null, $exclude_fiel...
    method createHttpClientOption (line 221) | protected function createHttpClientOption()

FILE: lib/Api/SearchMembersApi.php
  class SearchMembersApi (line 44) | class SearchMembersApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method search (line 66) | public function search($query, $fields = null, $exclude_fields = null,...
    method searchWithHttpInfo (line 72) | public function searchWithHttpInfo($query, $fields = null, $exclude_fi...
    method searchRequest (line 110) | protected function searchRequest($query, $fields = null, $exclude_fiel...
    method createHttpClientOption (line 225) | protected function createHttpClientOption()

FILE: lib/Api/SurveysApi.php
  class SurveysApi (line 44) | class SurveysApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method publishSurvey (line 66) | public function publishSurvey($list_id, $survey_id)
    method publishSurveyWithHttpInfo (line 71) | public function publishSurveyWithHttpInfo($list_id, $survey_id)
    method publishSurveyRequest (line 109) | protected function publishSurveyRequest($list_id, $survey_id)
    method unpublishSurvey (line 224) | public function unpublishSurvey($list_id, $survey_id)
    method unpublishSurveyWithHttpInfo (line 229) | public function unpublishSurveyWithHttpInfo($list_id, $survey_id)
    method unpublishSurveyRequest (line 267) | protected function unpublishSurveyRequest($list_id, $survey_id)
    method createHttpClientOption (line 382) | protected function createHttpClientOption()

FILE: lib/Api/TemplateFoldersApi.php
  class TemplateFoldersApi (line 44) | class TemplateFoldersApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method remove (line 66) | public function remove($folder_id)
    method removeWithHttpInfo (line 71) | public function removeWithHttpInfo($folder_id)
    method removeRequest (line 109) | protected function removeRequest($folder_id)
    method list (line 210) | public function list($fields = null, $exclude_fields = null, $count = ...
    method listWithHttpInfo (line 216) | public function listWithHttpInfo($fields = null, $exclude_fields = nul...
    method listRequest (line 254) | protected function listRequest($fields = null, $exclude_fields = null,...
    method get (line 367) | public function get($folder_id, $fields = null, $exclude_fields = null)
    method getWithHttpInfo (line 373) | public function getWithHttpInfo($folder_id, $fields = null, $exclude_f...
    method getRequest (line 411) | protected function getRequest($folder_id, $fields = null, $exclude_fie...
    method update (line 526) | public function update($folder_id, $body)
    method updateWithHttpInfo (line 532) | public function updateWithHttpInfo($folder_id, $body)
    method updateRequest (line 570) | protected function updateRequest($folder_id, $body)
    method create (line 680) | public function create($body)
    method createWithHttpInfo (line 686) | public function createWithHttpInfo($body)
    method createRequest (line 724) | protected function createRequest($body)
    method createHttpClientOption (line 820) | protected function createHttpClientOption()

FILE: lib/Api/TemplatesApi.php
  class TemplatesApi (line 44) | class TemplatesApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method deleteTemplate (line 66) | public function deleteTemplate($template_id)
    method deleteTemplateWithHttpInfo (line 71) | public function deleteTemplateWithHttpInfo($template_id)
    method deleteTemplateRequest (line 109) | protected function deleteTemplateRequest($template_id)
    method list (line 210) | public function list($fields = null, $exclude_fields = null, $count = ...
    method listWithHttpInfo (line 216) | public function listWithHttpInfo($fields = null, $exclude_fields = nul...
    method listRequest (line 254) | protected function listRequest($fields = null, $exclude_fields = null,...
    method getTemplate (line 399) | public function getTemplate($template_id, $fields = null, $exclude_fie...
    method getTemplateWithHttpInfo (line 405) | public function getTemplateWithHttpInfo($template_id, $fields = null, ...
    method getTemplateRequest (line 443) | protected function getTemplateRequest($template_id, $fields = null, $e...
    method getDefaultContentForTemplate (line 558) | public function getDefaultContentForTemplate($template_id, $fields = n...
    method getDefaultContentForTemplateWithHttpInfo (line 564) | public function getDefaultContentForTemplateWithHttpInfo($template_id,...
    method getDefaultContentForTemplateRequest (line 602) | protected function getDefaultContentForTemplateRequest($template_id, $...
    method updateTemplate (line 717) | public function updateTemplate($template_id, $body)
    method updateTemplateWithHttpInfo (line 723) | public function updateTemplateWithHttpInfo($template_id, $body)
    method updateTemplateRequest (line 761) | protected function updateTemplateRequest($template_id, $body)
    method create (line 871) | public function create($body)
    method createWithHttpInfo (line 877) | public function createWithHttpInfo($body)
    method createRequest (line 915) | protected function createRequest($body)
    method createHttpClientOption (line 1011) | protected function createHttpClientOption()

FILE: lib/Api/VerifiedDomainsApi.php
  class VerifiedDomainsApi (line 44) | class VerifiedDomainsApi
    method __construct (line 50) | public function __construct(Configuration $config = null)
    method getConfig (line 61) | public function getConfig()
    method createVerifiedDomain (line 66) | public function createVerifiedDomain($body)
    method createVerifiedDomainWithHttpInfo (line 72) | public function createVerifiedDomainWithHttpInfo($body)
    method createVerifiedDomainRequest (line 110) | protected function createVerifiedDomainRequest($body)
    method deleteDomain (line 206) | public function deleteDomain($domain_name)
    method deleteDomainWithHttpInfo (line 211) | public function deleteDomainWithHttpInfo($domain_name)
    method deleteDomainRequest (line 249) | protected function deleteDomainRequest($domain_name)
    method getDomain (line 350) | public function getDomain($domain_name)
    method getDomainWithHttpInfo (line 356) | public function getDomainWithHttpInfo($domain_name)
    method getDomainRequest (line 394) | protected function getDomainRequest($domain_name)
    method getVerifiedDomainsAll (line 495) | public function getVerifiedDomainsAll()
    method getVerifiedDomainsAllWithHttpInfo (line 501) | public function getVerifiedDomainsAllWithHttpInfo()
    method getVerifiedDomainsAllRequest (line 539) | protected function getVerifiedDomainsAllRequest()
    method submitDomainVerification (line 626) | public function submitDomainVerification($domain_name, $body)
    method submitDomainVerificationWithHttpInfo (line 632) | public function submitDomainVerificationWithHttpInfo($domain_name, $body)
    method submitDomainVerificationRequest (line 670) | protected function submitDomainVerificationRequest($domain_name, $body)
    method createHttpClientOption (line 780) | protected function createHttpClientOption()

FILE: lib/ApiClient.php
  class ApiClient (line 7) | class ApiClient extends Configuration {}

FILE: lib/ApiException.php
  class ApiException (line 41) | class ApiException extends Exception
    method __construct (line 73) | public function __construct($message = "", $code = 0, $responseHeaders...
    method getResponseHeaders (line 85) | public function getResponseHeaders()
    method getResponseBody (line 95) | public function getResponseBody()
    method setResponseObject (line 107) | public function setResponseObject($obj)
    method getResponseObject (line 117) | public function getResponseObject()

FILE: lib/Configuration.php
  class Configuration (line 50) | class Configuration
    method __construct (line 66) | public function __construct()
    method setConfig (line 99) | public function setConfig($config = array())
    method setApiKey (line 126) | public function setApiKey($apiKeyIdentifier, $key)
    method getApiKey (line 132) | public function getApiKey($apiKeyIdentifier)
    method setApiKeyPrefix (line 137) | public function setApiKeyPrefix($apiKeyIdentifier, $prefix)
    method getApiKeyPrefix (line 143) | public function getApiKeyPrefix($apiKeyIdentifier)
    method setAccessToken (line 148) | public function setAccessToken($accessToken)
    method getAccessToken (line 154) | public function getAccessToken()
    method setUsername (line 159) | public function setUsername($username)
    method getUsername (line 165) | public function getUsername()
    method setPassword (line 170) | public function setPassword($password)
    method getPassword (line 176) | public function getPassword()
    method setHost (line 181) | public function setHost($host)
    method getHost (line 187) | public function getHost()
    method setUserAgent (line 192) | public function setUserAgent($userAgent)
    method getUserAgent (line 202) | public function getUserAgent()
    method setDebug (line 207) | public function setDebug($debug)
    method getDebug (line 213) | public function getDebug()
    method setDebugFile (line 218) | public function setDebugFile($debugFile)
    method getDebugFile (line 224) | public function getDebugFile()
    method setTempFolderPath (line 229) | public function setTempFolderPath($tempFolderPath)
    method getTempFolderPath (line 235) | public function getTempFolderPath()
    method setTimeout (line 240) | public function setTimeout($timeout)
    method getTimeout (line 245) | public function getTimeout()
    method getDefaultConfiguration (line 250) | public static function getDefaultConfiguration()
    method setDefaultConfiguration (line 259) | public static function setDefaultConfiguration(Configuration $config)
    method toDebugReport (line 264) | public static function toDebugReport()
    method getApiKeyWithPrefix (line 276) | public function getApiKeyWithPrefix($apiKeyIdentifier)

FILE: lib/HeaderSelector.php
  class HeaderSelector (line 41) | class HeaderSelector
    method selectHeaders (line 49) | public function selectHeaders($accept, $contentTypes)
    method selectHeadersForMultipart (line 66) | public function selectHeadersForMultipart($accept)
    method selectAcceptHeader (line 81) | private function selectAcceptHeader($accept)
    method selectContentTypeHeader (line 99) | private function selectContentTypeHeader($contentType)

FILE: lib/ObjectSerializer.php
  class ObjectSerializer (line 40) | class ObjectSerializer
    method sanitizeForSerialization (line 51) | public static function sanitizeForSerialization($data, $type = null, $...
    method sanitizeFilename (line 98) | public static function sanitizeFilename($filename)
    method toPathValue (line 115) | public static function toPathValue($value)
    method toQueryValue (line 130) | public static function toQueryValue($object)
    method toHeaderValue (line 148) | public static function toHeaderValue($value)
    method toFormValue (line 162) | public static function toFormValue($value)
    method toString (line 180) | public static function toString($value)
    method serializeCollection (line 199) | public static function serializeCollection(array $collection, $collect...
    method deserialize (line 233) | public static function deserialize($data, $class, $httpHeaders = null)
Condensed preview — 41 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,709K chars).
[
  {
    "path": ".github/PULL_REQUEST_TEMPLATE.md",
    "chars": 219,
    "preview": "Note: This repository is auto-generated, and does not accept pull requests.\n\nTo make changes or open issues for this SDK"
  },
  {
    "path": ".php_cs",
    "chars": 655,
    "preview": "<?php\n\nreturn PhpCsFixer\\Config::create()\n    ->setUsingCache(true)\n    ->setRules([\n        '@PSR2' => true,\n        'o"
  },
  {
    "path": ".travis.yml",
    "chars": 146,
    "preview": "language: php\nsudo: false\nphp:\n    - 5.4\n    - 5.5\n    - 5.6\n    - 7.0\n    - hhvm\nbefore_install: \"composer install\"\nscr"
  },
  {
    "path": "CHANGELOG.md",
    "chars": 2777,
    "preview": "# Changelog\n\n## Transactional\n\n### 1.0.48\n* Allowing users to schedule messages (using messages/send, messages/send-temp"
  },
  {
    "path": "LICENSE",
    "chars": 11837,
    "preview": "Mailchimp Client Library License Agreement\n \nIMPORTANT- PLEASE READ CAREFULLY BEFORE OPENING, INSTALLING, COPYING OR USI"
  },
  {
    "path": "README.md",
    "chars": 23878,
    "preview": "<p align=\"center\">\n  <a href=\"https://mailchimp.com/developer/\">\n    <img src=\"https://raw.githubusercontent.com/mailchi"
  },
  {
    "path": "composer.json",
    "chars": 943,
    "preview": "{\n    \"name\": \"mailchimp/marketing\",\n    \"version\": \"3.0.80\",\n    \"description\": \"\",\n    \"keywords\": [\n        \"swagger\""
  },
  {
    "path": "git_push.sh",
    "chars": 1672,
    "preview": "#!/bin/sh\n# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/\n#\n# Usage"
  },
  {
    "path": "lib/Api/AccountExportApi.php",
    "chars": 7654,
    "preview": "<?php\n\n/**\n * AccountExportApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagg"
  },
  {
    "path": "lib/Api/AccountExportsApi.php",
    "chars": 12139,
    "preview": "<?php\n\n/**\n * AccountExportsApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swag"
  },
  {
    "path": "lib/Api/ActivityFeedApi.php",
    "chars": 6861,
    "preview": "<?php\n\n/**\n * ActivityFeedApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagge"
  },
  {
    "path": "lib/Api/AuthorizedAppsApi.php",
    "chars": 12980,
    "preview": "<?php\n\n/**\n * AuthorizedAppsApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swag"
  },
  {
    "path": "lib/Api/AutomationsApi.php",
    "chars": 98733,
    "preview": "<?php\n\n/**\n * AutomationsApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagger"
  },
  {
    "path": "lib/Api/BatchWebhooksApi.php",
    "chars": 27389,
    "preview": "<?php\n\n/**\n * BatchWebhooksApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagg"
  },
  {
    "path": "lib/Api/BatchesApi.php",
    "chars": 22028,
    "preview": "<?php\n\n/**\n * BatchesApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagger Cod"
  },
  {
    "path": "lib/Api/CampaignFoldersApi.php",
    "chars": 27111,
    "preview": "<?php\n\n/**\n * CampaignFoldersApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swa"
  },
  {
    "path": "lib/Api/CampaignsApi.php",
    "chars": 116872,
    "preview": "<?php\n\n/**\n * CampaignsApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagger C"
  },
  {
    "path": "lib/Api/ConnectedSitesApi.php",
    "chars": 27149,
    "preview": "<?php\n\n/**\n * ConnectedSitesApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swag"
  },
  {
    "path": "lib/Api/ConversationsApi.php",
    "chars": 26552,
    "preview": "<?php\n\n/**\n * ConversationsApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagg"
  },
  {
    "path": "lib/Api/CustomerJourneysApi.php",
    "chars": 7840,
    "preview": "<?php\n\n/**\n * CustomerJourneysApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Sw"
  },
  {
    "path": "lib/Api/EcommerceApi.php",
    "chars": 346159,
    "preview": "<?php\n\n/**\n * EcommerceApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagger C"
  },
  {
    "path": "lib/Api/FacebookAdsApi.php",
    "chars": 13513,
    "preview": "<?php\n\n/**\n * FacebookAdsApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagger"
  },
  {
    "path": "lib/Api/FileManagerApi.php",
    "chars": 54540,
    "preview": "<?php\n\n/**\n * FileManagerApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagger"
  },
  {
    "path": "lib/Api/LandingPagesApi.php",
    "chars": 42373,
    "preview": "<?php\n\n/**\n * LandingPagesApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagge"
  },
  {
    "path": "lib/Api/ListsApi.php",
    "chars": 397726,
    "preview": "<?php\n\n/**\n * ListsApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagger Codeg"
  },
  {
    "path": "lib/Api/PingApi.php",
    "chars": 6155,
    "preview": "<?php\n\n/**\n * PingApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagger Codege"
  },
  {
    "path": "lib/Api/ReportingApi.php",
    "chars": 72630,
    "preview": "<?php\n\n/**\n * ReportingApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagger C"
  },
  {
    "path": "lib/Api/ReportsApi.php",
    "chars": 137182,
    "preview": "<?php\n\n/**\n * ReportsApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagger Cod"
  },
  {
    "path": "lib/Api/RootApi.php",
    "chars": 6949,
    "preview": "<?php\n\n/**\n * RootApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagger Codege"
  },
  {
    "path": "lib/Api/SearchCampaignsApi.php",
    "chars": 7439,
    "preview": "<?php\n\n/**\n * SearchCampaignsApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swa"
  },
  {
    "path": "lib/Api/SearchMembersApi.php",
    "chars": 7651,
    "preview": "<?php\n\n/**\n * SearchMembersApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagg"
  },
  {
    "path": "lib/Api/SurveysApi.php",
    "chars": 12684,
    "preview": "<?php\n\n/**\n * SurveysApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagger Cod"
  },
  {
    "path": "lib/Api/TemplateFoldersApi.php",
    "chars": 27111,
    "preview": "<?php\n\n/**\n * TemplateFoldersApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swa"
  },
  {
    "path": "lib/Api/TemplatesApi.php",
    "chars": 34843,
    "preview": "<?php\n\n/**\n * TemplatesApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagger C"
  },
  {
    "path": "lib/Api/VerifiedDomainsApi.php",
    "chars": 25328,
    "preview": "<?php\n\n/**\n * VerifiedDomainsApi\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swa"
  },
  {
    "path": "lib/ApiClient.php",
    "chars": 118,
    "preview": "<?php\n\nnamespace MailchimpMarketing;\n\nuse MailchimpMarketing\\Configuration;\n\nclass ApiClient extends Configuration {}\n"
  },
  {
    "path": "lib/ApiException.php",
    "chars": 2935,
    "preview": "<?php\n/**\n * ApiException\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagger Co"
  },
  {
    "path": "lib/Configuration.php",
    "chars": 8421,
    "preview": "<?php\n\n/**\n * Mailchimp Marketing API\n *\n * No description provided (generated by Swagger Codegen https://github.com/swa"
  },
  {
    "path": "lib/HeaderSelector.php",
    "chars": 2804,
    "preview": "<?php\n/**\n * ApiException\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swagger Co"
  },
  {
    "path": "lib/ObjectSerializer.php",
    "chars": 12060,
    "preview": "<?php\n/**\n * ObjectSerializer\n *\n * PHP version 5\n *\n * @category Class\n * @package  MailchimpMarketing\n * @author   Swa"
  },
  {
    "path": "phpunit.xml.dist",
    "chars": 678,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<phpunit bootstrap=\"./vendor/autoload.php\"\n         colors=\"true\"\n         conver"
  }
]

About this extraction

This page contains the full source code of the mailchimp/mailchimp-marketing-php GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 41 files (1.6 MB), approximately 356.6k tokens, and a symbol index with 969 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!