We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 834eed0 commit 8182648Copy full SHA for 8182648
1 file changed
wscli-php-sdk/src/WsCli.php
@@ -574,12 +574,17 @@ private function handleCerts($api, $cmd)
574
$this->log->debug(print_r($resp, true));
575
return $resp;
576
case "exportCert":
577
- $error = $this->checkArgs(['apikey', 'idtoken', 'pgpkeyid', 'outfilename']);
+ $error = $this->checkArgs(['apikey', 'idtoken', 'pgpkeyid']);
578
if ($error) {
579
return $error;
580
}
581
- $this->log->error("Unimplemented API command");
582
- return 3;
+ $resp = $this->${"api"}->${"cmd"}(
+ $this->opts['idtoken'],
583
+ $this->opts['bank'],
584
+ $this->opts['pgpkeyid']
585
+ );
586
+ $this->log->debug(print_r($resp, true));
587
+ return $resp;
588
case "shareCerts":
589
$error = $this->checkArgs(['apikey', 'idtoken', 'extemail']);
590
0 commit comments