![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/demo.cartinsight.co/vendor/codegreencreative/laravel-aweber/src/Api/ |
<?php namespace CodeGreenCreative\Aweber\Api; use CodeGreenCreative\Aweber\AweberClient; use CodeGreenCreative\Aweber\Aweber\Exceptions\AweberException; class Broadcasts extends AweberClient { private $list_id; private $broadcast; /** * Paginate through all broadcasts * * @param integer $list_id * @param string $status * @param integer $start * @param integer $limit * @return array */ public function paginate($start = 0, $limit = 100) { if ($limit > 100) { throw new AweberException('Limit on record sets is 100.'); } return $this->request('GET', 'lists/' . $this->list_id . '/broadcasts', [ 'status' => $this->status, 'ws.start' => $start, 'ws.size' => $limit, ]); } /** * Find a broadcast by ID * * @param integer $broadcast_id * @return CodeGreenCreative\Aweber\Api\List */ public function load($broadcast_id) { $this->broadcast = $this->request('GET', 'lists/' . $this->list_id . '/broadcasts/' . $broadcast_id); return $this; } /** * [getListAttribute description] * @return [type] [description] */ public function getBroadcastAttribute() { return $this->broadcast; } /** * Set the list to be used * * @param integer $list_id * @return self */ public function setList($list_id) { $this->list_id = $list_id; return $this; } /** * Set the status of the broadcast * * @param integer $status * @return self */ public function status($status) { $this->status = $status; return $this; } }