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

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

        $objPushes = [];

        foreach ($pushes as $p) {
            if (!empty($p->active)) {
                $objPushes[] = new Push($p, $this->apiKey);
            }
        }

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

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

        $objPushes = [];

        foreach ($pushes as $p) {
            if (!empty($p->active)) {
                $objPushes[] = new Push($p, $this->apiKey);
            }
        }

        return $objPushes;
    }
public function getPushes ( $ modifiedAfter = 0 , $ cursor = null , $ limit = null ) { $ data = self :: initData ( $ modifiedAfter , $ cursor , $ limit ) ; $ pushes = Connection :: sendCurlRequest ( Connection :: URL_PUSHES , 'GET' , $ data , false , $ this -> apiKey ) -> pushes ; $ objPushes = [ ] ; foreach ( $ pushes as $ p ) { if ( ! empty ( $ p -> active ) ) { $ objPushes [ ] = new Push ( $ p , $ this -> apiKey ) ; } } return $ objPushes ; }
Get push history.

@param int    $modifiedAfter Request pushes 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 Push[] Pushes.
@throws Exceptions\ConnectionException
@throws Exceptions\InvalidTokenException
Get push history .