Skip to content

Commit

Permalink
Improved Client (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliguyong authored Aug 15, 2019
1 parent db83d84 commit b51bbe0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.5.15 - 2019-08-14
- Improved Client.


## 1.5.14 - 2019-07-25
- Improved Credential Filter.

Expand Down
2 changes: 1 addition & 1 deletion src/AlibabaCloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AlibabaCloud
/**
* Version of the Client
*/
const VERSION = '1.5.14';
const VERSION = '1.5.15';

/**
* This static method can directly call the specific service.
Expand Down
6 changes: 5 additions & 1 deletion src/Clients/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
use AlibabaCloud\Client\Traits\HttpTrait;
use AlibabaCloud\Client\Traits\RegionTrait;
use AlibabaCloud\Client\Credentials\StsCredential;
use AlibabaCloud\Client\Signature\ShaHmac1Signature;
use AlibabaCloud\Client\Signature\SignatureInterface;
use AlibabaCloud\Client\Signature\ShaHmac256Signature;
use AlibabaCloud\Client\Signature\BearerTokenSignature;
use AlibabaCloud\Client\Credentials\AccessKeyCredential;
use AlibabaCloud\Client\Credentials\CredentialsInterface;
use AlibabaCloud\Client\Credentials\EcsRamRoleCredential;
use AlibabaCloud\Client\Credentials\RamRoleArnCredential;
use AlibabaCloud\Client\Credentials\RsaKeyPairCredential;
use AlibabaCloud\Client\Credentials\BearerTokenCredential;
use AlibabaCloud\Client\Signature\ShaHmac256WithRsaSignature;

/**
* Custom Client.
Expand Down Expand Up @@ -59,7 +63,7 @@ public function getCredential()
}

/**
* @return SignatureInterface
* @return SignatureInterface|BearerTokenSignature|ShaHmac1Signature|ShaHmac256Signature|ShaHmac256WithRsaSignature
*/
public function getSignature()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Request/RequestAsyncTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static function (ResponseInterface $res) {
return $res;
},
static function (RequestException $e) {
self::assertTrue(Stringy::create($e->getMessage())->contains('timed'));
self::assertTrue(Stringy::create($e->getMessage())->contains('cURL error'));
}
)->wait();
}
Expand Down

0 comments on commit b51bbe0

Please sign in to comment.