public function getCampaigns($strAccountSlug, $intPage = 1, $intLimit = 10, $strFilter = null, $strSort = null) {
        $objWebClient = $this->getWebClient();

        $strUri = $this->getApiUrl() . '/accounts/' . $strAccountSlug . '/campaigns';
        $arrHeaders = $this->getHeaders();
        $strFilter = array('query' => array('page' => $intPage, 'limit' => $intLimit, 'filter' => $strFilter, 'sort' => $strSort));

        $objRequest = $objWebClient->get($strUri, $arrHeaders, $strFilter);

        $this->objResponse = $objRequest->send();
        $strResponse = $this->objResponse->getBody(TRUE);

        return $strResponse;
    }
public function getCampaigns($strAccountSlug, $intPage = 1, $intLimit = 10, $strFilter = null, $strSort = null) {
        $objWebClient = $this->getWebClient();

        $strUri = $this->getApiUrl() . '/accounts/' . $strAccountSlug . '/campaigns';
        $arrHeaders = $this->getHeaders();
        $strFilter = array('query' => array('page' => $intPage, 'limit' => $intLimit, 'filter' => $strFilter, 'sort' => $strSort));

        $objRequest = $objWebClient->get($strUri, $arrHeaders, $strFilter);

        $this->objResponse = $objRequest->send();
        $strResponse = $this->objResponse->getBody(TRUE);

        return $strResponse;
    }
public function getCampaigns ( $ strAccountSlug , $ intPage = 1 , $ intLimit = 10 , $ strFilter = null , $ strSort = null ) { $ objWebClient = $ this -> getWebClient ( ) ; $ strUri = $ this -> getApiUrl ( ) . '/accounts/' . $ strAccountSlug . '/campaigns' ; $ arrHeaders = $ this -> getHeaders ( ) ; $ strFilter = array ( 'query' => array ( 'page' => $ intPage , 'limit' => $ intLimit , 'filter' => $ strFilter , 'sort' => $ strSort ) ) ; $ objRequest = $ objWebClient -> get ( $ strUri , $ arrHeaders , $ strFilter ) ; $ this -> objResponse = $ objRequest -> send ( ) ; $ strResponse = $ this -> objResponse -> getBody ( TRUE ) ; return $ strResponse ; }
Get the list of campaings.

@param string $strAccountSlug. The client account slug
@param integer page.  The current page, default is 1.

@param integer $intLimit. Maximum number of results to return in the response.
@param string $strFilter. Allowed fields: name, description, start_date, end_date, is_active (true|false), created.
Use the following delimiters to build your
filters params. The vertical bar ('|') to separate individual filter
phrases and a double colon ('::') to separate the names and values.
The delimiter of the double colon (':') separates the property name
from the comparison value, enabling the comparison value to contain spaces.
Example: www.example.com\/users?filter='name::todd|city::denver|title::grand poobah'
@param string $strSort.   Allowed fields: campaign_slug, created, start_date, end_date, is_active. Use sort query-string parameter that
contains a delimited set of property names. For each property name, sort
in ascending order, and for each property prefixed with a dash ('-') sort
in descending order. Separate each property name with a vertical bar ('|'),
which is consistent with the separation of the name\/value pairs in
filtering, above. For example, if we want to retrieve users in order of
their last name (ascending), first name (ascending) and hire date
(descending), the request might look like this
www.example.com\/users?sort='last_name|first_name|-hire_date'
@return string
Get the list of campaings .