public function getPages($cursor = false)
    {
        $queryArray = ['pageSize' => 200];
        if ($cursor) {
            $queryArray['cursor'] = $cursor;
        }

        try {
            $response = $this->client->get(
                $this->PagesUrl, [
                    'headers' => ['Authorization' => 'Bearer '. $this->login->apiKey],
                    'verify' => $this->certFile,
                    'query' => $queryArray
            ]);

            $response = [
                'code' => '200',
                'response' => $response->getBody(),
                'error' => false
            ];

        } catch (ClientException $e) {
            $response = $this->parseException($e);

        } catch (ServerException $e) {
            $response = $this->parseException($e);

        } catch (ConnectException $e) {
            $message = 'Can not connect to Leadpages Server:';
            $response = $this->parseException($e, $message);

        } catch (RequestException $e) {
            $response = $this->parseException($e);
        }

        return $response;
    }
public function getPages($cursor = false)
    {
        $queryArray = ['pageSize' => 200];
        if ($cursor) {
            $queryArray['cursor'] = $cursor;
        }

        try {
            $response = $this->client->get(
                $this->PagesUrl, [
                    'headers' => ['Authorization' => 'Bearer '. $this->login->apiKey],
                    'verify' => $this->certFile,
                    'query' => $queryArray
            ]);

            $response = [
                'code' => '200',
                'response' => $response->getBody(),
                'error' => false
            ];

        } catch (ClientException $e) {
            $response = $this->parseException($e);

        } catch (ServerException $e) {
            $response = $this->parseException($e);

        } catch (ConnectException $e) {
            $message = 'Can not connect to Leadpages Server:';
            $response = $this->parseException($e, $message);

        } catch (RequestException $e) {
            $response = $this->parseException($e);
        }

        return $response;
    }
public function getPages ( $ cursor = false ) { $ queryArray = [ 'pageSize' => 200 ] ; if ( $ cursor ) { $ queryArray [ 'cursor' ] = $ cursor ; } try { $ response = $ this -> client -> get ( $ this -> PagesUrl , [ 'headers' => [ 'Authorization' => 'Bearer ' . $ this -> login -> apiKey ] , 'verify' => $ this -> certFile , 'query' => $ queryArray ] ) ; $ response = [ 'code' => '200' , 'response' => $ response -> getBody ( ) , 'error' => false ] ; } catch ( ClientException $ e ) { $ response = $ this -> parseException ( $ e ) ; } catch ( ServerException $ e ) { $ response = $ this -> parseException ( $ e ) ; } catch ( ConnectException $ e ) { $ message = 'Can not connect to Leadpages Server:' ; $ response = $ this -> parseException ( $ e , $ message ) ; } catch ( RequestException $ e ) { $ response = $ this -> parseException ( $ e ) ; } return $ response ; }
Base function get call get users pages

@param bool $cursor default false

@return array
Base function get call get users pages