Skip to content

请问这个还在维护么? 官方已经对 DefaultAcsClient 进行变更. #4

@Moln

Description

@Moln

官方已经对 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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions