Spamworldpro Mini Shell
Spamworldpro


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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/demo.cartinsight.co/vendor/codegreencreative/laravel-aweber/src/Api/Campaigns.php
<?php

namespace CodeGreenCreative\Aweber\Api;

use CodeGreenCreative\Aweber\AweberClient;
use CodeGreenCreative\Aweber\Aweber\Exceptions\AweberException;

class Campaigns extends AweberClient
{
    private $type;
    private $list_id;

    /**
     * Paginate through all lists
     *
     * @param  integer $start [description]
     * @param  integer $limit [description]
     * @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 . '/campaigns', [
            'ws.start' => $start,
            'ws.size' => $limit,
        ]);
    }

    /**
     * Find a campaign by ID
     *
     * @param  integer $list_id
     * @param  integer $campaign_id
     * @return CodeGreenCreative\Aweber\Api\List
     */
    public function load($campaign_id)
    {
        $this->list = $this->request('GET', 'lists/' . $this->list_id . '/campaigns/' . $this->type . $campaign_id);
        return $this;
    }

    /**
     * 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 type of campaign to be used
     * Types are "b" and "f"
     *
     * @param  integer $type
     * @return self
     */
    public function type($type)
    {
        $this->type = $type;
        return $this;
    }
}

Spamworldpro Mini