Initial commit

This commit is contained in:
2020-04-07 13:03:04 +00:00
committed by Gitium
commit 00f842d9bf
1673 changed files with 471161 additions and 0 deletions
.gitignore
wp-content
index.php
mu-plugins
plugins
activitypub
authLdap-2.3.1
disable-wordpress-core-update
gitium
gp-premium
backgrounds
blog
changelog.txt
colors
copyright
disable-elements
elements
general
gp-premium.php
hooks
import-export
inc
langs
library
menu-plus
page-header
secondary-nav
sections
sites
spacing
typography
woocommerce
wpml-config.xml
index.php
menu-icons
CHANGELOG.mdLICENSE
assets
css
includes
js
languages
mailin.phpmenu-icons.phpreadme.mdreadme.txt
vendor
autoload.php
codeinwp
composer
simple-local-avatars
static-html-output-plugin
languages
plugin
readme.txt
views
wp2static.csswp2static.php
wp-mail-smtp
assets
loco.xmlreadme.txt
src
uninstall.php
vendor
autoload.php
composer
google
apiclient-services
apiclient
auth
guzzlehttp
monolog
monolog
LICENSE
src
Monolog
ErrorHandler.php
Formatter
Handler
Logger.php
Processor
Registry.phpResettableInterface.phpSignalHandler.phpUtils.php
phpseclib
psr
ralouphie
getallheaders
sendinblue
api-v3-sdk
lib
Api
ApiException.phpConfiguration.phpHeaderSelector.php
Model
AddChildDomain.phpAddContactToList.phpAddCredits.phpCreateAttribute.phpCreateAttributeEnumeration.phpCreateChild.phpCreateContact.phpCreateEmailCampaign.phpCreateEmailCampaignRecipients.phpCreateEmailCampaignSender.phpCreateList.phpCreateModel.phpCreateReseller.phpCreateSender.phpCreateSenderIps.phpCreateSenderModel.phpCreateSmsCampaign.phpCreateSmsCampaignRecipients.phpCreateSmtpEmail.phpCreateSmtpTemplate.phpCreateSmtpTemplateSender.phpCreateUpdateContactModel.phpCreateUpdateFolder.phpCreateWebhook.phpCreatedProcessId.phpDeleteHardbounces.phpEmailExportRecipients.phpErrorModel.phpGetAccount.phpGetAccountMarketingAutomation.phpGetAccountPlan.phpGetAccountRelay.phpGetAccountRelayData.phpGetAggregatedReport.phpGetAttributes.phpGetAttributesAttributes.phpGetAttributesEnumeration.phpGetCampaignOverview.phpGetCampaignRecipients.phpGetCampaignStats.phpGetChildDomain.phpGetChildDomains.phpGetChildInfo.phpGetChildInfoApiKeys.phpGetChildInfoApiKeysV2.phpGetChildInfoApiKeysV3.phpGetChildInfoCredits.phpGetChildInfoStatistics.phpGetChildrenList.phpGetClient.phpGetContactCampaignStats.phpGetContactCampaignStatsClicked.phpGetContactCampaignStatsOpened.phpGetContactCampaignStatsTransacAttributes.phpGetContactCampaignStatsUnsubscriptions.phpGetContactDetails.phpGetContacts.phpGetEmailCampaign.phpGetEmailCampaigns.phpGetEmailEventReport.phpGetEmailEventReportEvents.phpGetExtendedCampaignOverview.phpGetExtendedCampaignOverviewSender.phpGetExtendedCampaignStats.phpGetExtendedClient.phpGetExtendedClientAddress.phpGetExtendedContactDetails.phpGetExtendedContactDetailsStatistics.phpGetExtendedContactDetailsStatisticsClicked.phpGetExtendedContactDetailsStatisticsLinks.phpGetExtendedContactDetailsStatisticsMessagesSent.phpGetExtendedContactDetailsStatisticsOpened.phpGetExtendedContactDetailsStatisticsUnsubscriptions.phpGetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.phpGetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.phpGetExtendedList.phpGetExtendedListCampaignStats.phpGetFolder.phpGetFolderLists.phpGetFolders.phpGetIp.phpGetIpFromSender.phpGetIps.phpGetIpsFromSender.phpGetList.phpGetLists.phpGetProcess.phpGetProcesses.phpGetReports.phpGetReportsReports.phpGetSendersList.phpGetSendersListIps.phpGetSendersListSenders.phpGetSmsCampaign.phpGetSmsCampaignOverview.phpGetSmsCampaignStats.phpGetSmsCampaigns.phpGetSmsEventReport.phpGetSmsEventReportEvents.phpGetSmtpTemplateOverview.phpGetSmtpTemplateOverviewSender.phpGetSmtpTemplates.phpGetSsoToken.phpGetStatsByDomain.phpGetTransacAggregatedSmsReport.phpGetTransacSmsReport.phpGetTransacSmsReportReports.phpGetWebhook.phpGetWebhooks.phpManageIp.phpModelInterface.phpPostContactInfo.phpPostContactInfoContacts.phpPostSendFailed.phpPostSendSmsTestFailed.phpRemainingCreditModel.phpRemainingCreditModelChild.phpRemainingCreditModelReseller.phpRemoveContactFromList.phpRemoveCredits.phpRequestContactExport.phpRequestContactImport.phpRequestContactImportNewList.phpRequestSMSRecipientExport.phpSendEmail.phpSendEmailAttachment.phpSendReport.phpSendReportEmail.phpSendSms.phpSendSmtpEmail.phpSendSmtpEmailAttachment.phpSendSmtpEmailBcc.phpSendSmtpEmailCc.phpSendSmtpEmailReplyTo.phpSendSmtpEmailSender.phpSendSmtpEmailTo.phpSendTemplateEmail.phpSendTestEmail.phpSendTestSms.phpSendTransacSms.phpUpdateAttribute.phpUpdateAttributeEnumeration.phpUpdateCampaignStatus.phpUpdateChild.phpUpdateChildAccountStatus.phpUpdateChildDomain.phpUpdateContact.phpUpdateEmailCampaign.phpUpdateEmailCampaignRecipients.phpUpdateEmailCampaignSender.phpUpdateList.phpUpdateSender.phpUpdateSmsCampaign.phpUpdateSmtpTemplate.phpUpdateSmtpTemplateSender.phpUpdateWebhook.php
ObjectSerializer.php
wp-mail-smtp-0.11.2.phpwp-mail-smtp.phpwp_mail_smtp.php
wp-piwik
LICENSEREADME.mdbitcoin.png
classes
config.php
css
gpl-3.0.htmlindex.php
js
languages
proxy
readme.txtscreenshot-1.gifscreenshot-2.gifscreenshot-3.gifscreenshot-4.gifscreenshot-5.gifuninstall.php
update
wp-piwik.phpwpml-config.xml
themes
generatepress
404.phparchive.phpcomments.phpcontent-link.phpcontent-page.phpcontent-single.phpcontent.php
css
fonts
footer.phpfunctions.phpheader.php
inc
index.php
js
no-results.phppage.phpreadme.txtrtl.cssscreenshot.pngsearch.phpsearchform.phpsidebar-left.phpsidebar.phpsingle.phpstyle.cssstyle.min.css
index.php
twentynineteen
404.phparchive.php
classes
comments.php
fonts
footer.phpfunctions.phpheader.phpimage.php
inc
index.php
js
package-lock.jsonpackage.jsonpage.phppostcss.config.jsprint.cssprint.scssreadme.txt
sass
screenshot.pngsearch.phpsingle.phpstyle-editor-customizer.cssstyle-editor-customizer.scssstyle-editor.cssstyle-editor.scssstyle-rtl.cssstyle.cssstyle.scss
template-parts
twentyseventeen
twentysixteen

