public function getContacts($modifiedAfter = 0, $cursor = null, $limit = null)
    {
        $data = self::initData($modifiedAfter, $cursor, $limit);

        $contacts = Connection::sendCurlRequest(Connection::URL_CONTACTS, 'GET', $data, false, $this->apiKey)->contacts;

        $objContacts = [];

        foreach ($contacts as $c) {
            if (!empty($c->active)) {
                $objContacts[] = new Contact($c, $this->apiKey);
            }
        }

        $this->contacts = $objContacts;

        return $objContacts;
    }
public function getContacts($modifiedAfter = 0, $cursor = null, $limit = null)
    {
        $data = self::initData($modifiedAfter, $cursor, $limit);

        $contacts = Connection::sendCurlRequest(Connection::URL_CONTACTS, 'GET', $data, false, $this->apiKey)->contacts;

        $objContacts = [];

        foreach ($contacts as $c) {
            if (!empty($c->active)) {
                $objContacts[] = new Contact($c, $this->apiKey);
            }
        }

        $this->contacts = $objContacts;

        return $objContacts;
    }
public function getContacts ( $ modifiedAfter = 0 , $ cursor = null , $ limit = null ) { $ data = self :: initData ( $ modifiedAfter , $ cursor , $ limit ) ; $ contacts = Connection :: sendCurlRequest ( Connection :: URL_CONTACTS , 'GET' , $ data , false , $ this -> apiKey ) -> contacts ; $ objContacts = [ ] ; foreach ( $ contacts as $ c ) { if ( ! empty ( $ c -> active ) ) { $ objContacts [ ] = new Contact ( $ c , $ this -> apiKey ) ; } } $ this -> contacts = $ objContacts ; return $ objContacts ; }
Get a list of contacts.

@param int    $modifiedAfter Request contacts modified after this UNIX timestamp.
@param string $cursor        Request the next page via its cursor from a previous response. See the API
documentation (https://docs.pushbullet.com/http/) for a detailed description.
@param int    $limit         Maximum number of objects on each page.

@return Contact[] Contacts.
@throws Exceptions\ConnectionException
@throws Exceptions\InvalidTokenException
Get a list of contacts .