BaiduBCS::get_object_acl PHP Method

get_object_acl() public method

获取object的acl
public get_object_acl ( string $bucket, string $object, array $opt = [] ) : BCS_ResponseCore
$bucket string (Required)
$object string (Required)
$opt array (Optional)
return BCS_ResponseCore
    public function get_object_acl($bucket, $object, $opt = array())
    {
        $this->assertParameterArray($opt);
        $opt[self::BUCKET] = $bucket;
        $opt[self::METHOD] = 'GET';
        $opt[self::OBJECT] = $object;
        $opt[self::QUERY_STRING] = array(self::ACL => 1);
        $response = $this->authenticate($opt);
        $this->log($response->isOK() ? "Get object acl success!" : "Get object acl failed! Response: [" . $response->body . "]", $opt);
        return $response;
    }