YiiのDropbox php api http://code.google.com/p/dropbox-php/をどのように結びつけるか考えています。私は、ソースファイルをダウンロードし、ext.dropboxに入れ、その後、次のコードを挿入しYiiのDropbox
$dropbox = Yii::getPathOfAlias('ext.dropbox');
spl_autoload_unregister(array('YiiBase','autoload'));
Yii::registerAutoloader(array('Dropbox_autoload','autoload'));
$consumerKey = '***';
$consumerSecret = '***';
$oauth = new Dropbox_OAuth_PHP($consumerKey, $consumerSecret);
try {
$oauth = new Dropbox_OAuth_PHP($consumerKey, $consumerSecret);
$dropbox = new Dropbox_API($oauth);
$info = $dropbox->getMetaData('Files');
} catch (Exception $e) {
$error = "error: " . $e->getMessage();
}
spl_autoload_register(array('YiiBase','autoload'));
私はエラー致命的なエラーが出る: *
ありがとうございました - 私はYiiの外でも使用するので、別のフォルダにライブラリを保管することについてあなたの意見に同意します。私は今これをテストします。再度、感謝します – Joe