| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly |
| 4 |
if ( ! defined( 'ABSPATH' ) ) exit; |
| 5 |
|
| 6 |
class Vimeography_Core_Basic extends Vimeography_Core { |
| 7 |
public function __construct( $settings ) { |
| 8 |
parent::__construct( $settings ); |
| 9 |
|
| 10 |
$this->_auth = VIMEOGRAPHY_ACCESS_TOKEN; |
| 11 |
$this->_vimeo = new Vimeography\Vimeo( null, null, $this->_auth ); |
| 12 |
} |
| 13 |
|
| 14 |
/** |
| 15 |
* |
| 16 |
* @param string $resource A Vimeo API Endpoint |
| 17 |
* @return int 1 if match found, 0 if not. |
| 18 |
*/ |
| 19 |
protected function _verify_vimeo_endpoint($resource) { |
| 20 |
return preg_match('#^/(users|channels|albums|groups)/(.+)#', $resource); |
| 21 |
} |
| 22 |
|
| 23 |
} |
| 24 |
|