0
如何在google中設置appProperties在api中驅動api?驅動器api設置appProperties
$file = new Google_Service_Drive_DriveFile();
$file->setName($f->getFilename());
$file->setMimeType(mime_content_type($f->getPathname()));
$file->setParents(array($dest));
$object = new stdClass();
$object->projecto = 'xpto';
$file->setAppProperties($object);
$data = file_get_contents($f->getPathname());
$createdFile = $driveService->files->create($file, array(
'uploadType' => 'multipart',
'data' => $data
));
我試試這個:
$file->setAppProperties(array(array('projecto' => 'xpto')));
或本:
$file->setAppProperties(array('projecto' => 'xpto'));
創建一個文件,但不設置屬性..