# vimeography/2.2/lib/core/basic.php

Vimeography: Vimeo Video Gallery WordPress Plugin, version 2.2. 27 lines.

- Page: https://pluginprobe.com/plugins/vimeography/2.2/code/lib/core/basic.php
- Raw: https://pluginprobe.com/plugins/vimeography/2.2/raw/lib/core/basic.php
- Modified: 2019-01-07T19:18:00+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/vimeography/2.2/code/lib/core/basic.php#L10-L20`.

```php
<?php

namespace Vimeography\Basic;

class Core extends \Vimeography\Core {

  public function __construct( $engine ) {
    parent::__construct( $engine );

    $token = trim( get_option('vimeography_access_token') );

    $this->_auth  = $token ? $token : VIMEOGRAPHY_ACCESS_TOKEN;
    $this->_vimeo = new \Vimeography\Vimeo( NULL, NULL, $this->_auth );
  }

  /**
   * Checks if the provided resource is a valid resource.
   *
   * @param  string $resource  A Vimeo API resource
   * @return int               1 if match found, 0 if not.
   */
  protected function _verify_vimeo_resource( $resource ) {
    return preg_match( '#^/(users|channels|albums|groups)/(.+)#', $resource );
  }

}

```
