Skip to content

Commit 0b3821c

Browse files
committed
init
Signed-off-by: Jack <[email protected]>
0 parents  commit 0b3821c

10 files changed

+603
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.idea
2+
vendor/
3+
composer.lock
4+
.DS_Store

composer.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "dongkaipo/aliyun-php-sdk-cloudauth",
3+
"description": "Aliyun php sdk cloudauth composer support",
4+
"type": "library",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Jack",
9+
"email": "[email protected]"
10+
}
11+
],
12+
"minimum-stability": "dev",
13+
"require": {
14+
"php": ">=7.0",
15+
"ext-openssl": "*",
16+
"dongkaipo/aliyun-php-sdk-core": "dev-master"
17+
},
18+
"require-dev": {
19+
"phpunit/phpunit": "^7.4@dev"
20+
},
21+
"autoload": {
22+
"psr-4": {
23+
"Cloudauth\\": "sdk/Cloudauth",
24+
"Dongkaipo\\": "src/Dongkaipo"
25+
}
26+
}
27+
}

sdk/ChangeLog.txt

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2018-09-25 Version: 1.1.5
2+
1, Fix bug in GetVerifyToken and SubmitMaterials API.
3+
4+
2018-08-15 Version: 1.1.4
5+
1, Fix bug in GetMaterials API.
6+
2, GetVerifyToken added a new param VerifyConfigs
7+
8+
2018-07-11 Version: 1.1.3
9+
1, Add DetectFaceAttributesService.
10+
2, Add cloudauthPageUrl to GetVerifyTokenResponse.
11+
12+
2018-05-17 Version: 1.1.2
13+
1, Supporting ethnicGroup and idCardStartDate fields in GetMaterials api
14+
15+
2017-12-05 Version: 1.1.1
16+
1, Added a field auditConclusions in GetStatus API which provided detail information about the verification request
17+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
<?php
2+
/*
3+
* Licensed to the Apache Software Foundation (ASF) under one
4+
* or more contributor license agreements. See the NOTICE file
5+
* distributed with this work for additional information
6+
* regarding copyright ownership. The ASF licenses this file
7+
* to you under the Apache License, Version 2.0 (the
8+
* "License"); you may not use this file except in compliance
9+
* with the License. You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing,
14+
* software distributed under the License is distributed on an
15+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
* KIND, either express or implied. See the License for the
17+
* specific language governing permissions and limitations
18+
* under the License.
19+
*/
20+
namespace Cloudauth\Request\V20180916;
21+
use Aliyun\Core\RpcAcsRequest;
22+
class CompareFacesRequest extends RpcAcsRequest
23+
{
24+
function __construct()
25+
{
26+
parent::__construct("Cloudauth", "2018-09-16", "CompareFaces", "cloudauth", "openAPI");
27+
$this->setProtocol("https");
28+
$this->setMethod("POST");
29+
}
30+
31+
private $sourceImageType;
32+
33+
private $resourceOwnerId;
34+
35+
private $sourceIp;
36+
37+
private $targetImageType;
38+
39+
private $sourceImageValue;
40+
41+
private $targetImageValue;
42+
43+
public function getSourceImageType() {
44+
return $this->sourceImageType;
45+
}
46+
47+
public function setSourceImageType($sourceImageType) {
48+
$this->sourceImageType = $sourceImageType;
49+
}
50+
51+
public function getResourceOwnerId() {
52+
return $this->resourceOwnerId;
53+
}
54+
55+
public function setResourceOwnerId($resourceOwnerId) {
56+
$this->resourceOwnerId = $resourceOwnerId;
57+
$this->queryParameters["ResourceOwnerId"]=$resourceOwnerId;
58+
}
59+
60+
public function getSourceIp() {
61+
return $this->sourceIp;
62+
}
63+
64+
public function setSourceIp($sourceIp) {
65+
$this->sourceIp = $sourceIp;
66+
$this->queryParameters["SourceIp"]=$sourceIp;
67+
}
68+
69+
public function getTargetImageType() {
70+
return $this->targetImageType;
71+
}
72+
73+
public function setTargetImageType($targetImageType) {
74+
$this->targetImageType = $targetImageType;
75+
}
76+
77+
public function getSourceImageValue() {
78+
return $this->sourceImageValue;
79+
}
80+
81+
public function setSourceImageValue($sourceImageValue) {
82+
$this->sourceImageValue = $sourceImageValue;
83+
}
84+
85+
public function getTargetImageValue() {
86+
return $this->targetImageValue;
87+
}
88+
89+
public function setTargetImageValue($targetImageValue) {
90+
$this->targetImageValue = $targetImageValue;
91+
}
92+
93+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
<?php
2+
/*
3+
* Licensed to the Apache Software Foundation (ASF) under one
4+
* or more contributor license agreements. See the NOTICE file
5+
* distributed with this work for additional information
6+
* regarding copyright ownership. The ASF licenses this file
7+
* to you under the Apache License, Version 2.0 (the
8+
* "License"); you may not use this file except in compliance
9+
* with the License. You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing,
14+
* software distributed under the License is distributed on an
15+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
* KIND, either express or implied. See the License for the
17+
* specific language governing permissions and limitations
18+
* under the License.
19+
*/
20+
namespace Cloudauth\Request\V20180916;
21+
use Aliyun\Core\RpcAcsRequest;
22+
class DetectFaceAttributesRequest extends RpcAcsRequest
23+
{
24+
function __construct()
25+
{
26+
parent::__construct("Cloudauth", "2018-09-16", "DetectFaceAttributes", "cloudauth", "openAPI");
27+
$this->setProtocol("https");
28+
$this->setMethod("POST");
29+
}
30+
31+
private $maxNumPhotosPerCategory;
32+
33+
private $maxFaceNum;
34+
35+
private $resourceOwnerId;
36+
37+
private $sourceIp;
38+
39+
private $retAttributes;
40+
41+
private $materialValue;
42+
43+
private $dontSaveDB;
44+
45+
private $clientTag;
46+
47+
public function getMaxNumPhotosPerCategory() {
48+
return $this->maxNumPhotosPerCategory;
49+
}
50+
51+
public function setMaxNumPhotosPerCategory($maxNumPhotosPerCategory) {
52+
$this->maxNumPhotosPerCategory = $maxNumPhotosPerCategory;
53+
}
54+
55+
public function getMaxFaceNum() {
56+
return $this->maxFaceNum;
57+
}
58+
59+
public function setMaxFaceNum($maxFaceNum) {
60+
$this->maxFaceNum = $maxFaceNum;
61+
}
62+
63+
public function getResourceOwnerId() {
64+
return $this->resourceOwnerId;
65+
}
66+
67+
public function setResourceOwnerId($resourceOwnerId) {
68+
$this->resourceOwnerId = $resourceOwnerId;
69+
$this->queryParameters["ResourceOwnerId"]=$resourceOwnerId;
70+
}
71+
72+
public function getSourceIp() {
73+
return $this->sourceIp;
74+
}
75+
76+
public function setSourceIp($sourceIp) {
77+
$this->sourceIp = $sourceIp;
78+
$this->queryParameters["SourceIp"]=$sourceIp;
79+
}
80+
81+
public function getRetAttributes() {
82+
return $this->retAttributes;
83+
}
84+
85+
public function setRetAttributes($retAttributes) {
86+
$this->retAttributes = $retAttributes;
87+
}
88+
89+
public function getMaterialValue() {
90+
return $this->materialValue;
91+
}
92+
93+
public function setMaterialValue($materialValue) {
94+
$this->materialValue = $materialValue;
95+
}
96+
97+
public function getDontSaveDB() {
98+
return $this->dontSaveDB;
99+
}
100+
101+
public function setDontSaveDB($dontSaveDB) {
102+
$this->dontSaveDB = $dontSaveDB;
103+
}
104+
105+
public function getClientTag() {
106+
return $this->clientTag;
107+
}
108+
109+
public function setClientTag($clientTag) {
110+
$this->clientTag = $clientTag;
111+
}
112+
113+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?php
2+
/*
3+
* Licensed to the Apache Software Foundation (ASF) under one
4+
* or more contributor license agreements. See the NOTICE file
5+
* distributed with this work for additional information
6+
* regarding copyright ownership. The ASF licenses this file
7+
* to you under the Apache License, Version 2.0 (the
8+
* "License"); you may not use this file except in compliance
9+
* with the License. You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing,
14+
* software distributed under the License is distributed on an
15+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
* KIND, either express or implied. See the License for the
17+
* specific language governing permissions and limitations
18+
* under the License.
19+
*/
20+
namespace Cloudauth\Request\V20180916;
21+
use Aliyun\Core\RpcAcsRequest;
22+
class GetMaterialsRequest extends RpcAcsRequest
23+
{
24+
function __construct()
25+
{
26+
parent::__construct("Cloudauth", "2018-09-16", "GetMaterials", "cloudauth", "openAPI");
27+
$this->setProtocol("https");
28+
$this->setMethod("POST");
29+
}
30+
31+
private $resourceOwnerId;
32+
33+
private $biz;
34+
35+
private $sourceIp;
36+
37+
private $ticketId;
38+
39+
public function getResourceOwnerId() {
40+
return $this->resourceOwnerId;
41+
}
42+
43+
public function setResourceOwnerId($resourceOwnerId) {
44+
$this->resourceOwnerId = $resourceOwnerId;
45+
$this->queryParameters["ResourceOwnerId"]=$resourceOwnerId;
46+
}
47+
48+
public function getBiz() {
49+
return $this->biz;
50+
}
51+
52+
public function setBiz($biz) {
53+
$this->biz = $biz;
54+
$this->queryParameters["Biz"]=$biz;
55+
}
56+
57+
public function getSourceIp() {
58+
return $this->sourceIp;
59+
}
60+
61+
public function setSourceIp($sourceIp) {
62+
$this->sourceIp = $sourceIp;
63+
$this->queryParameters["SourceIp"]=$sourceIp;
64+
}
65+
66+
public function getTicketId() {
67+
return $this->ticketId;
68+
}
69+
70+
public function setTicketId($ticketId) {
71+
$this->ticketId = $ticketId;
72+
$this->queryParameters["TicketId"]=$ticketId;
73+
}
74+
75+
}

0 commit comments

Comments
 (0)