@ -0,0 +1,317 @@
<?php
/**
* ObjectSerializer
*
* 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 |
*
* 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
*/
/**
* 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;
/**
* ObjectSerializer Class Doc Comment
*
* @category Class
* @package SendinBlue\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class ObjectSerializer
{
/**
* Serialize data
*
* @param mixed $data the data to serialize
* @param string $type the SwaggerType of the data
* @param string $format the format of the Swagger type of the data
*
* @return string|object serialized form of $data
*/
public static function sanitizeForSerialization($data, $type = null, $format = null)
{
if (is_scalar($data) || null === $data) {
return $data;
} elseif ($data instanceof \DateTime) {
return ($format === 'date') ? $data->format('Y-m-d') : $data->format(\DateTime::ATOM);
} elseif (is_array($data)) {
foreach ($data as $property => $value) {
$data[$property] = self::sanitizeForSerialization($value);
}
return $data;
} elseif (is_object($data)) {
$values = [];
$formats = $data::swaggerFormats();
foreach ($data::swaggerTypes() as $property => $swaggerType) {
$getter = $data::getters()[$property];
$value = $data->$getter();
if ($value !== null
&& !in_array($swaggerType, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)
&& method_exists($swaggerType, 'getAllowableEnumValues')
&& !in_array($value, $swaggerType::getAllowableEnumValues())) {
$imploded = implode("', '", $swaggerType::getAllowableEnumValues());
throw new \InvalidArgumentException("Invalid value for enum '$swaggerType', must be one of: '$imploded'");
}
if ($value !== null) {
$values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($value, $swaggerType, $formats[$property]);
}
}
return (object)$values;
} else {
return (string)$data;
}
}
/**
* Sanitize filename by removing path.
* e.g. ../../sun.gif becomes sun.gif
*
* @param string $filename filename to be sanitized
*
* @return string the sanitized filename
*/
public static function sanitizeFilename($filename)
{
if (preg_match("/.*[\/\\\\](.*)$/", $filename, $match)) {
return $match[1];
} else {
return $filename;
}
}
/**
* Take value and turn it into a string suitable for inclusion in
* the path, by url-encoding.
*
* @param string $value a string which will be part of the path
*
* @return string the serialized object
*/
public static function toPathValue($value)
{
return rawurlencode(self::toString($value));
}
/**
* Take value and turn it into a string suitable for inclusion in
* the query, by imploding comma-separated if it's an object.
* If it's a string, pass through unchanged. It will be url-encoded
* later.
*
* @param string[]|string|\DateTime $object an object to be serialized to a string
*
* @return string the serialized object
*/
public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} else {
return self::toString($object);
}
}
/**
* Take value and turn it into a string suitable for inclusion in
* the header. If it's a string, pass through unchanged
* If it's a datetime object, format it in ISO8601
*
* @param string $value a string which will be part of the header
*
* @return string the header string
*/
public static function toHeaderValue($value)
{
return self::toString($value);
}
/**
* Take value and turn it into a string suitable for inclusion in
* the http body (form parameter). If it's a string, pass through unchanged
* If it's a datetime object, format it in ISO8601
*
* @param string|\SplFileObject $value the value of the form parameter
*
* @return string the form string
*/
public static function toFormValue($value)
{
if ($value instanceof \SplFileObject) {
return $value->getRealPath();
} else {
return self::toString($value);
}
}
/**
* Take value and turn it into a string suitable for inclusion in
* the parameter. If it's a string, pass through unchanged
* If it's a datetime object, format it in ISO8601
*
* @param string|\DateTime $value the value of the parameter
*
* @return string the header string
*/
public static function toString($value)
{
if ($value instanceof \DateTime) { // datetime in ISO8601 format
return $value->format(\DateTime::ATOM);
} else {
return $value;
}
}
/**
* Serialize an array to a string.
*
* @param array $collection collection to serialize to a string
* @param string $collectionFormat the format use for serialization (csv,
* ssv, tsv, pipes, multi)
* @param bool $allowCollectionFormatMulti allow collection format to be a multidimensional array
*
* @return string
*/
public static function serializeCollection(array $collection, $collectionFormat, $allowCollectionFormatMulti = false)
{
if ($allowCollectionFormatMulti && ('multi' === $collectionFormat)) {
// http_build_query() almost does the job for us. We just
// need to fix the result of multidimensional arrays.
return preg_replace('/%5B[0-9]+%5D=/', '=', http_build_query($collection, '', '&'));
}
switch ($collectionFormat) {
case 'pipes':
return implode('|', $collection);
case 'tsv':
return implode("\t", $collection);
case 'ssv':
return implode(' ', $collection);
case 'csv':
// Deliberate fall through. CSV is default format.
default:
return implode(',', $collection);
}
}
/**
* Deserialize a JSON string into an object
*
* @param mixed $data object or primitive to be deserialized
* @param string $class class name is passed as a string
* @param string[] $httpHeaders HTTP headers
* @param string $discriminator discriminator if polymorphism is used
*
* @return object|array|null an single or an array of $class instances
*/
public static function deserialize($data, $class, $httpHeaders = null)
{
if (null === $data) {
return null;
} elseif (substr($class, 0, 4) === 'map[') { // for associative array e.g. map[string,int]
$inner = substr($class, 4, -1);
$deserialized = [];
if (strrpos($inner, ",") !== false) {
$subClass_array = explode(',', $inner, 2);
$subClass = $subClass_array[1];
foreach ($data as $key => $value) {
$deserialized[$key] = self::deserialize($value, $subClass, null);
}
}
return $deserialized;
} elseif (strcasecmp(substr($class, -2), '[]') === 0) {
$subClass = substr($class, 0, -2);
$values = [];
foreach ($data as $key => $value) {
$values[] = self::deserialize($value, $subClass, null);
}
return $values;
} elseif ($class === 'object') {
settype($data, 'array');
return $data;
} elseif ($class === '\DateTime') {
// Some API's return an invalid, empty string as a
// date-time property. DateTime::__construct() will return
// the current time for empty input which is probably not
// what is meant. The invalid empty string is probably to
// be interpreted as a missing field/value. Let's handle
// this graceful.
if (!empty($data)) {
return new \DateTime($data);
} else {
return null;
}
} elseif (in_array($class, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) {
settype($data, $class);
return $data;
} elseif ($class === '\SplFileObject') {
/** @var \Psr\Http\Message\StreamInterface $data */
// determine file name
if (array_key_exists('Content-Disposition', $httpHeaders) &&
preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)) {
$filename = Configuration::getDefaultConfiguration()->getTempFolderPath() . self::sanitizeFilename($match[1]);
} else {
$filename = tempnam(Configuration::getDefaultConfiguration()->getTempFolderPath(), '');
}
$file = fopen($filename, 'w');
while ($chunk = $data->read(200)) {
fwrite($file, $chunk);
}
fclose($file);
return new \SplFileObject($filename, 'r');
} elseif (method_exists($class, 'getAllowableEnumValues')) {
if (!in_array($data, $class::getAllowableEnumValues())) {
$imploded = implode("', '", $class::getAllowableEnumValues());
throw new \InvalidArgumentException("Invalid value for enum '$class', must be one of: '$imploded'");
}
return $data;
} else {
// If a discriminator is defined and points to a valid subclass, use it.
$discriminator = $class::DISCRIMINATOR;
if (!empty($discriminator) && isset($data->{$discriminator}) && is_string($data->{$discriminator})) {
$subclass = '\SendinBlue\Client\Model\\' . $data->{$discriminator};
if (is_subclass_of($subclass, $class)) {
$class = $subclass;
}
}
$instance = new $class();
foreach ($instance::swaggerTypes() as $property => $type) {
$propertySetter = $instance::setters()[$property];
if (!isset($propertySetter) || !isset($data->{$instance::attributeMap()[$property]})) {
continue;
}
$propertyValue = $data->{$instance::attributeMap()[$property]};
if (isset($propertyValue)) {
$instance->$propertySetter(self::deserialize($propertyValue, $type, null));
}
}
return $instance;
}
}
}