| Server IP : 23.111.136.34 / Your IP : 216.73.216.136 Web Server : Apache System : Linux servidor.eurohost.com.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : meusitei ( 1072) PHP Version : 5.6.40 Disable Function : show_source, system, shell_exec, passthru, proc_open MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/meusitei/public_html/painel/mkt/MailWizzApi/Endpoint/ |
Upload File : |
<?php
/**
* This file contains the lists fields endpoint for MailWizzApi PHP-SDK.
*
* @author Serban George Cristian <cristian.serban@mailwizz.com>
* @link http://www.mailwizz.com/
* @copyright 2013-2017 http://www.mailwizz.com/
*/
/**
* MailWizzApi_Endpoint_ListFields handles all the API calls for handling the list custom fields.
*
* @author Serban George Cristian <cristian.serban@mailwizz.com>
* @package MailWizzApi
* @subpackage Endpoint
* @since 1.0
*/
class MailWizzApi_Endpoint_ListFields extends MailWizzApi_Base
{
/**
* Get fields from a certain mail list
*
* Note, the results returned by this endpoint can be cached.
*
* @param string $listUid
* @return MailWizzApi_Http_Response
*/
public function getFields($listUid)
{
$client = new MailWizzApi_Http_Client(array(
'method' => MailWizzApi_Http_Client::METHOD_GET,
'url' => $this->config->getApiUrl(sprintf('lists/%s/fields', $listUid)),
'paramsGet' => array(),
'enableCache' => true,
));
return $response = $client->request();
}
}