public function listSites($limit, $page, $canary = false)
    {
        if ($this->connector->getURL() === null) {
            return 'Cannot find site URL from configuration.';
        }
        $params = [
          'limit' => $limit,
          'page' => $page,
          'canary' => $canary,
        ];
        $url = $this->connector->getURL().self::VERSION;

        $response = $this->connector->connecting($url, $params, 'GET');

        if (isset($response->sites)) {
            return $response->sites;
        }

        return $response;
    }
public function listSites($limit, $page, $canary = false)
    {
        if ($this->connector->getURL() === null) {
            return 'Cannot find site URL from configuration.';
        }
        $params = [
          'limit' => $limit,
          'page' => $page,
          'canary' => $canary,
        ];
        $url = $this->connector->getURL().self::VERSION;

        $response = $this->connector->connecting($url, $params, 'GET');

        if (isset($response->sites)) {
            return $response->sites;
        }

        return $response;
    }
public function listSites ( $ limit , $ page , $ canary = false ) { if ( $ this -> connector -> getURL ( ) === null ) { return 'Cannot find site URL from configuration.' ; } $ params = [ 'limit' => $ limit , 'page' => $ page , 'canary' => $ canary , ] ; $ url = $ this -> connector -> getURL ( ) . self :: VERSION ; $ response = $ this -> connector -> connecting ( $ url , $ params , 'GET' ) ; if ( isset ( $ response -> sites ) ) { return $ response -> sites ; } return $ response ; }
List sites.

@param int     $limit  Limit number.
@param int     $page   Page number.
@param boolean $canary No value necessary.

@return string
List sites .