_auth = VIMEOGRAPHY_ACCESS_TOKEN; $this->_vimeo = new Vimeography\Vimeo( null, null, $this->_auth ); } /** * * @param string $resource A Vimeo API Endpoint * @return int 1 if match found, 0 if not. */ protected function _verify_vimeo_endpoint($resource) { return preg_match('#^/(users|channels|albums|groups)/(.+)#', $resource); } }