BaiduBCS::list_bucket PHP Méthode

list_bucket() public méthode

获取当前密钥对拥有者的bucket列表
public list_bucket ( array $opt = [] ) : BCS_ResponseCore
$opt array (Optional) BaiduBCS::IMPORT_BCS_LOG_METHOD - String - Optional: 支持用户传入日志处理函数,函数定义如 function f($log)
Résultat BCS_ResponseCore
    public function list_bucket($opt = array())
    {
        $this->assertParameterArray($opt);
        $opt[self::BUCKET] = '';
        $opt[self::METHOD] = 'GET';
        $opt[self::OBJECT] = '/';
        $response = $this->authenticate($opt);
        $this->log($response->isOK() ? "List bucket success!" : "List bucket failed! Response: [" . $response->body . "]", $opt);
        return $response;
    }