我正在使用Dropbox API在我的Dropbox应用帐户中创建文件夹 下面是我的代码,但没有在dropbox上创建文件夹。
$url='https://api.dropboxapi.com/2/files/create_folder';
$post=array(
"path" => "/land/download" );
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch,CURLOPT_POST,true);
curl_setopt($ch,CURLOPT_POSTFIELDS,$post);
$return_obj=json_decode($data);