mirror of
https://github.com/SkillDisplay/PHPToolKit.git
synced 2024-11-16 22:06:08 +01:00
[FEATURE] Make verification auto-confirm configurable #9
This commit is contained in:
parent
ed1e70100f
commit
3ed3abc0d2
1 changed files with 6 additions and 4 deletions
|
@ -34,7 +34,8 @@ class Issuer
|
|||
string $useremail,
|
||||
string $vtype,
|
||||
bool $isSkillSet = false,
|
||||
int $campaignId = 0
|
||||
int $campaignId = 0,
|
||||
bool $autoConfirm = true
|
||||
): array {
|
||||
if ($isSkillSet) {
|
||||
$requestData['SkillSetId'] = $ID;
|
||||
|
@ -45,7 +46,7 @@ class Issuer
|
|||
$requestData['Level'] = $vtype;
|
||||
$requestData['VerifierId'] = $this->settings->getVerifierID();
|
||||
$requestData['Username'] = $useremail;
|
||||
$requestData['AutoConfirm'] = true;
|
||||
$requestData['AutoConfirm'] = $autoConfirm;
|
||||
if ($campaignId) {
|
||||
$requestData['CampaignId'] = $campaignId;
|
||||
}
|
||||
|
@ -86,9 +87,10 @@ class Issuer
|
|||
string $useremail,
|
||||
string $vtype,
|
||||
bool $isSkillSet = false,
|
||||
int $campaignId = 0
|
||||
int $campaignId = 0,
|
||||
bool $autoConfirm = true
|
||||
): ResponseInterface {
|
||||
$requestData = $this->generateSignedRequestData($skillID, $useremail, $vtype, $isSkillSet, $campaignId);
|
||||
$requestData = $this->generateSignedRequestData($skillID, $useremail, $vtype, $isSkillSet, $campaignId, $autoConfirm);
|
||||
|
||||
$client = new \GuzzleHttp\Client();
|
||||
$request = new Request(
|
||||
|
|
Loading…
Reference in a new issue