You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
704 B
30 lines
704 B
<?php
|
|
|
|
namespace AlibabaCloud\Client\Clients;
|
|
|
|
use AlibabaCloud\Client\Exception\ClientException;
|
|
use AlibabaCloud\Client\Signature\ShaHmac1Signature;
|
|
use AlibabaCloud\Client\Credentials\AccessKeyCredential;
|
|
|
|
/**
|
|
* Use the AccessKey to complete the authentication.
|
|
*
|
|
* @package AlibabaCloud\Client\Clients
|
|
*/
|
|
class AccessKeyClient extends Client
|
|
{
|
|
|
|
/**
|
|
* @param string $accessKeyId
|
|
* @param string $accessKeySecret
|
|
*
|
|
* @throws ClientException
|
|
*/
|
|
public function __construct($accessKeyId, $accessKeySecret)
|
|
{
|
|
parent::__construct(
|
|
new AccessKeyCredential($accessKeyId, $accessKeySecret),
|
|
new ShaHmac1Signature()
|
|
);
|
|
}
|
|
}
|
|
|