示例#1
0
if(!class_exists('Eden_Google_Drive')){class Eden_Google_Drive extends Eden_Google_Base{const URL_DRIVE_ABOUT='https://www.googleapis.com/drive/v2/about';const URL_DRIVE_APPS='hhttps://www.googleapis.com/drive/v2/apps';public static function i(){return self::_getMultiple(__CLASS__);}public function __construct($token){Eden_Google_Error::i()->argument(1,'string');$this->_token=$token;}public function changes(){return Eden_Google_Drive_Changes::i($this->_token);}public function children(){return Eden_Google_Drive_Children::i($this->_token);}public function files(){return Eden_Google_Drive_Files::i($this->_token);}public function getAbout(){return $this->_getResponse(self::URL_DRIVE_ABOUT);}public function getApps(){return $this->_getResponse(self::URL_DRIVE_APPS);}public function parents(){return Eden_Google_Drive_Parent::i($this->_token);}public function permissions(){return Eden_Google_Drive_Permissions::i($this->_token);}public function revisions(){return Eden_Google_Drive_Revisions::i($this->_token);}}}
示例#2
0
文件: drive.php 项目: annaqin/eden
 /**
  * Returns Google Drive Revisions
  *
  * @return Eden_Google_Drive_Revisions
  */
 public function revisions()
 {
     return Eden_Google_Drive_Revisions::i($this->_token);
 }
示例#3
0
 public function revisions()
 {
     Eden_Google_Error::i()->argument(1, 'string');
     return Eden_Google_Drive_Revisions::i($this->_token);
 }