@@ -14,43 +14,43 @@ class Client extends RPCClient {
1414 }
1515
1616 /**
17- * @param {Integer } ImageType - imageType. required.
18- * @param {String } ImageURLA - imageUrlA. optional.
19- * @param {String } ImageContentA - imageContentA. optional.
20- * @param {String } ImageURLB - imageUrlB. optional.
21- * @param {String } ImageContentB - imageContentB. optional.
17+ * @param {Integer } ImageType - imageType. optional. default: 0.
18+ * @param {String } ImageURLA - imageUrlA. required.
19+ * @param {String } ImageURLB - imageUrlB. required.
2220 */
2321 compareFace ( params = { } , options = { } ) {
24- if ( ! hasOwnProperty ( params , 'ImageType' ) ) {
25- throw new TypeError ( 'parameter "ImageType" is required' ) ;
22+ if ( ! hasOwnProperty ( params , 'ImageURLA' ) ) {
23+ throw new TypeError ( 'parameter "ImageURLA" is required' ) ;
24+ }
25+
26+ if ( ! hasOwnProperty ( params , 'ImageURLB' ) ) {
27+ throw new TypeError ( 'parameter "ImageURLB" is required' ) ;
2628 }
2729
2830 options . method = 'POST' ;
2931 return this . request ( 'CompareFace' , params , options ) ;
3032 }
3133
3234 /**
33- * @param {Integer } ImageType - imageType. required.
34- * @param {String } ImageURL - imageUrl. optional.
35- * @param {String } ImageContent - imageContent. optional.
35+ * @param {Integer } ImageType - imageType. optional. default: 0.
36+ * @param {String } ImageURL - imageUrl. required.
3637 */
3738 detectFace ( params = { } , options = { } ) {
38- if ( ! hasOwnProperty ( params , 'ImageType ' ) ) {
39- throw new TypeError ( 'parameter "ImageType " is required' ) ;
39+ if ( ! hasOwnProperty ( params , 'ImageURL ' ) ) {
40+ throw new TypeError ( 'parameter "ImageURL " is required' ) ;
4041 }
4142
4243 options . method = 'POST' ;
4344 return this . request ( 'DetectFace' , params , options ) ;
4445 }
4546
4647 /**
47- * @param {Integer } ImageType - imageType. required.
48- * @param {String } ImageURL - imageUrl. optional.
49- * @param {String } ImageContent - imageContent. optional.
48+ * @param {Integer } ImageType - imageType. optional. default: 0.
49+ * @param {String } ImageURL - imageUrl. required.
5050 */
5151 recognizeFace ( params = { } , options = { } ) {
52- if ( ! hasOwnProperty ( params , 'ImageType ' ) ) {
53- throw new TypeError ( 'parameter "ImageType " is required' ) ;
52+ if ( ! hasOwnProperty ( params , 'ImageURL ' ) ) {
53+ throw new TypeError ( 'parameter "ImageURL " is required' ) ;
5454 }
5555
5656 options . method = 'POST' ;
0 commit comments