官方已经对 DefaultAcsClient 进行变更. 调用时,调用API时, 已不用实例化 endpoint
// 这里官方已经不需要了
// $endpoint = new Endpoint('cn-hangzhou', EndpointConfig::getRegionIds(), EndpointConfig::getProductDomains());
// EndpointProvider::setEndpoints([ $endpoint ]);
$profile = DefaultProfile::getProfile('cn-hangzhou', $config['AccessKeyId'], $config['AccessKeySecret']);
$client = new DefaultAcsClient($profile);