File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # 更新历史 #
2+ API版本:1.0.0
3+
4+ | 发布时间| 版本号| 更新| 说明|
5+ | ---| ---| ---| ---|
6+ | 2020-10-26| 1.0.0| 初始版本| * API及分组定义基础接口|
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * Eid
4+ *
5+ * @category Jdcloud
6+ * @package Jdcloud\Eid
7+ * @author Jdcloud <jdcloud-api@jd.com>
8+ * @license Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
9+ * @link https://www.jdcloud.com/help/faq
10+ */
11+
12+ namespace Jdcloud \Eid ;
13+
14+ use Jdcloud \JdCloudClient ;
15+ use Jdcloud \Api \Service ;
16+ use Jdcloud \Api \DocModel ;
17+ use Jdcloud \Api \ApiProvider ;
18+ use Jdcloud \PresignUrlMiddleware ;
19+
20+ /**
21+ * Client used to interact with eid.
22+ *
23+ * @method \Jdcloud\Result eidScore(array $args = [])
24+ * @method \GuzzleHttp\Promise\Promise eidScoreAsync(array $args = [])
25+ * @method \Jdcloud\Result vttok(array $args = [])
26+ * @method \GuzzleHttp\Promise\Promise vttokAsync(array $args = [])
27+ * @method \Jdcloud\Result device(array $args = [])
28+ * @method \GuzzleHttp\Promise\Promise deviceAsync(array $args = [])
29+ */
30+ class EidClient extends JdCloudClient
31+ {
32+ public function __construct (array $ args )
33+ {
34+ $ args ['with_resolved ' ] = function (array $ args ) {
35+ $ this ->getHandlerList ()->appendInit (
36+ PresignUrlMiddleware::wrap (
37+ $ this ,
38+ $ args ['endpoint_provider ' ],
39+ [
40+ 'operations ' => [
41+ ],
42+ 'service ' => 'eid ' ,
43+ 'presign_param ' => 'PresignedUrl ' ,
44+ ]
45+ ),
46+ 'eid '
47+ );
48+ };
49+
50+ parent ::__construct ($ args );
51+ }
52+ }
You can’t perform that action at this time.
0 commit comments