updated plugin WP Mail SMTP
version 2.0.0
This commit is contained in:
@ -12,12 +12,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -59,6 +59,11 @@ class AccountApi
|
||||
*/
|
||||
protected $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
@ -279,9 +284,16 @@ class AccountApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
|
@ -12,12 +12,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -238,19 +238,19 @@ class AttributesApi
|
||||
protected function createAttributeRequest($attributeCategory, $attributeName, $createAttribute)
|
||||
{
|
||||
// verify the required parameter 'attributeCategory' is set
|
||||
if ($attributeCategory === null) {
|
||||
if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $attributeCategory when calling createAttribute'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'attributeName' is set
|
||||
if ($attributeName === null) {
|
||||
if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $attributeName when calling createAttribute'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'createAttribute' is set
|
||||
if ($createAttribute === null) {
|
||||
if ($createAttribute === null || (is_array($createAttribute) && count($createAttribute) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $createAttribute when calling createAttribute'
|
||||
);
|
||||
@ -302,9 +302,16 @@ class AttributesApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -517,13 +524,13 @@ class AttributesApi
|
||||
protected function deleteAttributeRequest($attributeCategory, $attributeName)
|
||||
{
|
||||
// verify the required parameter 'attributeCategory' is set
|
||||
if ($attributeCategory === null) {
|
||||
if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $attributeCategory when calling deleteAttribute'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'attributeName' is set
|
||||
if ($attributeName === null) {
|
||||
if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $attributeName when calling deleteAttribute'
|
||||
);
|
||||
@ -572,9 +579,16 @@ class AttributesApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -825,9 +839,16 @@ class AttributesApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1045,19 +1066,19 @@ class AttributesApi
|
||||
protected function updateAttributeRequest($attributeCategory, $attributeName, $updateAttribute)
|
||||
{
|
||||
// verify the required parameter 'attributeCategory' is set
|
||||
if ($attributeCategory === null) {
|
||||
if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $attributeCategory when calling updateAttribute'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'attributeName' is set
|
||||
if ($attributeName === null) {
|
||||
if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $attributeName when calling updateAttribute'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'updateAttribute' is set
|
||||
if ($updateAttribute === null) {
|
||||
if ($updateAttribute === null || (is_array($updateAttribute) && count($updateAttribute) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $updateAttribute when calling updateAttribute'
|
||||
);
|
||||
@ -1109,9 +1130,16 @@ class AttributesApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
|
@ -12,12 +12,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -59,6 +59,11 @@ class ContactsApi
|
||||
*/
|
||||
protected $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
@ -278,13 +283,13 @@ class ContactsApi
|
||||
protected function addContactToListRequest($listId, $contactEmails)
|
||||
{
|
||||
// verify the required parameter 'listId' is set
|
||||
if ($listId === null) {
|
||||
if ($listId === null || (is_array($listId) && count($listId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $listId when calling addContactToList'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'contactEmails' is set
|
||||
if ($contactEmails === null) {
|
||||
if ($contactEmails === null || (is_array($contactEmails) && count($contactEmails) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $contactEmails when calling addContactToList'
|
||||
);
|
||||
@ -328,9 +333,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -540,19 +552,19 @@ class ContactsApi
|
||||
protected function createAttributeRequest($attributeCategory, $attributeName, $createAttribute)
|
||||
{
|
||||
// verify the required parameter 'attributeCategory' is set
|
||||
if ($attributeCategory === null) {
|
||||
if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $attributeCategory when calling createAttribute'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'attributeName' is set
|
||||
if ($attributeName === null) {
|
||||
if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $attributeName when calling createAttribute'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'createAttribute' is set
|
||||
if ($createAttribute === null) {
|
||||
if ($createAttribute === null || (is_array($createAttribute) && count($createAttribute) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $createAttribute when calling createAttribute'
|
||||
);
|
||||
@ -604,9 +616,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -851,7 +870,7 @@ class ContactsApi
|
||||
protected function createContactRequest($createContact)
|
||||
{
|
||||
// verify the required parameter 'createContact' is set
|
||||
if ($createContact === null) {
|
||||
if ($createContact === null || (is_array($createContact) && count($createContact) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $createContact when calling createContact'
|
||||
);
|
||||
@ -887,9 +906,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1126,7 +1152,7 @@ class ContactsApi
|
||||
protected function createFolderRequest($createFolder)
|
||||
{
|
||||
// verify the required parameter 'createFolder' is set
|
||||
if ($createFolder === null) {
|
||||
if ($createFolder === null || (is_array($createFolder) && count($createFolder) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $createFolder when calling createFolder'
|
||||
);
|
||||
@ -1162,9 +1188,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1401,7 +1434,7 @@ class ContactsApi
|
||||
protected function createListRequest($createList)
|
||||
{
|
||||
// verify the required parameter 'createList' is set
|
||||
if ($createList === null) {
|
||||
if ($createList === null || (is_array($createList) && count($createList) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $createList when calling createList'
|
||||
);
|
||||
@ -1437,9 +1470,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1652,13 +1692,13 @@ class ContactsApi
|
||||
protected function deleteAttributeRequest($attributeCategory, $attributeName)
|
||||
{
|
||||
// verify the required parameter 'attributeCategory' is set
|
||||
if ($attributeCategory === null) {
|
||||
if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $attributeCategory when calling deleteAttribute'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'attributeName' is set
|
||||
if ($attributeName === null) {
|
||||
if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $attributeName when calling deleteAttribute'
|
||||
);
|
||||
@ -1707,9 +1747,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1925,7 +1972,7 @@ class ContactsApi
|
||||
protected function deleteContactRequest($email)
|
||||
{
|
||||
// verify the required parameter 'email' is set
|
||||
if ($email === null) {
|
||||
if ($email === null || (is_array($email) && count($email) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $email when calling deleteContact'
|
||||
);
|
||||
@ -1966,9 +2013,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -2176,7 +2230,7 @@ class ContactsApi
|
||||
protected function deleteFolderRequest($folderId)
|
||||
{
|
||||
// verify the required parameter 'folderId' is set
|
||||
if ($folderId === null) {
|
||||
if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $folderId when calling deleteFolder'
|
||||
);
|
||||
@ -2217,9 +2271,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -2427,7 +2488,7 @@ class ContactsApi
|
||||
protected function deleteListRequest($listId)
|
||||
{
|
||||
// verify the required parameter 'listId' is set
|
||||
if ($listId === null) {
|
||||
if ($listId === null || (is_array($listId) && count($listId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $listId when calling deleteList'
|
||||
);
|
||||
@ -2468,9 +2529,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -2721,9 +2789,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -2968,7 +3043,7 @@ class ContactsApi
|
||||
protected function getContactInfoRequest($email)
|
||||
{
|
||||
// verify the required parameter 'email' is set
|
||||
if ($email === null) {
|
||||
if ($email === null || (is_array($email) && count($email) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $email when calling getContactInfo'
|
||||
);
|
||||
@ -3009,9 +3084,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -3256,7 +3338,7 @@ class ContactsApi
|
||||
protected function getContactStatsRequest($email)
|
||||
{
|
||||
// verify the required parameter 'email' is set
|
||||
if ($email === null) {
|
||||
if ($email === null || (is_array($email) && count($email) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $email when calling getContactStats'
|
||||
);
|
||||
@ -3297,9 +3379,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -3589,9 +3678,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -3851,7 +3947,7 @@ class ContactsApi
|
||||
protected function getContactsFromListRequest($listId, $modifiedSince = null, $limit = '50', $offset = '0')
|
||||
{
|
||||
// verify the required parameter 'listId' is set
|
||||
if ($listId === null) {
|
||||
if ($listId === null || (is_array($listId) && count($listId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $listId when calling getContactsFromList'
|
||||
);
|
||||
@ -3908,9 +4004,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -4155,7 +4258,7 @@ class ContactsApi
|
||||
protected function getFolderRequest($folderId)
|
||||
{
|
||||
// verify the required parameter 'folderId' is set
|
||||
if ($folderId === null) {
|
||||
if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $folderId when calling getFolder'
|
||||
);
|
||||
@ -4196,9 +4299,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -4453,7 +4563,7 @@ class ContactsApi
|
||||
protected function getFolderListsRequest($folderId, $limit = '10', $offset = '0')
|
||||
{
|
||||
// verify the required parameter 'folderId' is set
|
||||
if ($folderId === null) {
|
||||
if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $folderId when calling getFolderLists'
|
||||
);
|
||||
@ -4506,9 +4616,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -4750,7 +4867,7 @@ class ContactsApi
|
||||
protected function getFoldersRequest($limit, $offset)
|
||||
{
|
||||
// verify the required parameter 'limit' is set
|
||||
if ($limit === null) {
|
||||
if ($limit === null || (is_array($limit) && count($limit) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $limit when calling getFolders'
|
||||
);
|
||||
@ -4760,7 +4877,7 @@ class ContactsApi
|
||||
}
|
||||
|
||||
// verify the required parameter 'offset' is set
|
||||
if ($offset === null) {
|
||||
if ($offset === null || (is_array($offset) && count($offset) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $offset when calling getFolders'
|
||||
);
|
||||
@ -4801,9 +4918,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -5048,7 +5172,7 @@ class ContactsApi
|
||||
protected function getListRequest($listId)
|
||||
{
|
||||
// verify the required parameter 'listId' is set
|
||||
if ($listId === null) {
|
||||
if ($listId === null || (is_array($listId) && count($listId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $listId when calling getList'
|
||||
);
|
||||
@ -5089,9 +5213,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -5372,9 +5503,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -5611,7 +5749,7 @@ class ContactsApi
|
||||
protected function importContactsRequest($requestContactImport)
|
||||
{
|
||||
// verify the required parameter 'requestContactImport' is set
|
||||
if ($requestContactImport === null) {
|
||||
if ($requestContactImport === null || (is_array($requestContactImport) && count($requestContactImport) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $requestContactImport when calling importContacts'
|
||||
);
|
||||
@ -5647,9 +5785,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -5899,13 +6044,13 @@ class ContactsApi
|
||||
protected function removeContactFromListRequest($listId, $contactEmails)
|
||||
{
|
||||
// verify the required parameter 'listId' is set
|
||||
if ($listId === null) {
|
||||
if ($listId === null || (is_array($listId) && count($listId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $listId when calling removeContactFromList'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'contactEmails' is set
|
||||
if ($contactEmails === null) {
|
||||
if ($contactEmails === null || (is_array($contactEmails) && count($contactEmails) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $contactEmails when calling removeContactFromList'
|
||||
);
|
||||
@ -5949,9 +6094,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -6188,7 +6340,7 @@ class ContactsApi
|
||||
protected function requestContactExportRequest($requestContactExport)
|
||||
{
|
||||
// verify the required parameter 'requestContactExport' is set
|
||||
if ($requestContactExport === null) {
|
||||
if ($requestContactExport === null || (is_array($requestContactExport) && count($requestContactExport) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $requestContactExport when calling requestContactExport'
|
||||
);
|
||||
@ -6224,9 +6376,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -6444,19 +6603,19 @@ class ContactsApi
|
||||
protected function updateAttributeRequest($attributeCategory, $attributeName, $updateAttribute)
|
||||
{
|
||||
// verify the required parameter 'attributeCategory' is set
|
||||
if ($attributeCategory === null) {
|
||||
if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $attributeCategory when calling updateAttribute'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'attributeName' is set
|
||||
if ($attributeName === null) {
|
||||
if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $attributeName when calling updateAttribute'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'updateAttribute' is set
|
||||
if ($updateAttribute === null) {
|
||||
if ($updateAttribute === null || (is_array($updateAttribute) && count($updateAttribute) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $updateAttribute when calling updateAttribute'
|
||||
);
|
||||
@ -6508,9 +6667,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -6723,13 +6889,13 @@ class ContactsApi
|
||||
protected function updateContactRequest($email, $updateContact)
|
||||
{
|
||||
// verify the required parameter 'email' is set
|
||||
if ($email === null) {
|
||||
if ($email === null || (is_array($email) && count($email) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $email when calling updateContact'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'updateContact' is set
|
||||
if ($updateContact === null) {
|
||||
if ($updateContact === null || (is_array($updateContact) && count($updateContact) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $updateContact when calling updateContact'
|
||||
);
|
||||
@ -6773,9 +6939,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -6988,13 +7161,13 @@ class ContactsApi
|
||||
protected function updateFolderRequest($folderId, $updateFolder)
|
||||
{
|
||||
// verify the required parameter 'folderId' is set
|
||||
if ($folderId === null) {
|
||||
if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $folderId when calling updateFolder'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'updateFolder' is set
|
||||
if ($updateFolder === null) {
|
||||
if ($updateFolder === null || (is_array($updateFolder) && count($updateFolder) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $updateFolder when calling updateFolder'
|
||||
);
|
||||
@ -7038,9 +7211,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -7253,13 +7433,13 @@ class ContactsApi
|
||||
protected function updateListRequest($listId, $updateList)
|
||||
{
|
||||
// verify the required parameter 'listId' is set
|
||||
if ($listId === null) {
|
||||
if ($listId === null || (is_array($listId) && count($listId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $listId when calling updateList'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'updateList' is set
|
||||
if ($updateList === null) {
|
||||
if ($updateList === null || (is_array($updateList) && count($updateList) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $updateList when calling updateList'
|
||||
);
|
||||
@ -7303,9 +7483,16 @@ class ContactsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
|
@ -12,12 +12,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -59,6 +59,11 @@ class EmailCampaignsApi
|
||||
*/
|
||||
protected $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
@ -265,7 +270,7 @@ class EmailCampaignsApi
|
||||
protected function createEmailCampaignRequest($emailCampaigns)
|
||||
{
|
||||
// verify the required parameter 'emailCampaigns' is set
|
||||
if ($emailCampaigns === null) {
|
||||
if ($emailCampaigns === null || (is_array($emailCampaigns) && count($emailCampaigns) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $emailCampaigns when calling createEmailCampaign'
|
||||
);
|
||||
@ -301,9 +306,16 @@ class EmailCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -511,7 +523,7 @@ class EmailCampaignsApi
|
||||
protected function deleteEmailCampaignRequest($campaignId)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null) {
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling deleteEmailCampaign'
|
||||
);
|
||||
@ -552,9 +564,16 @@ class EmailCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -804,7 +823,7 @@ class EmailCampaignsApi
|
||||
protected function emailExportRecipientsRequest($campaignId, $recipientExport = null)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null) {
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling emailExportRecipients'
|
||||
);
|
||||
@ -848,9 +867,16 @@ class EmailCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -904,6 +930,309 @@ class EmailCampaignsApi
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Operation getAbTestCampaignResult
|
||||
*
|
||||
* Get A/B test email campaign result
|
||||
*
|
||||
* @param int $campaignId Id of the A/B test campaign (required)
|
||||
*
|
||||
* @throws \SendinBlue\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \SendinBlue\Client\Model\AbTestCampaignResult
|
||||
*/
|
||||
public function getAbTestCampaignResult($campaignId)
|
||||
{
|
||||
list($response) = $this->getAbTestCampaignResultWithHttpInfo($campaignId);
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Operation getAbTestCampaignResultWithHttpInfo
|
||||
*
|
||||
* Get A/B test email campaign result
|
||||
*
|
||||
* @param int $campaignId Id of the A/B test campaign (required)
|
||||
*
|
||||
* @throws \SendinBlue\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @return array of \SendinBlue\Client\Model\AbTestCampaignResult, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function getAbTestCampaignResultWithHttpInfo($campaignId)
|
||||
{
|
||||
$returnType = '\SendinBlue\Client\Model\AbTestCampaignResult';
|
||||
$request = $this->getAbTestCampaignResultRequest($campaignId);
|
||||
|
||||
try {
|
||||
$options = $this->createHttpClientOption();
|
||||
try {
|
||||
$response = $this->client->send($request, $options);
|
||||
} catch (RequestException $e) {
|
||||
throw new ApiException(
|
||||
"[{$e->getCode()}] {$e->getMessage()}",
|
||||
$e->getCode(),
|
||||
$e->getResponse() ? $e->getResponse()->getHeaders() : null,
|
||||
$e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
|
||||
);
|
||||
}
|
||||
|
||||
$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();
|
||||
if ($returnType === '\SplFileObject') {
|
||||
$content = $responseBody; //stream goes to serializer
|
||||
} else {
|
||||
$content = $responseBody->getContents();
|
||||
if ($returnType !== 'string') {
|
||||
$content = json_decode($content);
|
||||
}
|
||||
}
|
||||
|
||||
return [
|
||||
ObjectSerializer::deserialize($content, $returnType, []),
|
||||
$response->getStatusCode(),
|
||||
$response->getHeaders()
|
||||
];
|
||||
|
||||
} catch (ApiException $e) {
|
||||
switch ($e->getCode()) {
|
||||
case 200:
|
||||
$data = ObjectSerializer::deserialize(
|
||||
$e->getResponseBody(),
|
||||
'\SendinBlue\Client\Model\AbTestCampaignResult',
|
||||
$e->getResponseHeaders()
|
||||
);
|
||||
$e->setResponseObject($data);
|
||||
break;
|
||||
case 400:
|
||||
$data = ObjectSerializer::deserialize(
|
||||
$e->getResponseBody(),
|
||||
'\SendinBlue\Client\Model\ErrorModel',
|
||||
$e->getResponseHeaders()
|
||||
);
|
||||
$e->setResponseObject($data);
|
||||
break;
|
||||
case 404:
|
||||
$data = ObjectSerializer::deserialize(
|
||||
$e->getResponseBody(),
|
||||
'\SendinBlue\Client\Model\ErrorModel',
|
||||
$e->getResponseHeaders()
|
||||
);
|
||||
$e->setResponseObject($data);
|
||||
break;
|
||||
case 405:
|
||||
$data = ObjectSerializer::deserialize(
|
||||
$e->getResponseBody(),
|
||||
'\SendinBlue\Client\Model\ErrorModel',
|
||||
$e->getResponseHeaders()
|
||||
);
|
||||
$e->setResponseObject($data);
|
||||
break;
|
||||
}
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Operation getAbTestCampaignResultAsync
|
||||
*
|
||||
* Get A/B test email campaign result
|
||||
*
|
||||
* @param int $campaignId Id of the A/B test campaign (required)
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
*/
|
||||
public function getAbTestCampaignResultAsync($campaignId)
|
||||
{
|
||||
return $this->getAbTestCampaignResultAsyncWithHttpInfo($campaignId)
|
||||
->then(
|
||||
function ($response) {
|
||||
return $response[0];
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Operation getAbTestCampaignResultAsyncWithHttpInfo
|
||||
*
|
||||
* Get A/B test email campaign result
|
||||
*
|
||||
* @param int $campaignId Id of the A/B test campaign (required)
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
*/
|
||||
public function getAbTestCampaignResultAsyncWithHttpInfo($campaignId)
|
||||
{
|
||||
$returnType = '\SendinBlue\Client\Model\AbTestCampaignResult';
|
||||
$request = $this->getAbTestCampaignResultRequest($campaignId);
|
||||
|
||||
return $this->client
|
||||
->sendAsync($request, $this->createHttpClientOption())
|
||||
->then(
|
||||
function ($response) use ($returnType) {
|
||||
$responseBody = $response->getBody();
|
||||
if ($returnType === '\SplFileObject') {
|
||||
$content = $responseBody; //stream goes to serializer
|
||||
} else {
|
||||
$content = $responseBody->getContents();
|
||||
if ($returnType !== 'string') {
|
||||
$content = json_decode($content);
|
||||
}
|
||||
}
|
||||
|
||||
return [
|
||||
ObjectSerializer::deserialize($content, $returnType, []),
|
||||
$response->getStatusCode(),
|
||||
$response->getHeaders()
|
||||
];
|
||||
},
|
||||
function ($exception) {
|
||||
$response = $exception->getResponse();
|
||||
$statusCode = $response->getStatusCode();
|
||||
throw new ApiException(
|
||||
sprintf(
|
||||
'[%d] Error connecting to the API (%s)',
|
||||
$statusCode,
|
||||
$exception->getRequest()->getUri()
|
||||
),
|
||||
$statusCode,
|
||||
$response->getHeaders(),
|
||||
$response->getBody()
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create request for operation 'getAbTestCampaignResult'
|
||||
*
|
||||
* @param int $campaignId Id of the A/B test campaign (required)
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
protected function getAbTestCampaignResultRequest($campaignId)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling getAbTestCampaignResult'
|
||||
);
|
||||
}
|
||||
|
||||
$resourcePath = '/emailCampaigns/{campaignId}/abTestCampaignResult';
|
||||
$formParams = [];
|
||||
$queryParams = [];
|
||||
$headerParams = [];
|
||||
$httpBody = '';
|
||||
$multipart = false;
|
||||
|
||||
|
||||
// path params
|
||||
if ($campaignId !== null) {
|
||||
$resourcePath = str_replace(
|
||||
'{' . 'campaignId' . '}',
|
||||
ObjectSerializer::toPathValue($campaignId),
|
||||
$resourcePath
|
||||
);
|
||||
}
|
||||
|
||||
// body params
|
||||
$_tempBody = null;
|
||||
|
||||
if ($multipart) {
|
||||
$headers = $this->headerSelector->selectHeadersForMultipart(
|
||||
['application/json']
|
||||
);
|
||||
} else {
|
||||
$headers = $this->headerSelector->selectHeaders(
|
||||
['application/json'],
|
||||
['application/json']
|
||||
);
|
||||
}
|
||||
|
||||
// for model (json/xml)
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
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
|
||||
];
|
||||
}
|
||||
// for HTTP post (form)
|
||||
$httpBody = new MultipartStream($multipartContents);
|
||||
|
||||
} elseif ($headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($formParams);
|
||||
|
||||
} else {
|
||||
// for HTTP post (form)
|
||||
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
|
||||
}
|
||||
}
|
||||
|
||||
// this endpoint requires API key authentication
|
||||
$apiKey = $this->config->getApiKeyWithPrefix('api-key');
|
||||
if ($apiKey !== null) {
|
||||
$headers['api-key'] = $apiKey;
|
||||
}
|
||||
// this endpoint requires API key authentication
|
||||
$apiKey = $this->config->getApiKeyWithPrefix('partner-key');
|
||||
if ($apiKey !== null) {
|
||||
$headers['partner-key'] = $apiKey;
|
||||
}
|
||||
|
||||
$defaultHeaders = [];
|
||||
if ($this->config->getUserAgent()) {
|
||||
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
|
||||
}
|
||||
|
||||
$headers = array_merge(
|
||||
$defaultHeaders,
|
||||
$headerParams,
|
||||
$headers
|
||||
);
|
||||
|
||||
$query = \GuzzleHttp\Psr7\build_query($queryParams);
|
||||
return new Request(
|
||||
'GET',
|
||||
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
|
||||
$headers,
|
||||
$httpBody
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Operation getEmailCampaign
|
||||
*
|
||||
@ -1095,7 +1424,7 @@ class EmailCampaignsApi
|
||||
protected function getEmailCampaignRequest($campaignId)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null) {
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling getEmailCampaign'
|
||||
);
|
||||
@ -1136,9 +1465,16 @@ class EmailCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1455,9 +1791,311 @@ class EmailCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
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
|
||||
];
|
||||
}
|
||||
// for HTTP post (form)
|
||||
$httpBody = new MultipartStream($multipartContents);
|
||||
|
||||
} elseif ($headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($formParams);
|
||||
|
||||
} else {
|
||||
// for HTTP post (form)
|
||||
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
|
||||
}
|
||||
}
|
||||
|
||||
// this endpoint requires API key authentication
|
||||
$apiKey = $this->config->getApiKeyWithPrefix('api-key');
|
||||
if ($apiKey !== null) {
|
||||
$headers['api-key'] = $apiKey;
|
||||
}
|
||||
// this endpoint requires API key authentication
|
||||
$apiKey = $this->config->getApiKeyWithPrefix('partner-key');
|
||||
if ($apiKey !== null) {
|
||||
$headers['partner-key'] = $apiKey;
|
||||
}
|
||||
|
||||
$defaultHeaders = [];
|
||||
if ($this->config->getUserAgent()) {
|
||||
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
|
||||
}
|
||||
|
||||
$headers = array_merge(
|
||||
$defaultHeaders,
|
||||
$headerParams,
|
||||
$headers
|
||||
);
|
||||
|
||||
$query = \GuzzleHttp\Psr7\build_query($queryParams);
|
||||
return new Request(
|
||||
'GET',
|
||||
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
|
||||
$headers,
|
||||
$httpBody
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Operation getSharedTemplateUrl
|
||||
*
|
||||
* Get a shared template url
|
||||
*
|
||||
* @param int $campaignId Id of the campaign or template (required)
|
||||
*
|
||||
* @throws \SendinBlue\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \SendinBlue\Client\Model\GetSharedTemplateUrl
|
||||
*/
|
||||
public function getSharedTemplateUrl($campaignId)
|
||||
{
|
||||
list($response) = $this->getSharedTemplateUrlWithHttpInfo($campaignId);
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Operation getSharedTemplateUrlWithHttpInfo
|
||||
*
|
||||
* Get a shared template url
|
||||
*
|
||||
* @param int $campaignId Id of the campaign or template (required)
|
||||
*
|
||||
* @throws \SendinBlue\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @return array of \SendinBlue\Client\Model\GetSharedTemplateUrl, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function getSharedTemplateUrlWithHttpInfo($campaignId)
|
||||
{
|
||||
$returnType = '\SendinBlue\Client\Model\GetSharedTemplateUrl';
|
||||
$request = $this->getSharedTemplateUrlRequest($campaignId);
|
||||
|
||||
try {
|
||||
$options = $this->createHttpClientOption();
|
||||
try {
|
||||
$response = $this->client->send($request, $options);
|
||||
} catch (RequestException $e) {
|
||||
throw new ApiException(
|
||||
"[{$e->getCode()}] {$e->getMessage()}",
|
||||
$e->getCode(),
|
||||
$e->getResponse() ? $e->getResponse()->getHeaders() : null,
|
||||
$e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
|
||||
);
|
||||
}
|
||||
|
||||
$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();
|
||||
if ($returnType === '\SplFileObject') {
|
||||
$content = $responseBody; //stream goes to serializer
|
||||
} else {
|
||||
$content = $responseBody->getContents();
|
||||
if ($returnType !== 'string') {
|
||||
$content = json_decode($content);
|
||||
}
|
||||
}
|
||||
|
||||
return [
|
||||
ObjectSerializer::deserialize($content, $returnType, []),
|
||||
$response->getStatusCode(),
|
||||
$response->getHeaders()
|
||||
];
|
||||
|
||||
} catch (ApiException $e) {
|
||||
switch ($e->getCode()) {
|
||||
case 200:
|
||||
$data = ObjectSerializer::deserialize(
|
||||
$e->getResponseBody(),
|
||||
'\SendinBlue\Client\Model\GetSharedTemplateUrl',
|
||||
$e->getResponseHeaders()
|
||||
);
|
||||
$e->setResponseObject($data);
|
||||
break;
|
||||
case 400:
|
||||
$data = ObjectSerializer::deserialize(
|
||||
$e->getResponseBody(),
|
||||
'\SendinBlue\Client\Model\ErrorModel',
|
||||
$e->getResponseHeaders()
|
||||
);
|
||||
$e->setResponseObject($data);
|
||||
break;
|
||||
case 404:
|
||||
$data = ObjectSerializer::deserialize(
|
||||
$e->getResponseBody(),
|
||||
'\SendinBlue\Client\Model\ErrorModel',
|
||||
$e->getResponseHeaders()
|
||||
);
|
||||
$e->setResponseObject($data);
|
||||
break;
|
||||
}
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Operation getSharedTemplateUrlAsync
|
||||
*
|
||||
* Get a shared template url
|
||||
*
|
||||
* @param int $campaignId Id of the campaign or template (required)
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
*/
|
||||
public function getSharedTemplateUrlAsync($campaignId)
|
||||
{
|
||||
return $this->getSharedTemplateUrlAsyncWithHttpInfo($campaignId)
|
||||
->then(
|
||||
function ($response) {
|
||||
return $response[0];
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Operation getSharedTemplateUrlAsyncWithHttpInfo
|
||||
*
|
||||
* Get a shared template url
|
||||
*
|
||||
* @param int $campaignId Id of the campaign or template (required)
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
*/
|
||||
public function getSharedTemplateUrlAsyncWithHttpInfo($campaignId)
|
||||
{
|
||||
$returnType = '\SendinBlue\Client\Model\GetSharedTemplateUrl';
|
||||
$request = $this->getSharedTemplateUrlRequest($campaignId);
|
||||
|
||||
return $this->client
|
||||
->sendAsync($request, $this->createHttpClientOption())
|
||||
->then(
|
||||
function ($response) use ($returnType) {
|
||||
$responseBody = $response->getBody();
|
||||
if ($returnType === '\SplFileObject') {
|
||||
$content = $responseBody; //stream goes to serializer
|
||||
} else {
|
||||
$content = $responseBody->getContents();
|
||||
if ($returnType !== 'string') {
|
||||
$content = json_decode($content);
|
||||
}
|
||||
}
|
||||
|
||||
return [
|
||||
ObjectSerializer::deserialize($content, $returnType, []),
|
||||
$response->getStatusCode(),
|
||||
$response->getHeaders()
|
||||
];
|
||||
},
|
||||
function ($exception) {
|
||||
$response = $exception->getResponse();
|
||||
$statusCode = $response->getStatusCode();
|
||||
throw new ApiException(
|
||||
sprintf(
|
||||
'[%d] Error connecting to the API (%s)',
|
||||
$statusCode,
|
||||
$exception->getRequest()->getUri()
|
||||
),
|
||||
$statusCode,
|
||||
$response->getHeaders(),
|
||||
$response->getBody()
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create request for operation 'getSharedTemplateUrl'
|
||||
*
|
||||
* @param int $campaignId Id of the campaign or template (required)
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
protected function getSharedTemplateUrlRequest($campaignId)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling getSharedTemplateUrl'
|
||||
);
|
||||
}
|
||||
|
||||
$resourcePath = '/emailCampaigns/{campaignId}/sharedUrl';
|
||||
$formParams = [];
|
||||
$queryParams = [];
|
||||
$headerParams = [];
|
||||
$httpBody = '';
|
||||
$multipart = false;
|
||||
|
||||
|
||||
// path params
|
||||
if ($campaignId !== null) {
|
||||
$resourcePath = str_replace(
|
||||
'{' . 'campaignId' . '}',
|
||||
ObjectSerializer::toPathValue($campaignId),
|
||||
$resourcePath
|
||||
);
|
||||
}
|
||||
|
||||
// body params
|
||||
$_tempBody = null;
|
||||
|
||||
if ($multipart) {
|
||||
$headers = $this->headerSelector->selectHeadersForMultipart(
|
||||
['application/json']
|
||||
);
|
||||
} else {
|
||||
$headers = $this->headerSelector->selectHeaders(
|
||||
['application/json'],
|
||||
['application/json']
|
||||
);
|
||||
}
|
||||
|
||||
// for model (json/xml)
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1514,7 +2152,7 @@ class EmailCampaignsApi
|
||||
/**
|
||||
* Operation sendEmailCampaignNow
|
||||
*
|
||||
* Send an email campaign id of the campaign immediately
|
||||
* Send an email campaign immediately, based on campaignId
|
||||
*
|
||||
* @param int $campaignId Id of the campaign (required)
|
||||
*
|
||||
@ -1530,7 +2168,7 @@ class EmailCampaignsApi
|
||||
/**
|
||||
* Operation sendEmailCampaignNowWithHttpInfo
|
||||
*
|
||||
* Send an email campaign id of the campaign immediately
|
||||
* Send an email campaign immediately, based on campaignId
|
||||
*
|
||||
* @param int $campaignId Id of the campaign (required)
|
||||
*
|
||||
@ -1607,7 +2245,7 @@ class EmailCampaignsApi
|
||||
/**
|
||||
* Operation sendEmailCampaignNowAsync
|
||||
*
|
||||
* Send an email campaign id of the campaign immediately
|
||||
* Send an email campaign immediately, based on campaignId
|
||||
*
|
||||
* @param int $campaignId Id of the campaign (required)
|
||||
*
|
||||
@ -1627,7 +2265,7 @@ class EmailCampaignsApi
|
||||
/**
|
||||
* Operation sendEmailCampaignNowAsyncWithHttpInfo
|
||||
*
|
||||
* Send an email campaign id of the campaign immediately
|
||||
* Send an email campaign immediately, based on campaignId
|
||||
*
|
||||
* @param int $campaignId Id of the campaign (required)
|
||||
*
|
||||
@ -1673,7 +2311,7 @@ class EmailCampaignsApi
|
||||
protected function sendEmailCampaignNowRequest($campaignId)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null) {
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling sendEmailCampaignNow'
|
||||
);
|
||||
@ -1714,9 +2352,16 @@ class EmailCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1929,13 +2574,13 @@ class EmailCampaignsApi
|
||||
protected function sendReportRequest($campaignId, $sendReport)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null) {
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling sendReport'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'sendReport' is set
|
||||
if ($sendReport === null) {
|
||||
if ($sendReport === null || (is_array($sendReport) && count($sendReport) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $sendReport when calling sendReport'
|
||||
);
|
||||
@ -1979,9 +2624,16 @@ class EmailCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -2194,13 +2846,13 @@ class EmailCampaignsApi
|
||||
protected function sendTestEmailRequest($campaignId, $emailTo)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null) {
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling sendTestEmail'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'emailTo' is set
|
||||
if ($emailTo === null) {
|
||||
if ($emailTo === null || (is_array($emailTo) && count($emailTo) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $emailTo when calling sendTestEmail'
|
||||
);
|
||||
@ -2244,9 +2896,16 @@ class EmailCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -2459,13 +3118,13 @@ class EmailCampaignsApi
|
||||
protected function updateCampaignStatusRequest($campaignId, $status)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null) {
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling updateCampaignStatus'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'status' is set
|
||||
if ($status === null) {
|
||||
if ($status === null || (is_array($status) && count($status) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $status when calling updateCampaignStatus'
|
||||
);
|
||||
@ -2509,9 +3168,16 @@ class EmailCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -2724,13 +3390,13 @@ class EmailCampaignsApi
|
||||
protected function updateEmailCampaignRequest($campaignId, $emailCampaign)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null) {
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling updateEmailCampaign'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'emailCampaign' is set
|
||||
if ($emailCampaign === null) {
|
||||
if ($emailCampaign === null || (is_array($emailCampaign) && count($emailCampaign) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $emailCampaign when calling updateEmailCampaign'
|
||||
);
|
||||
@ -2774,9 +3440,16 @@ class EmailCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
|
@ -12,12 +12,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -59,6 +59,11 @@ class FoldersApi
|
||||
*/
|
||||
protected $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
@ -265,7 +270,7 @@ class FoldersApi
|
||||
protected function createFolderRequest($createFolder)
|
||||
{
|
||||
// verify the required parameter 'createFolder' is set
|
||||
if ($createFolder === null) {
|
||||
if ($createFolder === null || (is_array($createFolder) && count($createFolder) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $createFolder when calling createFolder'
|
||||
);
|
||||
@ -301,9 +306,16 @@ class FoldersApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -511,7 +523,7 @@ class FoldersApi
|
||||
protected function deleteFolderRequest($folderId)
|
||||
{
|
||||
// verify the required parameter 'folderId' is set
|
||||
if ($folderId === null) {
|
||||
if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $folderId when calling deleteFolder'
|
||||
);
|
||||
@ -552,9 +564,16 @@ class FoldersApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -799,7 +818,7 @@ class FoldersApi
|
||||
protected function getFolderRequest($folderId)
|
||||
{
|
||||
// verify the required parameter 'folderId' is set
|
||||
if ($folderId === null) {
|
||||
if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $folderId when calling getFolder'
|
||||
);
|
||||
@ -840,9 +859,16 @@ class FoldersApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1097,7 +1123,7 @@ class FoldersApi
|
||||
protected function getFolderListsRequest($folderId, $limit = '10', $offset = '0')
|
||||
{
|
||||
// verify the required parameter 'folderId' is set
|
||||
if ($folderId === null) {
|
||||
if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $folderId when calling getFolderLists'
|
||||
);
|
||||
@ -1150,9 +1176,16 @@ class FoldersApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1394,7 +1427,7 @@ class FoldersApi
|
||||
protected function getFoldersRequest($limit, $offset)
|
||||
{
|
||||
// verify the required parameter 'limit' is set
|
||||
if ($limit === null) {
|
||||
if ($limit === null || (is_array($limit) && count($limit) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $limit when calling getFolders'
|
||||
);
|
||||
@ -1404,7 +1437,7 @@ class FoldersApi
|
||||
}
|
||||
|
||||
// verify the required parameter 'offset' is set
|
||||
if ($offset === null) {
|
||||
if ($offset === null || (is_array($offset) && count($offset) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $offset when calling getFolders'
|
||||
);
|
||||
@ -1445,9 +1478,16 @@ class FoldersApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1660,13 +1700,13 @@ class FoldersApi
|
||||
protected function updateFolderRequest($folderId, $updateFolder)
|
||||
{
|
||||
// verify the required parameter 'folderId' is set
|
||||
if ($folderId === null) {
|
||||
if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $folderId when calling updateFolder'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'updateFolder' is set
|
||||
if ($updateFolder === null) {
|
||||
if ($updateFolder === null || (is_array($updateFolder) && count($updateFolder) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $updateFolder when calling updateFolder'
|
||||
);
|
||||
@ -1710,9 +1750,16 @@ class FoldersApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
|
@ -12,12 +12,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -59,6 +59,11 @@ class ListsApi
|
||||
*/
|
||||
protected $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
@ -278,13 +283,13 @@ class ListsApi
|
||||
protected function addContactToListRequest($listId, $contactEmails)
|
||||
{
|
||||
// verify the required parameter 'listId' is set
|
||||
if ($listId === null) {
|
||||
if ($listId === null || (is_array($listId) && count($listId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $listId when calling addContactToList'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'contactEmails' is set
|
||||
if ($contactEmails === null) {
|
||||
if ($contactEmails === null || (is_array($contactEmails) && count($contactEmails) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $contactEmails when calling addContactToList'
|
||||
);
|
||||
@ -328,9 +333,16 @@ class ListsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -567,7 +579,7 @@ class ListsApi
|
||||
protected function createListRequest($createList)
|
||||
{
|
||||
// verify the required parameter 'createList' is set
|
||||
if ($createList === null) {
|
||||
if ($createList === null || (is_array($createList) && count($createList) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $createList when calling createList'
|
||||
);
|
||||
@ -603,9 +615,16 @@ class ListsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -813,7 +832,7 @@ class ListsApi
|
||||
protected function deleteListRequest($listId)
|
||||
{
|
||||
// verify the required parameter 'listId' is set
|
||||
if ($listId === null) {
|
||||
if ($listId === null || (is_array($listId) && count($listId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $listId when calling deleteList'
|
||||
);
|
||||
@ -854,9 +873,16 @@ class ListsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1116,7 +1142,7 @@ class ListsApi
|
||||
protected function getContactsFromListRequest($listId, $modifiedSince = null, $limit = '50', $offset = '0')
|
||||
{
|
||||
// verify the required parameter 'listId' is set
|
||||
if ($listId === null) {
|
||||
if ($listId === null || (is_array($listId) && count($listId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $listId when calling getContactsFromList'
|
||||
);
|
||||
@ -1173,9 +1199,16 @@ class ListsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1430,7 +1463,7 @@ class ListsApi
|
||||
protected function getFolderListsRequest($folderId, $limit = '10', $offset = '0')
|
||||
{
|
||||
// verify the required parameter 'folderId' is set
|
||||
if ($folderId === null) {
|
||||
if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $folderId when calling getFolderLists'
|
||||
);
|
||||
@ -1483,9 +1516,16 @@ class ListsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1730,7 +1770,7 @@ class ListsApi
|
||||
protected function getListRequest($listId)
|
||||
{
|
||||
// verify the required parameter 'listId' is set
|
||||
if ($listId === null) {
|
||||
if ($listId === null || (is_array($listId) && count($listId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $listId when calling getList'
|
||||
);
|
||||
@ -1771,9 +1811,16 @@ class ListsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -2054,9 +2101,16 @@ class ListsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -2306,13 +2360,13 @@ class ListsApi
|
||||
protected function removeContactFromListRequest($listId, $contactEmails)
|
||||
{
|
||||
// verify the required parameter 'listId' is set
|
||||
if ($listId === null) {
|
||||
if ($listId === null || (is_array($listId) && count($listId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $listId when calling removeContactFromList'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'contactEmails' is set
|
||||
if ($contactEmails === null) {
|
||||
if ($contactEmails === null || (is_array($contactEmails) && count($contactEmails) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $contactEmails when calling removeContactFromList'
|
||||
);
|
||||
@ -2356,9 +2410,16 @@ class ListsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -2571,13 +2632,13 @@ class ListsApi
|
||||
protected function updateListRequest($listId, $updateList)
|
||||
{
|
||||
// verify the required parameter 'listId' is set
|
||||
if ($listId === null) {
|
||||
if ($listId === null || (is_array($listId) && count($listId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $listId when calling updateList'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'updateList' is set
|
||||
if ($updateList === null) {
|
||||
if ($updateList === null || (is_array($updateList) && count($updateList) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $updateList when calling updateList'
|
||||
);
|
||||
@ -2621,9 +2682,16 @@ class ListsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
|
@ -12,12 +12,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -59,6 +59,11 @@ class ProcessApi
|
||||
*/
|
||||
protected $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
@ -273,7 +278,7 @@ class ProcessApi
|
||||
protected function getProcessRequest($processId)
|
||||
{
|
||||
// verify the required parameter 'processId' is set
|
||||
if ($processId === null) {
|
||||
if ($processId === null || (is_array($processId) && count($processId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $processId when calling getProcess'
|
||||
);
|
||||
@ -314,9 +319,16 @@ class ProcessApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -597,9 +609,16 @@ class ProcessApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
|
@ -12,12 +12,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -59,6 +59,11 @@ class ResellerApi
|
||||
*/
|
||||
protected $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
@ -286,13 +291,13 @@ class ResellerApi
|
||||
protected function addCreditsRequest($childAuthKey, $addCredits)
|
||||
{
|
||||
// verify the required parameter 'childAuthKey' is set
|
||||
if ($childAuthKey === null) {
|
||||
if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $childAuthKey when calling addCredits'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'addCredits' is set
|
||||
if ($addCredits === null) {
|
||||
if ($addCredits === null || (is_array($addCredits) && count($addCredits) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $addCredits when calling addCredits'
|
||||
);
|
||||
@ -336,9 +341,16 @@ class ResellerApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -551,13 +563,13 @@ class ResellerApi
|
||||
protected function associateIpToChildRequest($childAuthKey, $ip)
|
||||
{
|
||||
// verify the required parameter 'childAuthKey' is set
|
||||
if ($childAuthKey === null) {
|
||||
if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $childAuthKey when calling associateIpToChild'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'ip' is set
|
||||
if ($ip === null) {
|
||||
if ($ip === null || (is_array($ip) && count($ip) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $ip when calling associateIpToChild'
|
||||
);
|
||||
@ -601,9 +613,16 @@ class ResellerApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -663,7 +682,7 @@ class ResellerApi
|
||||
* Creates a domain for a child account
|
||||
*
|
||||
* @param string $childAuthKey auth key of reseller's child (required)
|
||||
* @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account (required)
|
||||
* @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required)
|
||||
*
|
||||
* @throws \SendinBlue\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
@ -680,7 +699,7 @@ class ResellerApi
|
||||
* Creates a domain for a child account
|
||||
*
|
||||
* @param string $childAuthKey auth key of reseller's child (required)
|
||||
* @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account (required)
|
||||
* @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required)
|
||||
*
|
||||
* @throws \SendinBlue\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
@ -758,7 +777,7 @@ class ResellerApi
|
||||
* Creates a domain for a child account
|
||||
*
|
||||
* @param string $childAuthKey auth key of reseller's child (required)
|
||||
* @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account (required)
|
||||
* @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required)
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
@ -779,7 +798,7 @@ class ResellerApi
|
||||
* Creates a domain for a child account
|
||||
*
|
||||
* @param string $childAuthKey auth key of reseller's child (required)
|
||||
* @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account (required)
|
||||
* @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required)
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
@ -816,7 +835,7 @@ class ResellerApi
|
||||
* Create request for operation 'createChildDomain'
|
||||
*
|
||||
* @param string $childAuthKey auth key of reseller's child (required)
|
||||
* @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account (required)
|
||||
* @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required)
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
@ -824,13 +843,13 @@ class ResellerApi
|
||||
protected function createChildDomainRequest($childAuthKey, $addChildDomain)
|
||||
{
|
||||
// verify the required parameter 'childAuthKey' is set
|
||||
if ($childAuthKey === null) {
|
||||
if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $childAuthKey when calling createChildDomain'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'addChildDomain' is set
|
||||
if ($addChildDomain === null) {
|
||||
if ($addChildDomain === null || (is_array($addChildDomain) && count($addChildDomain) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $addChildDomain when calling createChildDomain'
|
||||
);
|
||||
@ -874,9 +893,16 @@ class ResellerApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1151,9 +1177,16 @@ class ResellerApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1374,13 +1407,13 @@ class ResellerApi
|
||||
protected function deleteChildDomainRequest($childAuthKey, $domainName)
|
||||
{
|
||||
// verify the required parameter 'childAuthKey' is set
|
||||
if ($childAuthKey === null) {
|
||||
if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $childAuthKey when calling deleteChildDomain'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'domainName' is set
|
||||
if ($domainName === null) {
|
||||
if ($domainName === null || (is_array($domainName) && count($domainName) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $domainName when calling deleteChildDomain'
|
||||
);
|
||||
@ -1429,9 +1462,16 @@ class ResellerApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1647,7 +1687,7 @@ class ResellerApi
|
||||
protected function deleteResellerChildRequest($childAuthKey)
|
||||
{
|
||||
// verify the required parameter 'childAuthKey' is set
|
||||
if ($childAuthKey === null) {
|
||||
if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $childAuthKey when calling deleteResellerChild'
|
||||
);
|
||||
@ -1688,9 +1728,16 @@ class ResellerApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1903,13 +1950,13 @@ class ResellerApi
|
||||
protected function dissociateIpFromChildRequest($childAuthKey, $ip)
|
||||
{
|
||||
// verify the required parameter 'childAuthKey' is set
|
||||
if ($childAuthKey === null) {
|
||||
if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $childAuthKey when calling dissociateIpFromChild'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'ip' is set
|
||||
if ($ip === null) {
|
||||
if ($ip === null || (is_array($ip) && count($ip) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $ip when calling dissociateIpFromChild'
|
||||
);
|
||||
@ -1953,9 +2000,16 @@ class ResellerApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -2009,6 +2063,309 @@ class ResellerApi
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Operation getChildAccountCreationStatus
|
||||
*
|
||||
* Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied
|
||||
*
|
||||
* @param string $childAuthKey auth key of reseller's child (required)
|
||||
*
|
||||
* @throws \SendinBlue\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \SendinBlue\Client\Model\GetChildAccountCreationStatus
|
||||
*/
|
||||
public function getChildAccountCreationStatus($childAuthKey)
|
||||
{
|
||||
list($response) = $this->getChildAccountCreationStatusWithHttpInfo($childAuthKey);
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Operation getChildAccountCreationStatusWithHttpInfo
|
||||
*
|
||||
* Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied
|
||||
*
|
||||
* @param string $childAuthKey auth key of reseller's child (required)
|
||||
*
|
||||
* @throws \SendinBlue\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @return array of \SendinBlue\Client\Model\GetChildAccountCreationStatus, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function getChildAccountCreationStatusWithHttpInfo($childAuthKey)
|
||||
{
|
||||
$returnType = '\SendinBlue\Client\Model\GetChildAccountCreationStatus';
|
||||
$request = $this->getChildAccountCreationStatusRequest($childAuthKey);
|
||||
|
||||
try {
|
||||
$options = $this->createHttpClientOption();
|
||||
try {
|
||||
$response = $this->client->send($request, $options);
|
||||
} catch (RequestException $e) {
|
||||
throw new ApiException(
|
||||
"[{$e->getCode()}] {$e->getMessage()}",
|
||||
$e->getCode(),
|
||||
$e->getResponse() ? $e->getResponse()->getHeaders() : null,
|
||||
$e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
|
||||
);
|
||||
}
|
||||
|
||||
$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();
|
||||
if ($returnType === '\SplFileObject') {
|
||||
$content = $responseBody; //stream goes to serializer
|
||||
} else {
|
||||
$content = $responseBody->getContents();
|
||||
if ($returnType !== 'string') {
|
||||
$content = json_decode($content);
|
||||
}
|
||||
}
|
||||
|
||||
return [
|
||||
ObjectSerializer::deserialize($content, $returnType, []),
|
||||
$response->getStatusCode(),
|
||||
$response->getHeaders()
|
||||
];
|
||||
|
||||
} catch (ApiException $e) {
|
||||
switch ($e->getCode()) {
|
||||
case 200:
|
||||
$data = ObjectSerializer::deserialize(
|
||||
$e->getResponseBody(),
|
||||
'\SendinBlue\Client\Model\GetChildAccountCreationStatus',
|
||||
$e->getResponseHeaders()
|
||||
);
|
||||
$e->setResponseObject($data);
|
||||
break;
|
||||
case 400:
|
||||
$data = ObjectSerializer::deserialize(
|
||||
$e->getResponseBody(),
|
||||
'\SendinBlue\Client\Model\ErrorModel',
|
||||
$e->getResponseHeaders()
|
||||
);
|
||||
$e->setResponseObject($data);
|
||||
break;
|
||||
case 403:
|
||||
$data = ObjectSerializer::deserialize(
|
||||
$e->getResponseBody(),
|
||||
'\SendinBlue\Client\Model\ErrorModel',
|
||||
$e->getResponseHeaders()
|
||||
);
|
||||
$e->setResponseObject($data);
|
||||
break;
|
||||
case 404:
|
||||
$data = ObjectSerializer::deserialize(
|
||||
$e->getResponseBody(),
|
||||
'\SendinBlue\Client\Model\ErrorModel',
|
||||
$e->getResponseHeaders()
|
||||
);
|
||||
$e->setResponseObject($data);
|
||||
break;
|
||||
}
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Operation getChildAccountCreationStatusAsync
|
||||
*
|
||||
* Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied
|
||||
*
|
||||
* @param string $childAuthKey auth key of reseller's child (required)
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
*/
|
||||
public function getChildAccountCreationStatusAsync($childAuthKey)
|
||||
{
|
||||
return $this->getChildAccountCreationStatusAsyncWithHttpInfo($childAuthKey)
|
||||
->then(
|
||||
function ($response) {
|
||||
return $response[0];
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Operation getChildAccountCreationStatusAsyncWithHttpInfo
|
||||
*
|
||||
* Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied
|
||||
*
|
||||
* @param string $childAuthKey auth key of reseller's child (required)
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
*/
|
||||
public function getChildAccountCreationStatusAsyncWithHttpInfo($childAuthKey)
|
||||
{
|
||||
$returnType = '\SendinBlue\Client\Model\GetChildAccountCreationStatus';
|
||||
$request = $this->getChildAccountCreationStatusRequest($childAuthKey);
|
||||
|
||||
return $this->client
|
||||
->sendAsync($request, $this->createHttpClientOption())
|
||||
->then(
|
||||
function ($response) use ($returnType) {
|
||||
$responseBody = $response->getBody();
|
||||
if ($returnType === '\SplFileObject') {
|
||||
$content = $responseBody; //stream goes to serializer
|
||||
} else {
|
||||
$content = $responseBody->getContents();
|
||||
if ($returnType !== 'string') {
|
||||
$content = json_decode($content);
|
||||
}
|
||||
}
|
||||
|
||||
return [
|
||||
ObjectSerializer::deserialize($content, $returnType, []),
|
||||
$response->getStatusCode(),
|
||||
$response->getHeaders()
|
||||
];
|
||||
},
|
||||
function ($exception) {
|
||||
$response = $exception->getResponse();
|
||||
$statusCode = $response->getStatusCode();
|
||||
throw new ApiException(
|
||||
sprintf(
|
||||
'[%d] Error connecting to the API (%s)',
|
||||
$statusCode,
|
||||
$exception->getRequest()->getUri()
|
||||
),
|
||||
$statusCode,
|
||||
$response->getHeaders(),
|
||||
$response->getBody()
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create request for operation 'getChildAccountCreationStatus'
|
||||
*
|
||||
* @param string $childAuthKey auth key of reseller's child (required)
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
protected function getChildAccountCreationStatusRequest($childAuthKey)
|
||||
{
|
||||
// verify the required parameter 'childAuthKey' is set
|
||||
if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $childAuthKey when calling getChildAccountCreationStatus'
|
||||
);
|
||||
}
|
||||
|
||||
$resourcePath = '/reseller/children/{childAuthKey}/accountCreationStatus';
|
||||
$formParams = [];
|
||||
$queryParams = [];
|
||||
$headerParams = [];
|
||||
$httpBody = '';
|
||||
$multipart = false;
|
||||
|
||||
|
||||
// path params
|
||||
if ($childAuthKey !== null) {
|
||||
$resourcePath = str_replace(
|
||||
'{' . 'childAuthKey' . '}',
|
||||
ObjectSerializer::toPathValue($childAuthKey),
|
||||
$resourcePath
|
||||
);
|
||||
}
|
||||
|
||||
// body params
|
||||
$_tempBody = null;
|
||||
|
||||
if ($multipart) {
|
||||
$headers = $this->headerSelector->selectHeadersForMultipart(
|
||||
['application/json']
|
||||
);
|
||||
} else {
|
||||
$headers = $this->headerSelector->selectHeaders(
|
||||
['application/json'],
|
||||
['application/json']
|
||||
);
|
||||
}
|
||||
|
||||
// for model (json/xml)
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
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
|
||||
];
|
||||
}
|
||||
// for HTTP post (form)
|
||||
$httpBody = new MultipartStream($multipartContents);
|
||||
|
||||
} elseif ($headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($formParams);
|
||||
|
||||
} else {
|
||||
// for HTTP post (form)
|
||||
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
|
||||
}
|
||||
}
|
||||
|
||||
// this endpoint requires API key authentication
|
||||
$apiKey = $this->config->getApiKeyWithPrefix('api-key');
|
||||
if ($apiKey !== null) {
|
||||
$headers['api-key'] = $apiKey;
|
||||
}
|
||||
// this endpoint requires API key authentication
|
||||
$apiKey = $this->config->getApiKeyWithPrefix('partner-key');
|
||||
if ($apiKey !== null) {
|
||||
$headers['partner-key'] = $apiKey;
|
||||
}
|
||||
|
||||
$defaultHeaders = [];
|
||||
if ($this->config->getUserAgent()) {
|
||||
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
|
||||
}
|
||||
|
||||
$headers = array_merge(
|
||||
$defaultHeaders,
|
||||
$headerParams,
|
||||
$headers
|
||||
);
|
||||
|
||||
$query = \GuzzleHttp\Psr7\build_query($queryParams);
|
||||
return new Request(
|
||||
'GET',
|
||||
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
|
||||
$headers,
|
||||
$httpBody
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Operation getChildDomains
|
||||
*
|
||||
@ -2208,7 +2565,7 @@ class ResellerApi
|
||||
protected function getChildDomainsRequest($childAuthKey)
|
||||
{
|
||||
// verify the required parameter 'childAuthKey' is set
|
||||
if ($childAuthKey === null) {
|
||||
if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $childAuthKey when calling getChildDomains'
|
||||
);
|
||||
@ -2249,9 +2606,16 @@ class ResellerApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -2504,7 +2868,7 @@ class ResellerApi
|
||||
protected function getChildInfoRequest($childAuthKey)
|
||||
{
|
||||
// verify the required parameter 'childAuthKey' is set
|
||||
if ($childAuthKey === null) {
|
||||
if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $childAuthKey when calling getChildInfo'
|
||||
);
|
||||
@ -2545,9 +2909,16 @@ class ResellerApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -2606,14 +2977,16 @@ class ResellerApi
|
||||
*
|
||||
* Gets the list of all reseller's children accounts
|
||||
*
|
||||
* @param int $limit Number of documents for child accounts information per page (optional, default to 10)
|
||||
* @param int $offset Index of the first document in the page (optional, default to 0)
|
||||
*
|
||||
* @throws \SendinBlue\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \SendinBlue\Client\Model\GetChildrenList
|
||||
*/
|
||||
public function getResellerChilds()
|
||||
public function getResellerChilds($limit = '10', $offset = '0')
|
||||
{
|
||||
list($response) = $this->getResellerChildsWithHttpInfo();
|
||||
list($response) = $this->getResellerChildsWithHttpInfo($limit, $offset);
|
||||
return $response;
|
||||
}
|
||||
|
||||
@ -2622,15 +2995,17 @@ class ResellerApi
|
||||
*
|
||||
* Gets the list of all reseller's children accounts
|
||||
*
|
||||
* @param int $limit Number of documents for child accounts information per page (optional, default to 10)
|
||||
* @param int $offset Index of the first document in the page (optional, default to 0)
|
||||
*
|
||||
* @throws \SendinBlue\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @return array of \SendinBlue\Client\Model\GetChildrenList, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function getResellerChildsWithHttpInfo()
|
||||
public function getResellerChildsWithHttpInfo($limit = '10', $offset = '0')
|
||||
{
|
||||
$returnType = '\SendinBlue\Client\Model\GetChildrenList';
|
||||
$request = $this->getResellerChildsRequest();
|
||||
$request = $this->getResellerChildsRequest($limit, $offset);
|
||||
|
||||
try {
|
||||
$options = $this->createHttpClientOption();
|
||||
@ -2704,13 +3079,15 @@ class ResellerApi
|
||||
*
|
||||
* Gets the list of all reseller's children accounts
|
||||
*
|
||||
* @param int $limit Number of documents for child accounts information per page (optional, default to 10)
|
||||
* @param int $offset Index of the first document in the page (optional, default to 0)
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
*/
|
||||
public function getResellerChildsAsync()
|
||||
public function getResellerChildsAsync($limit = '10', $offset = '0')
|
||||
{
|
||||
return $this->getResellerChildsAsyncWithHttpInfo()
|
||||
return $this->getResellerChildsAsyncWithHttpInfo($limit, $offset)
|
||||
->then(
|
||||
function ($response) {
|
||||
return $response[0];
|
||||
@ -2723,14 +3100,16 @@ class ResellerApi
|
||||
*
|
||||
* Gets the list of all reseller's children accounts
|
||||
*
|
||||
* @param int $limit Number of documents for child accounts information per page (optional, default to 10)
|
||||
* @param int $offset Index of the first document in the page (optional, default to 0)
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
*/
|
||||
public function getResellerChildsAsyncWithHttpInfo()
|
||||
public function getResellerChildsAsyncWithHttpInfo($limit = '10', $offset = '0')
|
||||
{
|
||||
$returnType = '\SendinBlue\Client\Model\GetChildrenList';
|
||||
$request = $this->getResellerChildsRequest();
|
||||
$request = $this->getResellerChildsRequest($limit, $offset);
|
||||
|
||||
return $this->client
|
||||
->sendAsync($request, $this->createHttpClientOption())
|
||||
@ -2772,12 +3151,18 @@ class ResellerApi
|
||||
/**
|
||||
* Create request for operation 'getResellerChilds'
|
||||
*
|
||||
* @param int $limit Number of documents for child accounts information per page (optional, default to 10)
|
||||
* @param int $offset Index of the first document in the page (optional, default to 0)
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
protected function getResellerChildsRequest()
|
||||
protected function getResellerChildsRequest($limit = '10', $offset = '0')
|
||||
{
|
||||
if ($limit !== null && $limit > 20) {
|
||||
throw new \InvalidArgumentException('invalid value for "$limit" when calling ResellerApi.getResellerChilds, must be smaller than or equal to 20.');
|
||||
}
|
||||
|
||||
|
||||
$resourcePath = '/reseller/children';
|
||||
$formParams = [];
|
||||
@ -2786,6 +3171,14 @@ class ResellerApi
|
||||
$httpBody = '';
|
||||
$multipart = false;
|
||||
|
||||
// query params
|
||||
if ($limit !== null) {
|
||||
$queryParams['limit'] = ObjectSerializer::toQueryValue($limit);
|
||||
}
|
||||
// query params
|
||||
if ($offset !== null) {
|
||||
$queryParams['offset'] = ObjectSerializer::toQueryValue($offset);
|
||||
}
|
||||
|
||||
|
||||
// body params
|
||||
@ -2806,9 +3199,16 @@ class ResellerApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -3061,7 +3461,7 @@ class ResellerApi
|
||||
protected function getSsoTokenRequest($childAuthKey)
|
||||
{
|
||||
// verify the required parameter 'childAuthKey' is set
|
||||
if ($childAuthKey === null) {
|
||||
if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $childAuthKey when calling getSsoToken'
|
||||
);
|
||||
@ -3102,9 +3502,16 @@ class ResellerApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -3362,13 +3769,13 @@ class ResellerApi
|
||||
protected function removeCreditsRequest($childAuthKey, $removeCredits)
|
||||
{
|
||||
// verify the required parameter 'childAuthKey' is set
|
||||
if ($childAuthKey === null) {
|
||||
if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $childAuthKey when calling removeCredits'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'removeCredits' is set
|
||||
if ($removeCredits === null) {
|
||||
if ($removeCredits === null || (is_array($removeCredits) && count($removeCredits) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $removeCredits when calling removeCredits'
|
||||
);
|
||||
@ -3412,9 +3819,16 @@ class ResellerApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -3635,13 +4049,13 @@ class ResellerApi
|
||||
protected function updateChildAccountStatusRequest($childAuthKey, $updateChildAccountStatus)
|
||||
{
|
||||
// verify the required parameter 'childAuthKey' is set
|
||||
if ($childAuthKey === null) {
|
||||
if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $childAuthKey when calling updateChildAccountStatus'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'updateChildAccountStatus' is set
|
||||
if ($updateChildAccountStatus === null) {
|
||||
if ($updateChildAccountStatus === null || (is_array($updateChildAccountStatus) && count($updateChildAccountStatus) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $updateChildAccountStatus when calling updateChildAccountStatus'
|
||||
);
|
||||
@ -3685,9 +4099,16 @@ class ResellerApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -3913,19 +4334,19 @@ class ResellerApi
|
||||
protected function updateChildDomainRequest($childAuthKey, $domainName, $updateChildDomain)
|
||||
{
|
||||
// verify the required parameter 'childAuthKey' is set
|
||||
if ($childAuthKey === null) {
|
||||
if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $childAuthKey when calling updateChildDomain'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'domainName' is set
|
||||
if ($domainName === null) {
|
||||
if ($domainName === null || (is_array($domainName) && count($domainName) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $domainName when calling updateChildDomain'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'updateChildDomain' is set
|
||||
if ($updateChildDomain === null) {
|
||||
if ($updateChildDomain === null || (is_array($updateChildDomain) && count($updateChildDomain) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $updateChildDomain when calling updateChildDomain'
|
||||
);
|
||||
@ -3977,9 +4398,16 @@ class ResellerApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -4200,13 +4628,13 @@ class ResellerApi
|
||||
protected function updateResellerChildRequest($childAuthKey, $resellerChild)
|
||||
{
|
||||
// verify the required parameter 'childAuthKey' is set
|
||||
if ($childAuthKey === null) {
|
||||
if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $childAuthKey when calling updateResellerChild'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'resellerChild' is set
|
||||
if ($resellerChild === null) {
|
||||
if ($resellerChild === null || (is_array($resellerChild) && count($resellerChild) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $resellerChild when calling updateResellerChild'
|
||||
);
|
||||
@ -4250,9 +4678,16 @@ class ResellerApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
|
@ -12,12 +12,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -59,6 +59,11 @@ class SMSCampaignsApi
|
||||
*/
|
||||
protected $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
@ -265,7 +270,7 @@ class SMSCampaignsApi
|
||||
protected function createSmsCampaignRequest($createSmsCampaign)
|
||||
{
|
||||
// verify the required parameter 'createSmsCampaign' is set
|
||||
if ($createSmsCampaign === null) {
|
||||
if ($createSmsCampaign === null || (is_array($createSmsCampaign) && count($createSmsCampaign) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $createSmsCampaign when calling createSmsCampaign'
|
||||
);
|
||||
@ -301,9 +306,16 @@ class SMSCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -511,7 +523,7 @@ class SMSCampaignsApi
|
||||
protected function deleteSmsCampaignRequest($campaignId)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null) {
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling deleteSmsCampaign'
|
||||
);
|
||||
@ -552,9 +564,16 @@ class SMSCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -799,7 +818,7 @@ class SMSCampaignsApi
|
||||
protected function getSmsCampaignRequest($campaignId)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null) {
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling getSmsCampaign'
|
||||
);
|
||||
@ -840,9 +859,16 @@ class SMSCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1150,9 +1176,16 @@ class SMSCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1402,7 +1435,7 @@ class SMSCampaignsApi
|
||||
protected function requestSmsRecipientExportRequest($campaignId, $recipientExport = null)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null) {
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling requestSmsRecipientExport'
|
||||
);
|
||||
@ -1446,9 +1479,16 @@ class SMSCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1664,7 +1704,7 @@ class SMSCampaignsApi
|
||||
protected function sendSmsCampaignNowRequest($campaignId)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null) {
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling sendSmsCampaignNow'
|
||||
);
|
||||
@ -1705,9 +1745,16 @@ class SMSCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1920,13 +1967,13 @@ class SMSCampaignsApi
|
||||
protected function sendSmsReportRequest($campaignId, $sendReport)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null) {
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling sendSmsReport'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'sendReport' is set
|
||||
if ($sendReport === null) {
|
||||
if ($sendReport === null || (is_array($sendReport) && count($sendReport) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $sendReport when calling sendSmsReport'
|
||||
);
|
||||
@ -1970,9 +2017,16 @@ class SMSCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -2185,13 +2239,13 @@ class SMSCampaignsApi
|
||||
protected function sendTestSmsRequest($campaignId, $phoneNumber)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null) {
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling sendTestSms'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'phoneNumber' is set
|
||||
if ($phoneNumber === null) {
|
||||
if ($phoneNumber === null || (is_array($phoneNumber) && count($phoneNumber) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $phoneNumber when calling sendTestSms'
|
||||
);
|
||||
@ -2235,9 +2289,16 @@ class SMSCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -2450,13 +2511,13 @@ class SMSCampaignsApi
|
||||
protected function updateSmsCampaignRequest($campaignId, $updateSmsCampaign)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null) {
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling updateSmsCampaign'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'updateSmsCampaign' is set
|
||||
if ($updateSmsCampaign === null) {
|
||||
if ($updateSmsCampaign === null || (is_array($updateSmsCampaign) && count($updateSmsCampaign) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $updateSmsCampaign when calling updateSmsCampaign'
|
||||
);
|
||||
@ -2500,9 +2561,16 @@ class SMSCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -2715,13 +2783,13 @@ class SMSCampaignsApi
|
||||
protected function updateSmsCampaignStatusRequest($campaignId, $status)
|
||||
{
|
||||
// verify the required parameter 'campaignId' is set
|
||||
if ($campaignId === null) {
|
||||
if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $campaignId when calling updateSmsCampaignStatus'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'status' is set
|
||||
if ($status === null) {
|
||||
if ($status === null || (is_array($status) && count($status) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $status when calling updateSmsCampaignStatus'
|
||||
);
|
||||
@ -2765,9 +2833,16 @@ class SMSCampaignsApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -12,12 +12,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -59,6 +59,11 @@ class SendersApi
|
||||
*/
|
||||
protected $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
@ -295,9 +300,16 @@ class SendersApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -505,7 +517,7 @@ class SendersApi
|
||||
protected function deleteSenderRequest($senderId)
|
||||
{
|
||||
// verify the required parameter 'senderId' is set
|
||||
if ($senderId === null) {
|
||||
if ($senderId === null || (is_array($senderId) && count($senderId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $senderId when calling deleteSender'
|
||||
);
|
||||
@ -546,9 +558,16 @@ class SendersApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -799,9 +818,16 @@ class SendersApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1046,7 +1072,7 @@ class SendersApi
|
||||
protected function getIpsFromSenderRequest($senderId)
|
||||
{
|
||||
// verify the required parameter 'senderId' is set
|
||||
if ($senderId === null) {
|
||||
if ($senderId === null || (is_array($senderId) && count($senderId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $senderId when calling getIpsFromSender'
|
||||
);
|
||||
@ -1087,9 +1113,16 @@ class SendersApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1366,9 +1399,16 @@ class SendersApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1581,7 +1621,7 @@ class SendersApi
|
||||
protected function updateSenderRequest($senderId, $sender = null)
|
||||
{
|
||||
// verify the required parameter 'senderId' is set
|
||||
if ($senderId === null) {
|
||||
if ($senderId === null || (is_array($senderId) && count($senderId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $senderId when calling updateSender'
|
||||
);
|
||||
@ -1625,9 +1665,16 @@ class SendersApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
|
@ -12,12 +12,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -59,6 +59,11 @@ class TransactionalSMSApi
|
||||
*/
|
||||
protected $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
@ -363,9 +368,16 @@ class TransactionalSMSApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -660,9 +672,16 @@ class TransactionalSMSApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -957,9 +976,16 @@ class TransactionalSMSApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1204,7 +1230,7 @@ class TransactionalSMSApi
|
||||
protected function sendTransacSmsRequest($sendTransacSms)
|
||||
{
|
||||
// verify the required parameter 'sendTransacSms' is set
|
||||
if ($sendTransacSms === null) {
|
||||
if ($sendTransacSms === null || (is_array($sendTransacSms) && count($sendTransacSms) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $sendTransacSms when calling sendTransacSms'
|
||||
);
|
||||
@ -1240,9 +1266,16 @@ class TransactionalSMSApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
|
@ -12,12 +12,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -59,6 +59,11 @@ class WebhooksApi
|
||||
*/
|
||||
protected $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
@ -265,7 +270,7 @@ class WebhooksApi
|
||||
protected function createWebhookRequest($createWebhook)
|
||||
{
|
||||
// verify the required parameter 'createWebhook' is set
|
||||
if ($createWebhook === null) {
|
||||
if ($createWebhook === null || (is_array($createWebhook) && count($createWebhook) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $createWebhook when calling createWebhook'
|
||||
);
|
||||
@ -301,9 +306,16 @@ class WebhooksApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -511,7 +523,7 @@ class WebhooksApi
|
||||
protected function deleteWebhookRequest($webhookId)
|
||||
{
|
||||
// verify the required parameter 'webhookId' is set
|
||||
if ($webhookId === null) {
|
||||
if ($webhookId === null || (is_array($webhookId) && count($webhookId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $webhookId when calling deleteWebhook'
|
||||
);
|
||||
@ -552,9 +564,16 @@ class WebhooksApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -799,7 +818,7 @@ class WebhooksApi
|
||||
protected function getWebhookRequest($webhookId)
|
||||
{
|
||||
// verify the required parameter 'webhookId' is set
|
||||
if ($webhookId === null) {
|
||||
if ($webhookId === null || (is_array($webhookId) && count($webhookId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $webhookId when calling getWebhook'
|
||||
);
|
||||
@ -840,9 +859,16 @@ class WebhooksApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1110,9 +1136,16 @@ class WebhooksApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
@ -1325,13 +1358,13 @@ class WebhooksApi
|
||||
protected function updateWebhookRequest($webhookId, $updateWebhook)
|
||||
{
|
||||
// verify the required parameter 'webhookId' is set
|
||||
if ($webhookId === null) {
|
||||
if ($webhookId === null || (is_array($webhookId) && count($webhookId) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $webhookId when calling updateWebhook'
|
||||
);
|
||||
}
|
||||
// verify the required parameter 'updateWebhook' is set
|
||||
if ($updateWebhook === null) {
|
||||
if ($updateWebhook === null || (is_array($updateWebhook) && count($updateWebhook) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Missing the required parameter $updateWebhook when calling updateWebhook'
|
||||
);
|
||||
@ -1375,9 +1408,16 @@ class WebhooksApi
|
||||
if (isset($_tempBody)) {
|
||||
// $_tempBody is the method argument, if present
|
||||
$httpBody = $_tempBody;
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
|
||||
if($headers['Content-Type'] === 'application/json') {
|
||||
// \stdClass has no __toString(), so we should encode it manually
|
||||
if ($httpBody instanceof \stdClass) {
|
||||
$httpBody = \GuzzleHttp\json_encode($httpBody);
|
||||
}
|
||||
// array has no __toString(), so we should encode it manually
|
||||
if(is_array($httpBody)) {
|
||||
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
|
||||
}
|
||||
}
|
||||
} elseif (count($formParams) > 0) {
|
||||
if ($multipart) {
|
||||
|
@ -12,12 +12,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -12,12 +12,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -12,12 +12,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
|
515
wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AbTestCampaignResult.php
vendored
Normal file
515
wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AbTestCampaignResult.php
vendored
Normal file
@ -0,0 +1,515 @@
|
||||
<?php
|
||||
/**
|
||||
* AbTestCampaignResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package SendinBlue\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.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 SendinBlue\Client\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use \SendinBlue\Client\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* AbTestCampaignResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package SendinBlue\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class AbTestCampaignResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'abTestCampaignResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'winningVersion' => 'string',
|
||||
'winningCriteria' => 'string',
|
||||
'winningSubjectLine' => 'string',
|
||||
'openRate' => 'string',
|
||||
'clickRate' => 'string',
|
||||
'winningVersionRate' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'winningVersion' => null,
|
||||
'winningCriteria' => null,
|
||||
'winningSubjectLine' => null,
|
||||
'openRate' => null,
|
||||
'clickRate' => null,
|
||||
'winningVersionRate' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'winningVersion' => 'winningVersion',
|
||||
'winningCriteria' => 'winningCriteria',
|
||||
'winningSubjectLine' => 'winningSubjectLine',
|
||||
'openRate' => 'openRate',
|
||||
'clickRate' => 'clickRate',
|
||||
'winningVersionRate' => 'winningVersionRate'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'winningVersion' => 'setWinningVersion',
|
||||
'winningCriteria' => 'setWinningCriteria',
|
||||
'winningSubjectLine' => 'setWinningSubjectLine',
|
||||
'openRate' => 'setOpenRate',
|
||||
'clickRate' => 'setClickRate',
|
||||
'winningVersionRate' => 'setWinningVersionRate'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'winningVersion' => 'getWinningVersion',
|
||||
'winningCriteria' => 'getWinningCriteria',
|
||||
'winningSubjectLine' => 'getWinningSubjectLine',
|
||||
'openRate' => 'getOpenRate',
|
||||
'clickRate' => 'getClickRate',
|
||||
'winningVersionRate' => 'getWinningVersionRate'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
const WINNING_VERSION_NOT_AVAILABLE = 'notAvailable';
|
||||
const WINNING_VERSION_PENDING = 'pending';
|
||||
const WINNING_VERSION_TIE = 'tie';
|
||||
const WINNING_VERSION_A = 'A';
|
||||
const WINNING_VERSION_B = 'B';
|
||||
const WINNING_CRITERIA_OPEN = 'Open';
|
||||
const WINNING_CRITERIA_CLICK = 'Click';
|
||||
|
||||
|
||||
/**
|
||||
* Gets allowable values of the enum
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getWinningVersionAllowableValues()
|
||||
{
|
||||
return [
|
||||
self::WINNING_VERSION_NOT_AVAILABLE,
|
||||
self::WINNING_VERSION_PENDING,
|
||||
self::WINNING_VERSION_TIE,
|
||||
self::WINNING_VERSION_A,
|
||||
self::WINNING_VERSION_B,
|
||||
];
|
||||
}
|
||||
/**
|
||||
* Gets allowable values of the enum
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getWinningCriteriaAllowableValues()
|
||||
{
|
||||
return [
|
||||
self::WINNING_CRITERIA_OPEN,
|
||||
self::WINNING_CRITERIA_CLICK,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['winningVersion'] = isset($data['winningVersion']) ? $data['winningVersion'] : null;
|
||||
$this->container['winningCriteria'] = isset($data['winningCriteria']) ? $data['winningCriteria'] : null;
|
||||
$this->container['winningSubjectLine'] = isset($data['winningSubjectLine']) ? $data['winningSubjectLine'] : null;
|
||||
$this->container['openRate'] = isset($data['openRate']) ? $data['openRate'] : null;
|
||||
$this->container['clickRate'] = isset($data['clickRate']) ? $data['clickRate'] : null;
|
||||
$this->container['winningVersionRate'] = isset($data['winningVersionRate']) ? $data['winningVersionRate'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
$allowedValues = $this->getWinningVersionAllowableValues();
|
||||
if (!is_null($this->container['winningVersion']) && !in_array($this->container['winningVersion'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'winningVersion', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
);
|
||||
}
|
||||
|
||||
$allowedValues = $this->getWinningCriteriaAllowableValues();
|
||||
if (!is_null($this->container['winningCriteria']) && !in_array($this->container['winningCriteria'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'winningCriteria', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
);
|
||||
}
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets winningVersion
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getWinningVersion()
|
||||
{
|
||||
return $this->container['winningVersion'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets winningVersion
|
||||
*
|
||||
* @param string $winningVersion Winning Campaign Info. pending = Campaign has been picked for sending and winning version is yet to be decided, tie = A tie happened between both the versions, notAvailable = Campaign has not yet been picked for sending.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setWinningVersion($winningVersion)
|
||||
{
|
||||
$allowedValues = $this->getWinningVersionAllowableValues();
|
||||
if (!is_null($winningVersion) && !in_array($winningVersion, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'winningVersion', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
)
|
||||
);
|
||||
}
|
||||
$this->container['winningVersion'] = $winningVersion;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets winningCriteria
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getWinningCriteria()
|
||||
{
|
||||
return $this->container['winningCriteria'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets winningCriteria
|
||||
*
|
||||
* @param string $winningCriteria Criteria choosen for winning version (Open/Click)
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setWinningCriteria($winningCriteria)
|
||||
{
|
||||
$allowedValues = $this->getWinningCriteriaAllowableValues();
|
||||
if (!is_null($winningCriteria) && !in_array($winningCriteria, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'winningCriteria', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
)
|
||||
);
|
||||
}
|
||||
$this->container['winningCriteria'] = $winningCriteria;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets winningSubjectLine
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getWinningSubjectLine()
|
||||
{
|
||||
return $this->container['winningSubjectLine'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets winningSubjectLine
|
||||
*
|
||||
* @param string $winningSubjectLine Subject Line of current winning version
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setWinningSubjectLine($winningSubjectLine)
|
||||
{
|
||||
$this->container['winningSubjectLine'] = $winningSubjectLine;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets openRate
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOpenRate()
|
||||
{
|
||||
return $this->container['openRate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets openRate
|
||||
*
|
||||
* @param string $openRate Open rate for current winning version
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOpenRate($openRate)
|
||||
{
|
||||
$this->container['openRate'] = $openRate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets clickRate
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getClickRate()
|
||||
{
|
||||
return $this->container['clickRate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets clickRate
|
||||
*
|
||||
* @param string $clickRate Click rate for current winning version
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setClickRate($clickRate)
|
||||
{
|
||||
$this->container['clickRate'] = $clickRate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets winningVersionRate
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getWinningVersionRate()
|
||||
{
|
||||
return $this->container['winningVersionRate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets winningVersionRate
|
||||
*
|
||||
* @param string $winningVersionRate Open/Click rate for the winner version
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setWinningVersionRate($winningVersionRate)
|
||||
{
|
||||
$this->container['winningVersionRate'] = $winningVersionRate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -200,8 +200,7 @@ class AddChildDomain implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -200,8 +200,7 @@ class AddContactToList implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -206,8 +206,7 @@ class AddCredits implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -225,7 +225,7 @@ class CreateAttribute implements ModelInterface, ArrayAccess
|
||||
$invalidProperties = [];
|
||||
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($this->container['type'], $allowedValues)) {
|
||||
if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'type', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
@ -243,12 +243,7 @@ class CreateAttribute implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($this->container['type'], $allowedValues)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -320,7 +315,7 @@ class CreateAttribute implements ModelInterface, ArrayAccess
|
||||
public function setType($type)
|
||||
{
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!is_null($type) && !in_array($type, $allowedValues)) {
|
||||
if (!is_null($type) && !in_array($type, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'type', must be one of '%s'",
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -212,14 +212,7 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['value'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['label'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -239,23 +239,7 @@ class CreateChild implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['email'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['firstName'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['lastName'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['companyName'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['password'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -236,8 +236,7 @@ class CreateContact implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -254,7 +253,7 @@ class CreateContact implements ModelInterface, ArrayAccess
|
||||
/**
|
||||
* Sets email
|
||||
*
|
||||
* @param string $email Email address of the user. Mandatory if \"sms\" field is not passed in \"attributes\" parameter'
|
||||
* @param string $email Email address of the user. Mandatory if \"SMS\" field is not passed in \"attributes\" parameter. Mobile Number in \"SMS\" field should be passed with proper country code. For example {\"SMS\":\"+91xxxxxxxxxx\"} or {\"SMS\":\"0091xxxxxxxxxx\"}
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
@ -278,7 +277,7 @@ class CreateContact implements ModelInterface, ArrayAccess
|
||||
/**
|
||||
* Sets attributes
|
||||
*
|
||||
* @param object $attributes Pass the set of attributes and their values. These attributes must be present in your SendinBlue account. For example, `{\"FNAME\":\"Elly\", \"LNAME\":\"Roger\"}`
|
||||
* @param object $attributes Pass the set of attributes and their values. These attributes must be present in your SendinBlue account. For eg. `{\"FNAME\":\"Elly\", \"LNAME\":\"Roger\"}`
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
@ -398,7 +397,7 @@ class CreateContact implements ModelInterface, ArrayAccess
|
||||
/**
|
||||
* Sets smtpBlacklistSender
|
||||
*
|
||||
* @param string[] $smtpBlacklistSender SMTP forbidden sender for contact. Use only for email Contact ( only available if updateEnabled = true )
|
||||
* @param string[] $smtpBlacklistSender transactional email forbidden sender for contact. Use only for email Contact ( only available if updateEnabled = true )
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -81,7 +81,10 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
|
||||
'subjectB' => 'string',
|
||||
'splitRule' => 'int',
|
||||
'winnerCriteria' => 'string',
|
||||
'winnerDelay' => 'int'
|
||||
'winnerDelay' => 'int',
|
||||
'ipWarmupEnable' => 'bool',
|
||||
'initialQuota' => 'int',
|
||||
'increaseRate' => 'int'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -114,7 +117,10 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
|
||||
'subjectB' => null,
|
||||
'splitRule' => 'int64',
|
||||
'winnerCriteria' => null,
|
||||
'winnerDelay' => 'int64'
|
||||
'winnerDelay' => 'int64',
|
||||
'ipWarmupEnable' => null,
|
||||
'initialQuota' => 'int64',
|
||||
'increaseRate' => 'int64'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -168,7 +174,10 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
|
||||
'subjectB' => 'subjectB',
|
||||
'splitRule' => 'splitRule',
|
||||
'winnerCriteria' => 'winnerCriteria',
|
||||
'winnerDelay' => 'winnerDelay'
|
||||
'winnerDelay' => 'winnerDelay',
|
||||
'ipWarmupEnable' => 'ipWarmupEnable',
|
||||
'initialQuota' => 'initialQuota',
|
||||
'increaseRate' => 'increaseRate'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -201,7 +210,10 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
|
||||
'subjectB' => 'setSubjectB',
|
||||
'splitRule' => 'setSplitRule',
|
||||
'winnerCriteria' => 'setWinnerCriteria',
|
||||
'winnerDelay' => 'setWinnerDelay'
|
||||
'winnerDelay' => 'setWinnerDelay',
|
||||
'ipWarmupEnable' => 'setIpWarmupEnable',
|
||||
'initialQuota' => 'setInitialQuota',
|
||||
'increaseRate' => 'setIncreaseRate'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -234,7 +246,10 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
|
||||
'subjectB' => 'getSubjectB',
|
||||
'splitRule' => 'getSplitRule',
|
||||
'winnerCriteria' => 'getWinnerCriteria',
|
||||
'winnerDelay' => 'getWinnerDelay'
|
||||
'winnerDelay' => 'getWinnerDelay',
|
||||
'ipWarmupEnable' => 'getIpWarmupEnable',
|
||||
'initialQuota' => 'getInitialQuota',
|
||||
'increaseRate' => 'getIncreaseRate'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -337,6 +352,9 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
|
||||
$this->container['splitRule'] = isset($data['splitRule']) ? $data['splitRule'] : null;
|
||||
$this->container['winnerCriteria'] = isset($data['winnerCriteria']) ? $data['winnerCriteria'] : null;
|
||||
$this->container['winnerDelay'] = isset($data['winnerDelay']) ? $data['winnerDelay'] : null;
|
||||
$this->container['ipWarmupEnable'] = isset($data['ipWarmupEnable']) ? $data['ipWarmupEnable'] : false;
|
||||
$this->container['initialQuota'] = isset($data['initialQuota']) ? $data['initialQuota'] : null;
|
||||
$this->container['increaseRate'] = isset($data['increaseRate']) ? $data['increaseRate'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -363,7 +381,7 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
|
||||
}
|
||||
|
||||
$allowedValues = $this->getWinnerCriteriaAllowableValues();
|
||||
if (!in_array($this->container['winnerCriteria'], $allowedValues)) {
|
||||
if (!is_null($this->container['winnerCriteria']) && !in_array($this->container['winnerCriteria'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'winnerCriteria', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
@ -378,6 +396,14 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
|
||||
$invalidProperties[] = "invalid value for 'winnerDelay', must be bigger than or equal to 1.";
|
||||
}
|
||||
|
||||
if (!is_null($this->container['increaseRate']) && ($this->container['increaseRate'] > 100)) {
|
||||
$invalidProperties[] = "invalid value for 'increaseRate', must be smaller than or equal to 100.";
|
||||
}
|
||||
|
||||
if (!is_null($this->container['increaseRate']) && ($this->container['increaseRate'] < 0)) {
|
||||
$invalidProperties[] = "invalid value for 'increaseRate', must be bigger than or equal to 0.";
|
||||
}
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
@ -389,30 +415,7 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['sender'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['name'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['splitRule'] > 50) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['splitRule'] < 1) {
|
||||
return false;
|
||||
}
|
||||
$allowedValues = $this->getWinnerCriteriaAllowableValues();
|
||||
if (!in_array($this->container['winnerCriteria'], $allowedValues)) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['winnerDelay'] > 168) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['winnerDelay'] < 1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -549,7 +552,7 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
|
||||
/**
|
||||
* Sets templateId
|
||||
*
|
||||
* @param int $templateId Mandatory if htmlContent and htmlUrl are empty. Id of the SMTP template with status 'active'. Used to copy only its content fetched from htmlContent/htmlUrl to an email campaign for RSS feature.
|
||||
* @param int $templateId Mandatory if htmlContent and htmlUrl are empty. Id of the transactional email template with status 'active'. Used to copy only its content fetched from htmlContent/htmlUrl to an email campaign for RSS feature.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
@ -645,7 +648,7 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
|
||||
/**
|
||||
* Sets toField
|
||||
*
|
||||
* @param string $toField To personalize the «To» Field. If you want to include the first name and last name of your recipient, add `{FNAME} {LNAME}`. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use `{{contact.FNAME}} {{contact.LNAME}}` for personalization
|
||||
* @param string $toField To personalize the «To» Field. If you want to include the first name and last name of your recipient, add {FNAME} {LNAME}. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use {{contact.FNAME}} {{contact.LNAME}} for personalization
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
@ -996,7 +999,7 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
|
||||
public function setWinnerCriteria($winnerCriteria)
|
||||
{
|
||||
$allowedValues = $this->getWinnerCriteriaAllowableValues();
|
||||
if (!is_null($winnerCriteria) && !in_array($winnerCriteria, $allowedValues)) {
|
||||
if (!is_null($winnerCriteria) && !in_array($winnerCriteria, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'winnerCriteria', must be one of '%s'",
|
||||
@ -1040,6 +1043,86 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets ipWarmupEnable
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getIpWarmupEnable()
|
||||
{
|
||||
return $this->container['ipWarmupEnable'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets ipWarmupEnable
|
||||
*
|
||||
* @param bool $ipWarmupEnable Available for dedicated ip clients. Set this to true if you wish to warm up your ip.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIpWarmupEnable($ipWarmupEnable)
|
||||
{
|
||||
$this->container['ipWarmupEnable'] = $ipWarmupEnable;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets initialQuota
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getInitialQuota()
|
||||
{
|
||||
return $this->container['initialQuota'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets initialQuota
|
||||
*
|
||||
* @param int $initialQuota Mandatory if ipWarmupEnable is set to true. Set an initial quota greater than 1 for warming up your ip. We recommend you set a value of 3000.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setInitialQuota($initialQuota)
|
||||
{
|
||||
$this->container['initialQuota'] = $initialQuota;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets increaseRate
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getIncreaseRate()
|
||||
{
|
||||
return $this->container['increaseRate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets increaseRate
|
||||
*
|
||||
* @param int $increaseRate Mandatory if ipWarmupEnable is set to true. Set a percentage increase rate for warming up your ip. We recommend you set the increase rate to 30% per day. If you want to send the same number of emails every day, set the daily increase value to 0%.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIncreaseRate($increaseRate)
|
||||
{
|
||||
|
||||
if (!is_null($increaseRate) && ($increaseRate > 100)) {
|
||||
throw new \InvalidArgumentException('invalid value for $increaseRate when calling CreateEmailCampaign., must be smaller than or equal to 100.');
|
||||
}
|
||||
if (!is_null($increaseRate) && ($increaseRate < 0)) {
|
||||
throw new \InvalidArgumentException('invalid value for $increaseRate when calling CreateEmailCampaign., must be bigger than or equal to 0.');
|
||||
}
|
||||
|
||||
$this->container['increaseRate'] = $increaseRate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -207,8 +207,7 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -36,7 +36,7 @@ use \SendinBlue\Client\ObjectSerializer;
|
||||
* CreateEmailCampaignSender Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description Sender details including email and name (optional). For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}`
|
||||
* @description Sender details including id or email and name (optional). Only one of either Sender's email or Sender's ID shall be passed in one request at a time. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` , `{\"name\":\"xyz\", \"id\":123}`
|
||||
* @package SendinBlue\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
@ -59,7 +59,8 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'name' => 'string',
|
||||
'email' => 'string'
|
||||
'email' => 'string',
|
||||
'id' => 'int'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -69,7 +70,8 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'name' => null,
|
||||
'email' => 'email'
|
||||
'email' => 'email',
|
||||
'id' => 'int64'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -100,7 +102,8 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'name' => 'name',
|
||||
'email' => 'email'
|
||||
'email' => 'email',
|
||||
'id' => 'id'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -110,7 +113,8 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
protected static $setters = [
|
||||
'name' => 'setName',
|
||||
'email' => 'setEmail'
|
||||
'email' => 'setEmail',
|
||||
'id' => 'setId'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -120,7 +124,8 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
protected static $getters = [
|
||||
'name' => 'getName',
|
||||
'email' => 'getEmail'
|
||||
'email' => 'getEmail',
|
||||
'id' => 'getId'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -185,6 +190,7 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess
|
||||
{
|
||||
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
|
||||
$this->container['email'] = isset($data['email']) ? $data['email'] : null;
|
||||
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -210,11 +216,7 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['email'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -265,6 +267,30 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets id
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->container['id'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id
|
||||
*
|
||||
* @param int $id Select the sender for the campaign on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email).
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id)
|
||||
{
|
||||
$this->container['id'] = $id;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -212,14 +212,7 @@ class CreateList implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['name'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['folderId'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -203,11 +203,7 @@ class CreateModel implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['id'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -203,11 +203,7 @@ class CreateReseller implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['authKey'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -218,14 +218,7 @@ class CreateSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['name'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['email'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -226,20 +226,7 @@ class CreateSenderIps implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['ip'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['domain'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['weight'] > 100) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['weight'] < 1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -215,11 +215,7 @@ class CreateSenderModel implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['id'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -219,7 +219,7 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess
|
||||
if ($this->container['sender'] === null) {
|
||||
$invalidProperties[] = "'sender' can't be null";
|
||||
}
|
||||
if ((strlen($this->container['sender']) > 11)) {
|
||||
if ((mb_strlen($this->container['sender']) > 11)) {
|
||||
$invalidProperties[] = "invalid value for 'sender', the character length must be smaller than or equal to 11.";
|
||||
}
|
||||
|
||||
@ -237,20 +237,7 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['name'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['sender'] === null) {
|
||||
return false;
|
||||
}
|
||||
if (strlen($this->container['sender']) > 11) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['content'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -297,7 +284,7 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function setSender($sender)
|
||||
{
|
||||
if ((strlen($sender) > 11)) {
|
||||
if ((mb_strlen($sender) > 11)) {
|
||||
throw new \InvalidArgumentException('invalid length for $sender when calling CreateSmsCampaign., must be smaller than or equal to 11.');
|
||||
}
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -209,11 +209,7 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['listIds'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -203,11 +203,7 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['messageId'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -224,7 +220,7 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess
|
||||
/**
|
||||
* Sets messageId
|
||||
*
|
||||
* @param string $messageId Message ID of the SMTP Email sent
|
||||
* @param string $messageId Message ID of the transactional email sent
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -263,17 +263,7 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['sender'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['templateName'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['subject'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -458,7 +448,7 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess
|
||||
/**
|
||||
* Sets toField
|
||||
*
|
||||
* @param string $toField To personalize the «To» Field. If you want to include the first name and last name of your recipient, add `{FNAME} {LNAME}`. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use `{{contact.FNAME}} {{contact.LNAME}}` for personalization
|
||||
* @param string $toField To personalize the «To» Field. If you want to include the first name and last name of your recipient, add {FNAME} {LNAME}. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use {{contact.FNAME}} {{contact.LNAME}} for personalization
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -36,7 +36,7 @@ use \SendinBlue\Client\ObjectSerializer;
|
||||
* CreateSmtpTemplateSender Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description Sender details including email and name (optional). For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}`
|
||||
* @description Sender details including id or email and name (optional). Only one of either Sender's email or Sender's ID shall be passed in one request at a time. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` , `{\"name\":\"xyz\", \"id\":123}`
|
||||
* @package SendinBlue\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
@ -59,7 +59,8 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'name' => 'string',
|
||||
'email' => 'string'
|
||||
'email' => 'string',
|
||||
'id' => 'int'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -69,7 +70,8 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'name' => null,
|
||||
'email' => 'email'
|
||||
'email' => 'email',
|
||||
'id' => 'int64'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -100,7 +102,8 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'name' => 'name',
|
||||
'email' => 'email'
|
||||
'email' => 'email',
|
||||
'id' => 'id'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -110,7 +113,8 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
protected static $setters = [
|
||||
'name' => 'setName',
|
||||
'email' => 'setEmail'
|
||||
'email' => 'setEmail',
|
||||
'id' => 'setId'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -120,7 +124,8 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
protected static $getters = [
|
||||
'name' => 'getName',
|
||||
'email' => 'getEmail'
|
||||
'email' => 'getEmail',
|
||||
'id' => 'getId'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -185,6 +190,7 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess
|
||||
{
|
||||
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
|
||||
$this->container['email'] = isset($data['email']) ? $data['email'] : null;
|
||||
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -210,11 +216,7 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['email'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -265,6 +267,30 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets id
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->container['id'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id
|
||||
*
|
||||
* @param int $id Select the sender for the template on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email).
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id)
|
||||
{
|
||||
$this->container['id'] = $id;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -200,8 +200,7 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -200,8 +200,7 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -186,6 +186,8 @@ class CreateWebhook implements ModelInterface, ArrayAccess
|
||||
const EVENTS_UNIQUE_OPENED = 'uniqueOpened';
|
||||
const EVENTS_UNSUBSCRIBED = 'unsubscribed';
|
||||
const EVENTS_LIST_ADDITION = 'listAddition';
|
||||
const EVENTS_CONTACT_UPDATED = 'contactUpdated';
|
||||
const EVENTS_CONTACT_DELETED = 'contactDeleted';
|
||||
const TYPE_TRANSACTIONAL = 'transactional';
|
||||
const TYPE_MARKETING = 'marketing';
|
||||
|
||||
@ -212,6 +214,8 @@ class CreateWebhook implements ModelInterface, ArrayAccess
|
||||
self::EVENTS_UNIQUE_OPENED,
|
||||
self::EVENTS_UNSUBSCRIBED,
|
||||
self::EVENTS_LIST_ADDITION,
|
||||
self::EVENTS_CONTACT_UPDATED,
|
||||
self::EVENTS_CONTACT_DELETED,
|
||||
];
|
||||
}
|
||||
|
||||
@ -266,7 +270,7 @@ class CreateWebhook implements ModelInterface, ArrayAccess
|
||||
$invalidProperties[] = "'events' can't be null";
|
||||
}
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($this->container['type'], $allowedValues)) {
|
||||
if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'type', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
@ -284,18 +288,7 @@ class CreateWebhook implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['url'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['events'] === null) {
|
||||
return false;
|
||||
}
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($this->container['type'], $allowedValues)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -400,7 +393,7 @@ class CreateWebhook implements ModelInterface, ArrayAccess
|
||||
public function setType($type)
|
||||
{
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!is_null($type) && !in_array($type, $allowedValues)) {
|
||||
if (!is_null($type) && !in_array($type, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'type', must be one of '%s'",
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -203,11 +203,7 @@ class CreatedProcessId implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['processId'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -212,8 +212,7 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -226,7 +226,7 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess
|
||||
$invalidProperties[] = "'recipientsType' can't be null";
|
||||
}
|
||||
$allowedValues = $this->getRecipientsTypeAllowableValues();
|
||||
if (!in_array($this->container['recipientsType'], $allowedValues)) {
|
||||
if (!is_null($this->container['recipientsType']) && !in_array($this->container['recipientsType'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'recipientsType', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
@ -244,15 +244,7 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['recipientsType'] === null) {
|
||||
return false;
|
||||
}
|
||||
$allowedValues = $this->getRecipientsTypeAllowableValues();
|
||||
if (!in_array($this->container['recipientsType'], $allowedValues)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -300,7 +292,7 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess
|
||||
public function setRecipientsType($recipientsType)
|
||||
{
|
||||
$allowedValues = $this->getRecipientsTypeAllowableValues();
|
||||
if (!in_array($recipientsType, $allowedValues)) {
|
||||
if (!in_array($recipientsType, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'recipientsType', must be one of '%s'",
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -240,7 +240,7 @@ class ErrorModel implements ModelInterface, ArrayAccess
|
||||
$invalidProperties[] = "'code' can't be null";
|
||||
}
|
||||
$allowedValues = $this->getCodeAllowableValues();
|
||||
if (!in_array($this->container['code'], $allowedValues)) {
|
||||
if (!is_null($this->container['code']) && !in_array($this->container['code'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'code', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
@ -261,18 +261,7 @@ class ErrorModel implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['code'] === null) {
|
||||
return false;
|
||||
}
|
||||
$allowedValues = $this->getCodeAllowableValues();
|
||||
if (!in_array($this->container['code'], $allowedValues)) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['message'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -296,7 +285,7 @@ class ErrorModel implements ModelInterface, ArrayAccess
|
||||
public function setCode($code)
|
||||
{
|
||||
$allowedValues = $this->getCodeAllowableValues();
|
||||
if (!in_array($code, $allowedValues)) {
|
||||
if (!in_array($code, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'code', must be one of '%s'",
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -263,29 +263,7 @@ class GetAccount implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['email'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['firstName'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['lastName'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['companyName'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['address'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['plan'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['relay'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -209,11 +209,7 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['enabled'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -257,7 +257,7 @@ class GetAccountPlan implements ModelInterface, ArrayAccess
|
||||
$invalidProperties[] = "'type' can't be null";
|
||||
}
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($this->container['type'], $allowedValues)) {
|
||||
if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'type', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
@ -268,7 +268,7 @@ class GetAccountPlan implements ModelInterface, ArrayAccess
|
||||
$invalidProperties[] = "'creditsType' can't be null";
|
||||
}
|
||||
$allowedValues = $this->getCreditsTypeAllowableValues();
|
||||
if (!in_array($this->container['creditsType'], $allowedValues)) {
|
||||
if (!is_null($this->container['creditsType']) && !in_array($this->container['creditsType'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'creditsType', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
@ -289,25 +289,7 @@ class GetAccountPlan implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['type'] === null) {
|
||||
return false;
|
||||
}
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($this->container['type'], $allowedValues)) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['creditsType'] === null) {
|
||||
return false;
|
||||
}
|
||||
$allowedValues = $this->getCreditsTypeAllowableValues();
|
||||
if (!in_array($this->container['creditsType'], $allowedValues)) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['credits'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -331,7 +313,7 @@ class GetAccountPlan implements ModelInterface, ArrayAccess
|
||||
public function setType($type)
|
||||
{
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($type, $allowedValues)) {
|
||||
if (!in_array($type, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'type', must be one of '%s'",
|
||||
@ -364,7 +346,7 @@ class GetAccountPlan implements ModelInterface, ArrayAccess
|
||||
public function setCreditsType($creditsType)
|
||||
{
|
||||
$allowedValues = $this->getCreditsTypeAllowableValues();
|
||||
if (!in_array($creditsType, $allowedValues)) {
|
||||
if (!in_array($creditsType, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'creditsType', must be one of '%s'",
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -36,7 +36,7 @@ use \SendinBlue\Client\ObjectSerializer;
|
||||
* GetAccountRelay Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description Information about your SMTP account
|
||||
* @description Information about your transactional email account
|
||||
* @package SendinBlue\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
@ -213,14 +213,7 @@ class GetAccountRelay implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['enabled'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['data'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -237,7 +230,7 @@ class GetAccountRelay implements ModelInterface, ArrayAccess
|
||||
/**
|
||||
* Sets enabled
|
||||
*
|
||||
* @param bool $enabled Status of your SMTP Account (true=Enabled, false=Disabled)
|
||||
* @param bool $enabled Status of your transactional email Account (true=Enabled, false=Disabled)
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -36,7 +36,7 @@ use \SendinBlue\Client\ObjectSerializer;
|
||||
* GetAccountRelayData Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description Data regarding the SMTP account
|
||||
* @description Data regarding the transactional email account
|
||||
* @package SendinBlue\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
@ -222,17 +222,7 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['userName'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['relay'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['port'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -249,7 +239,7 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess
|
||||
/**
|
||||
* Sets userName
|
||||
*
|
||||
* @param string $userName Email to use as login on SMTP
|
||||
* @param string $userName Email to use as login on transactional platform
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -311,47 +311,7 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['range'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['requests'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['delivered'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['hardBounces'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['softBounces'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['clicks'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['uniqueClicks'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['opens'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['uniqueOpens'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['spamReports'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['blocked'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['invalid'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['unsubscribed'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -203,11 +203,7 @@ class GetAttributes implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['attributes'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -262,7 +262,7 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess
|
||||
$invalidProperties[] = "'category' can't be null";
|
||||
}
|
||||
$allowedValues = $this->getCategoryAllowableValues();
|
||||
if (!in_array($this->container['category'], $allowedValues)) {
|
||||
if (!is_null($this->container['category']) && !in_array($this->container['category'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'category', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
@ -270,7 +270,7 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess
|
||||
}
|
||||
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($this->container['type'], $allowedValues)) {
|
||||
if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'type', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
@ -288,22 +288,7 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['name'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['category'] === null) {
|
||||
return false;
|
||||
}
|
||||
$allowedValues = $this->getCategoryAllowableValues();
|
||||
if (!in_array($this->container['category'], $allowedValues)) {
|
||||
return false;
|
||||
}
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($this->container['type'], $allowedValues)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -351,7 +336,7 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess
|
||||
public function setCategory($category)
|
||||
{
|
||||
$allowedValues = $this->getCategoryAllowableValues();
|
||||
if (!in_array($category, $allowedValues)) {
|
||||
if (!in_array($category, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'category', must be one of '%s'",
|
||||
@ -384,7 +369,7 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess
|
||||
public function setType($type)
|
||||
{
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!is_null($type) && !in_array($type, $allowedValues)) {
|
||||
if (!is_null($type) && !in_array($type, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'type', must be one of '%s'",
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -212,14 +212,7 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['value'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['label'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -309,7 +309,7 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess
|
||||
$invalidProperties[] = "'type' can't be null";
|
||||
}
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($this->container['type'], $allowedValues)) {
|
||||
if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'type', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
@ -320,7 +320,7 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess
|
||||
$invalidProperties[] = "'status' can't be null";
|
||||
}
|
||||
$allowedValues = $this->getStatusAllowableValues();
|
||||
if (!in_array($this->container['status'], $allowedValues)) {
|
||||
if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'status', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
@ -338,28 +338,7 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['id'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['name'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['type'] === null) {
|
||||
return false;
|
||||
}
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($this->container['type'], $allowedValues)) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['status'] === null) {
|
||||
return false;
|
||||
}
|
||||
$allowedValues = $this->getStatusAllowableValues();
|
||||
if (!in_array($this->container['status'], $allowedValues)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -455,7 +434,7 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess
|
||||
public function setType($type)
|
||||
{
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($type, $allowedValues)) {
|
||||
if (!in_array($type, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'type', must be one of '%s'",
|
||||
@ -488,7 +467,7 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess
|
||||
public function setStatus($status)
|
||||
{
|
||||
$allowedValues = $this->getStatusAllowableValues();
|
||||
if (!in_array($status, $allowedValues)) {
|
||||
if (!in_array($status, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'status', must be one of '%s'",
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -212,14 +212,7 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['lists'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['exclusionLists'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -296,38 +296,7 @@ class GetCampaignStats implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['uniqueClicks'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['clickers'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['complaints'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['delivered'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['sent'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['softBounces'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['hardBounces'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['uniqueViews'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['unsubscriptions'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['viewed'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -0,0 +1,304 @@
|
||||
<?php
|
||||
/**
|
||||
* GetChildAccountCreationStatus
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package SendinBlue\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.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 SendinBlue\Client\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use \SendinBlue\Client\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* GetChildAccountCreationStatus Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package SendinBlue\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'getChildAccountCreationStatus';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'childAccountCreated' => 'bool'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'childAccountCreated' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'childAccountCreated' => 'childAccountCreated'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'childAccountCreated' => 'setChildAccountCreated'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'childAccountCreated' => 'getChildAccountCreated'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['childAccountCreated'] = isset($data['childAccountCreated']) ? $data['childAccountCreated'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
if ($this->container['childAccountCreated'] === null) {
|
||||
$invalidProperties[] = "'childAccountCreated' can't be null";
|
||||
}
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets childAccountCreated
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getChildAccountCreated()
|
||||
{
|
||||
return $this->container['childAccountCreated'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets childAccountCreated
|
||||
*
|
||||
* @param bool $childAccountCreated Status of child account creation whether it is successfully created (exists) or not.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setChildAccountCreated($childAccountCreated)
|
||||
{
|
||||
$this->container['childAccountCreated'] = $childAccountCreated;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -212,14 +212,7 @@ class GetChildDomain implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['domain'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['active'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -199,11 +199,7 @@ class GetChildDomains implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
if (!parent::valid()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -263,23 +263,7 @@ class GetChildInfo implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['email'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['firstName'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['lastName'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['companyName'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['password'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -210,11 +210,7 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['v2'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -212,14 +212,7 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['name'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['key'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -212,14 +212,7 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['name'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['key'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -207,8 +207,7 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -213,8 +213,7 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -57,7 +57,8 @@ class GetChildrenList implements ModelInterface, ArrayAccess
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'children' => 'object[]'
|
||||
'children' => 'object[]',
|
||||
'count' => 'int'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -66,7 +67,8 @@ class GetChildrenList implements ModelInterface, ArrayAccess
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'children' => null
|
||||
'children' => null,
|
||||
'count' => 'int64'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -96,7 +98,8 @@ class GetChildrenList implements ModelInterface, ArrayAccess
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'children' => 'children'
|
||||
'children' => 'children',
|
||||
'count' => 'count'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -105,7 +108,8 @@ class GetChildrenList implements ModelInterface, ArrayAccess
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'children' => 'setChildren'
|
||||
'children' => 'setChildren',
|
||||
'count' => 'setCount'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -114,7 +118,8 @@ class GetChildrenList implements ModelInterface, ArrayAccess
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'children' => 'getChildren'
|
||||
'children' => 'getChildren',
|
||||
'count' => 'getCount'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -178,6 +183,7 @@ class GetChildrenList implements ModelInterface, ArrayAccess
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['children'] = isset($data['children']) ? $data['children'] : null;
|
||||
$this->container['count'] = isset($data['count']) ? $data['count'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -189,6 +195,9 @@ class GetChildrenList implements ModelInterface, ArrayAccess
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
if ($this->container['count'] === null) {
|
||||
$invalidProperties[] = "'count' can't be null";
|
||||
}
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
@ -200,8 +209,7 @@ class GetChildrenList implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -228,6 +236,30 @@ class GetChildrenList implements ModelInterface, ArrayAccess
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets count
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getCount()
|
||||
{
|
||||
return $this->container['count'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets count
|
||||
*
|
||||
* @param int $count Number of child accounts
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCount($count)
|
||||
{
|
||||
$this->container['count'] = $count;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -230,20 +230,7 @@ class GetClient implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['email'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['firstName'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['lastName'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['companyName'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -243,8 +243,7 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -212,14 +212,7 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['campaignId'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['links'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -230,20 +230,7 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['campaignId'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['count'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['eventTime'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['ip'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -221,17 +221,7 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['orderDate'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['orderPrice'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['orderId'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -212,14 +212,7 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['userUnsubscription'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['adminUnsubscription'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -272,32 +272,7 @@ class GetContactDetails implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['email'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['id'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['emailBlacklisted'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['smsBlacklisted'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['createdAt'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['modifiedAt'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['listIds'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['attributes'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -212,14 +212,7 @@ class GetContacts implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['contacts'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['count'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
403
wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetDeviceBrowserStats.php
vendored
Normal file
403
wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetDeviceBrowserStats.php
vendored
Normal file
@ -0,0 +1,403 @@
|
||||
<?php
|
||||
/**
|
||||
* GetDeviceBrowserStats
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package SendinBlue\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.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 SendinBlue\Client\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use \SendinBlue\Client\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* GetDeviceBrowserStats Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package SendinBlue\Client
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class GetDeviceBrowserStats implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'getDeviceBrowserStats';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'clickers' => 'int',
|
||||
'uniqueClicks' => 'int',
|
||||
'viewed' => 'int',
|
||||
'uniqueViews' => 'int'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'clickers' => 'int64',
|
||||
'uniqueClicks' => 'int64',
|
||||
'viewed' => 'int64',
|
||||
'uniqueViews' => 'int64'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'clickers' => 'clickers',
|
||||
'uniqueClicks' => 'uniqueClicks',
|
||||
'viewed' => 'viewed',
|
||||
'uniqueViews' => 'uniqueViews'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'clickers' => 'setClickers',
|
||||
'uniqueClicks' => 'setUniqueClicks',
|
||||
'viewed' => 'setViewed',
|
||||
'uniqueViews' => 'setUniqueViews'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'clickers' => 'getClickers',
|
||||
'uniqueClicks' => 'getUniqueClicks',
|
||||
'viewed' => 'getViewed',
|
||||
'uniqueViews' => 'getUniqueViews'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['clickers'] = isset($data['clickers']) ? $data['clickers'] : null;
|
||||
$this->container['uniqueClicks'] = isset($data['uniqueClicks']) ? $data['uniqueClicks'] : null;
|
||||
$this->container['viewed'] = isset($data['viewed']) ? $data['viewed'] : null;
|
||||
$this->container['uniqueViews'] = isset($data['uniqueViews']) ? $data['uniqueViews'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
if ($this->container['clickers'] === null) {
|
||||
$invalidProperties[] = "'clickers' can't be null";
|
||||
}
|
||||
if ($this->container['uniqueClicks'] === null) {
|
||||
$invalidProperties[] = "'uniqueClicks' can't be null";
|
||||
}
|
||||
if ($this->container['viewed'] === null) {
|
||||
$invalidProperties[] = "'viewed' can't be null";
|
||||
}
|
||||
if ($this->container['uniqueViews'] === null) {
|
||||
$invalidProperties[] = "'uniqueViews' can't be null";
|
||||
}
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets clickers
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getClickers()
|
||||
{
|
||||
return $this->container['clickers'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets clickers
|
||||
*
|
||||
* @param int $clickers Number of total clicks for the campaign using the particular browser
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setClickers($clickers)
|
||||
{
|
||||
$this->container['clickers'] = $clickers;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueClicks
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getUniqueClicks()
|
||||
{
|
||||
return $this->container['uniqueClicks'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueClicks
|
||||
*
|
||||
* @param int $uniqueClicks Number of unique clicks for the campaign using the particular browser
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUniqueClicks($uniqueClicks)
|
||||
{
|
||||
$this->container['uniqueClicks'] = $uniqueClicks;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets viewed
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getViewed()
|
||||
{
|
||||
return $this->container['viewed'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets viewed
|
||||
*
|
||||
* @param int $viewed Number of openings for the campaign using the particular browser
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setViewed($viewed)
|
||||
{
|
||||
$this->container['viewed'] = $viewed;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueViews
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getUniqueViews()
|
||||
{
|
||||
return $this->container['uniqueViews'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueViews
|
||||
*
|
||||
* @param int $uniqueViews Number of unique openings for the campaign using the particular browser
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUniqueViews($uniqueViews)
|
||||
{
|
||||
$this->container['uniqueViews'] = $uniqueViews;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -411,7 +411,7 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess
|
||||
$invalidProperties[] = "'type' can't be null";
|
||||
}
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($this->container['type'], $allowedValues)) {
|
||||
if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'type', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
@ -422,7 +422,7 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess
|
||||
$invalidProperties[] = "'status' can't be null";
|
||||
}
|
||||
$allowedValues = $this->getStatusAllowableValues();
|
||||
if (!in_array($this->container['status'], $allowedValues)) {
|
||||
if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'status', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
@ -476,64 +476,7 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['id'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['name'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['type'] === null) {
|
||||
return false;
|
||||
}
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($this->container['type'], $allowedValues)) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['status'] === null) {
|
||||
return false;
|
||||
}
|
||||
$allowedValues = $this->getStatusAllowableValues();
|
||||
if (!in_array($this->container['status'], $allowedValues)) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['testSent'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['header'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['footer'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['sender'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['replyTo'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['toField'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['htmlContent'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['tag'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['createdAt'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['modifiedAt'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['recipients'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['statistics'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -629,7 +572,7 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess
|
||||
public function setType($type)
|
||||
{
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($type, $allowedValues)) {
|
||||
if (!in_array($type, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'type', must be one of '%s'",
|
||||
@ -662,7 +605,7 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess
|
||||
public function setStatus($status)
|
||||
{
|
||||
$allowedValues = $this->getStatusAllowableValues();
|
||||
if (!in_array($status, $allowedValues)) {
|
||||
if (!in_array($status, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'status', must be one of '%s'",
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -209,11 +209,7 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['count'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -200,8 +200,7 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -291,7 +291,7 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess
|
||||
$invalidProperties[] = "'event' can't be null";
|
||||
}
|
||||
$allowedValues = $this->getEventAllowableValues();
|
||||
if (!in_array($this->container['event'], $allowedValues)) {
|
||||
if (!is_null($this->container['event']) && !in_array($this->container['event'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'event', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
@ -309,24 +309,7 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['email'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['date'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['messageId'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['event'] === null) {
|
||||
return false;
|
||||
}
|
||||
$allowedValues = $this->getEventAllowableValues();
|
||||
if (!in_array($this->container['event'], $allowedValues)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -446,7 +429,7 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess
|
||||
public function setEvent($event)
|
||||
{
|
||||
$allowedValues = $this->getEventAllowableValues();
|
||||
if (!in_array($event, $allowedValues)) {
|
||||
if (!in_array($event, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'event', must be one of '%s'",
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -399,7 +399,7 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess
|
||||
$invalidProperties[] = "'type' can't be null";
|
||||
}
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($this->container['type'], $allowedValues)) {
|
||||
if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'type', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
@ -410,7 +410,7 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess
|
||||
$invalidProperties[] = "'status' can't be null";
|
||||
}
|
||||
$allowedValues = $this->getStatusAllowableValues();
|
||||
if (!in_array($this->container['status'], $allowedValues)) {
|
||||
if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'status', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
@ -458,58 +458,7 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['id'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['name'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['type'] === null) {
|
||||
return false;
|
||||
}
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($this->container['type'], $allowedValues)) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['status'] === null) {
|
||||
return false;
|
||||
}
|
||||
$allowedValues = $this->getStatusAllowableValues();
|
||||
if (!in_array($this->container['status'], $allowedValues)) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['testSent'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['header'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['footer'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['sender'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['replyTo'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['toField'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['htmlContent'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['tag'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['createdAt'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['modifiedAt'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -605,7 +554,7 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess
|
||||
public function setType($type)
|
||||
{
|
||||
$allowedValues = $this->getTypeAllowableValues();
|
||||
if (!in_array($type, $allowedValues)) {
|
||||
if (!in_array($type, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'type', must be one of '%s'",
|
||||
@ -638,7 +587,7 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess
|
||||
public function setStatus($status)
|
||||
{
|
||||
$allowedValues = $this->getStatusAllowableValues();
|
||||
if (!in_array($status, $allowedValues)) {
|
||||
if (!in_array($status, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'status', must be one of '%s'",
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -58,7 +58,8 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'name' => 'string',
|
||||
'email' => 'string'
|
||||
'email' => 'string',
|
||||
'id' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -68,7 +69,8 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'name' => null,
|
||||
'email' => 'email'
|
||||
'email' => 'email',
|
||||
'id' => null
|
||||
];
|
||||
|
||||
/**
|
||||
@ -99,7 +101,8 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'name' => 'name',
|
||||
'email' => 'email'
|
||||
'email' => 'email',
|
||||
'id' => 'id'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -109,7 +112,8 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
protected static $setters = [
|
||||
'name' => 'setName',
|
||||
'email' => 'setEmail'
|
||||
'email' => 'setEmail',
|
||||
'id' => 'setId'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -119,7 +123,8 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
protected static $getters = [
|
||||
'name' => 'getName',
|
||||
'email' => 'getEmail'
|
||||
'email' => 'getEmail',
|
||||
'id' => 'getId'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -184,6 +189,7 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess
|
||||
{
|
||||
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
|
||||
$this->container['email'] = isset($data['email']) ? $data['email'] : null;
|
||||
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -206,8 +212,7 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -258,6 +263,30 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets id
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->container['id'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id
|
||||
*
|
||||
* @param string $id Sender id of the campaign
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id)
|
||||
{
|
||||
$this->container['id'] = $id;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -62,7 +62,9 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
|
||||
'mirrorClick' => 'int',
|
||||
'remaining' => 'int',
|
||||
'linksStats' => 'object',
|
||||
'statsByDomain' => '\SendinBlue\Client\Model\GetStatsByDomain'
|
||||
'statsByDomain' => '\SendinBlue\Client\Model\GetStatsByDomain',
|
||||
'statsByDevice' => '\SendinBlue\Client\Model\GetStatsByDevice',
|
||||
'statsByBrowser' => '\SendinBlue\Client\Model\GetStatsByBrowser'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -76,7 +78,9 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
|
||||
'mirrorClick' => 'int64',
|
||||
'remaining' => 'int64',
|
||||
'linksStats' => null,
|
||||
'statsByDomain' => null
|
||||
'statsByDomain' => null,
|
||||
'statsByDevice' => null,
|
||||
'statsByBrowser' => null
|
||||
];
|
||||
|
||||
/**
|
||||
@ -111,7 +115,9 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
|
||||
'mirrorClick' => 'mirrorClick',
|
||||
'remaining' => 'remaining',
|
||||
'linksStats' => 'linksStats',
|
||||
'statsByDomain' => 'statsByDomain'
|
||||
'statsByDomain' => 'statsByDomain',
|
||||
'statsByDevice' => 'statsByDevice',
|
||||
'statsByBrowser' => 'statsByBrowser'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -125,7 +131,9 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
|
||||
'mirrorClick' => 'setMirrorClick',
|
||||
'remaining' => 'setRemaining',
|
||||
'linksStats' => 'setLinksStats',
|
||||
'statsByDomain' => 'setStatsByDomain'
|
||||
'statsByDomain' => 'setStatsByDomain',
|
||||
'statsByDevice' => 'setStatsByDevice',
|
||||
'statsByBrowser' => 'setStatsByBrowser'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -139,7 +147,9 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
|
||||
'mirrorClick' => 'getMirrorClick',
|
||||
'remaining' => 'getRemaining',
|
||||
'linksStats' => 'getLinksStats',
|
||||
'statsByDomain' => 'getStatsByDomain'
|
||||
'statsByDomain' => 'getStatsByDomain',
|
||||
'statsByDevice' => 'getStatsByDevice',
|
||||
'statsByBrowser' => 'getStatsByBrowser'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -208,6 +218,8 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
|
||||
$this->container['remaining'] = isset($data['remaining']) ? $data['remaining'] : null;
|
||||
$this->container['linksStats'] = isset($data['linksStats']) ? $data['linksStats'] : null;
|
||||
$this->container['statsByDomain'] = isset($data['statsByDomain']) ? $data['statsByDomain'] : null;
|
||||
$this->container['statsByDevice'] = isset($data['statsByDevice']) ? $data['statsByDevice'] : null;
|
||||
$this->container['statsByBrowser'] = isset($data['statsByBrowser']) ? $data['statsByBrowser'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -237,6 +249,12 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
|
||||
if ($this->container['statsByDomain'] === null) {
|
||||
$invalidProperties[] = "'statsByDomain' can't be null";
|
||||
}
|
||||
if ($this->container['statsByDevice'] === null) {
|
||||
$invalidProperties[] = "'statsByDevice' can't be null";
|
||||
}
|
||||
if ($this->container['statsByBrowser'] === null) {
|
||||
$invalidProperties[] = "'statsByBrowser' can't be null";
|
||||
}
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
@ -248,26 +266,7 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['globalStats'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['campaignStats'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['mirrorClick'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['remaining'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['linksStats'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['statsByDomain'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
@ -414,6 +413,54 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets statsByDevice
|
||||
*
|
||||
* @return \SendinBlue\Client\Model\GetStatsByDevice
|
||||
*/
|
||||
public function getStatsByDevice()
|
||||
{
|
||||
return $this->container['statsByDevice'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets statsByDevice
|
||||
*
|
||||
* @param \SendinBlue\Client\Model\GetStatsByDevice $statsByDevice Statistics about the campaign on the basis of various devices
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatsByDevice($statsByDevice)
|
||||
{
|
||||
$this->container['statsByDevice'] = $statsByDevice;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets statsByBrowser
|
||||
*
|
||||
* @return \SendinBlue\Client\Model\GetStatsByBrowser
|
||||
*/
|
||||
public function getStatsByBrowser()
|
||||
{
|
||||
return $this->container['statsByBrowser'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets statsByBrowser
|
||||
*
|
||||
* @param \SendinBlue\Client\Model\GetStatsByBrowser $statsByBrowser Statistics about the campaign on the basis of various browsers
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatsByBrowser($statsByBrowser)
|
||||
{
|
||||
$this->container['statsByBrowser'] = $statsByBrowser;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -239,23 +239,7 @@ class GetExtendedClient implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['email'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['firstName'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['lastName'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['companyName'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['address'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -231,20 +231,7 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['street'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['city'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['zipCode'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['country'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -281,35 +281,7 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['email'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['id'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['emailBlacklisted'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['smsBlacklisted'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['createdAt'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['modifiedAt'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['listIds'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['attributes'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['statistics'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -243,8 +243,7 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -212,14 +212,7 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['campaignId'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['links'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -230,20 +230,7 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['count'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['eventTime'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['ip'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['url'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -212,14 +212,7 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface,
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['campaignId'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['eventTime'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -230,20 +230,7 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['campaignId'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['count'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['eventTime'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['ip'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -213,14 +213,7 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['userUnsubscription'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['adminUnsubscription'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -212,14 +212,7 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['eventTime'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['ip'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -221,17 +221,7 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['campaignId'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['eventTime'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['ip'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -260,26 +260,7 @@ class GetExtendedList implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['id'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['name'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['totalBlacklisted'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['totalSubscribers'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['folderId'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['createdAt'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -212,14 +212,7 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['campaignId'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['stats'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -239,23 +239,7 @@ class GetFolder implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['id'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['name'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['totalBlacklisted'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['totalSubscribers'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['uniqueSubscribers'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -212,14 +212,7 @@ class GetFolderLists implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['lists'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['count'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -206,8 +206,7 @@ class GetFolders implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,12 +13,12 @@
|
||||
/**
|
||||
* SendinBlue API
|
||||
*
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
|
||||
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
||||
*
|
||||
* OpenAPI spec version: 3.0.0
|
||||
* Contact: contact@sendinblue.com
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 2.3.1
|
||||
* Swagger Codegen version: 2.4.12
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -230,20 +230,7 @@ class GetIp implements ModelInterface, ArrayAccess
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
|
||||
if ($this->container['id'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['ip'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['active'] === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->container['domain'] === null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user