京东云
This commit is contained in:
50
vendor/jdcloud-api/jdcloud-sdk-php/src/Captcha/CaptchaClient.php
vendored
Normal file
50
vendor/jdcloud-api/jdcloud-sdk-php/src/Captcha/CaptchaClient.php
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* Captcha
|
||||
*
|
||||
* @category Jdcloud
|
||||
* @package Jdcloud\Captcha
|
||||
* @author Jdcloud <jdcloud-api@jd.com>
|
||||
* @license Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
|
||||
* @link https://www.jdcloud.com/help/faq
|
||||
*/
|
||||
|
||||
namespace Jdcloud\Captcha;
|
||||
|
||||
use Jdcloud\JdCloudClient;
|
||||
use Jdcloud\Api\Service;
|
||||
use Jdcloud\Api\DocModel;
|
||||
use Jdcloud\Api\ApiProvider;
|
||||
use Jdcloud\PresignUrlMiddleware;
|
||||
|
||||
/**
|
||||
* Client used to interact with captcha.
|
||||
*
|
||||
* @method \Jdcloud\Result getSessionId(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise getSessionIdAsync(array $args = [])
|
||||
* @method \Jdcloud\Result verifyToken(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise verifyTokenAsync(array $args = [])
|
||||
*/
|
||||
class CaptchaClient extends JdCloudClient
|
||||
{
|
||||
public function __construct(array $args)
|
||||
{
|
||||
$args['with_resolved'] = function (array $args) {
|
||||
$this->getHandlerList()->appendInit(
|
||||
PresignUrlMiddleware::wrap(
|
||||
$this,
|
||||
$args['endpoint_provider'],
|
||||
[
|
||||
'operations' => [
|
||||
],
|
||||
'service' => 'captcha',
|
||||
'presign_param' => 'PresignedUrl',
|
||||
]
|
||||
),
|
||||
'captcha'
|
||||
);
|
||||
};
|
||||
|
||||
parent::__construct($args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user