Skip to content

Commit 96119fb

Browse files
committed
Add new api.
1 parent b53ea1e commit 96119fb

File tree

4 files changed

+132
-1
lines changed

4 files changed

+132
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.8.31 - 2019-12-29
4+
- Add new api.
5+
6+
37
## 1.8.30 - 2019-12-29
48
- Add new api.
59

src/Facebody/V20191230/FacebodyApiResolver.php

+126
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
use AlibabaCloud\Client\Resolver\ApiResolver;
66

77
/**
8+
* @method CompareFace compareFace(array $options = [])
89
* @method DetectFace detectFace(array $options = [])
10+
* @method RecognizeFace recognizeFace(array $options = [])
911
*/
1012
class FacebodyApiResolver extends ApiResolver
1113
{
@@ -26,6 +28,82 @@ class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
2628
public $serviceCode = 'facebody';
2729
}
2830

31+
/**
32+
* @method string getImageContentB()
33+
* @method string getImageType()
34+
* @method string getImageContentA()
35+
* @method string getImageURLB()
36+
* @method string getImageURLA()
37+
*/
38+
class CompareFace extends Rpc
39+
{
40+
41+
/**
42+
* @param string $value
43+
*
44+
* @return $this
45+
*/
46+
public function withImageContentB($value)
47+
{
48+
$this->data['ImageContentB'] = $value;
49+
$this->options['form_params']['ImageContentB'] = $value;
50+
51+
return $this;
52+
}
53+
54+
/**
55+
* @param string $value
56+
*
57+
* @return $this
58+
*/
59+
public function withImageType($value)
60+
{
61+
$this->data['ImageType'] = $value;
62+
$this->options['form_params']['ImageType'] = $value;
63+
64+
return $this;
65+
}
66+
67+
/**
68+
* @param string $value
69+
*
70+
* @return $this
71+
*/
72+
public function withImageContentA($value)
73+
{
74+
$this->data['ImageContentA'] = $value;
75+
$this->options['form_params']['ImageContentA'] = $value;
76+
77+
return $this;
78+
}
79+
80+
/**
81+
* @param string $value
82+
*
83+
* @return $this
84+
*/
85+
public function withImageURLB($value)
86+
{
87+
$this->data['ImageURLB'] = $value;
88+
$this->options['form_params']['ImageURLB'] = $value;
89+
90+
return $this;
91+
}
92+
93+
/**
94+
* @param string $value
95+
*
96+
* @return $this
97+
*/
98+
public function withImageURLA($value)
99+
{
100+
$this->data['ImageURLA'] = $value;
101+
$this->options['form_params']['ImageURLA'] = $value;
102+
103+
return $this;
104+
}
105+
}
106+
29107
/**
30108
* @method string getImageType()
31109
* @method string getImageURL()
@@ -73,3 +151,51 @@ public function withImageContent($value)
73151
return $this;
74152
}
75153
}
154+
155+
/**
156+
* @method string getImageType()
157+
* @method string getImageURL()
158+
* @method string getImageContent()
159+
*/
160+
class RecognizeFace extends Rpc
161+
{
162+
163+
/**
164+
* @param string $value
165+
*
166+
* @return $this
167+
*/
168+
public function withImageType($value)
169+
{
170+
$this->data['ImageType'] = $value;
171+
$this->options['form_params']['ImageType'] = $value;
172+
173+
return $this;
174+
}
175+
176+
/**
177+
* @param string $value
178+
*
179+
* @return $this
180+
*/
181+
public function withImageURL($value)
182+
{
183+
$this->data['ImageURL'] = $value;
184+
$this->options['form_params']['ImageURL'] = $value;
185+
186+
return $this;
187+
}
188+
189+
/**
190+
* @param string $value
191+
*
192+
* @return $this
193+
*/
194+
public function withImageContent($value)
195+
{
196+
$this->data['ImageContent'] = $value;
197+
$this->options['form_params']['ImageContent'] = $value;
198+
199+
return $this;
200+
}
201+
}

src/Facebody/endpoints.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"endpoint_map":{},"endpoint_regional":"regional","standard":{"cn-shanghai":"facebody.cn-shanghai.aliyuncs.com"},"regions":["cn-shanghai"],"endpoint_health":[]}

src/Release.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Release
1616
/**
1717
* Version of the SDK
1818
*/
19-
const VERSION = '1.8.30';
19+
const VERSION = '1.8.31';
2020

2121
/**
2222
* @param Event $event

0 commit comments

Comments
 (0)