错误码是:object(Qiniu_Error)#9 (4) { ["Err"]=> NULL ["Reqid"]=> string(16) "_DcAAJMoxFtGO5UT" ["Details"]=> string(0) "" ["Code"]=> int(401) } AD:真正免费,域名+虚机+企业邮箱=0元
require_once("qiniu/rs.php");
$bucket = "phpsdk";
$key1 = "file_name1";
$accessKey = '
$secretKey = '
Qiniu_SetKeys($accessKey, $secretKey);
$client = new Qiniu_MacHttpClient(null);
$err = Qiniu_RS_Delete($client, $bucket, $key1);
echo "====> Qiniu_RS_Delete result: \n";
if ($err !== null) {
var_dump($err);
} else {
echo "Success!";
}
我想请问一下。key1是文件名吗?是不是要写全路径?