SSLListApproverEmails

Retrieve list with possible approver emails. Only possible for 'domain-validation' and 'wildcard' certificates.

Input

Parameter Value Example value
product_id Product id. Retrieve with SSLListProducts
Parameter is required
1
csr CSR code.
Parameter is required when parameter 'domain' is empty.
--CSR CODE ---
domain domain for requested certificate.
Parameter is required when parameter 'csr' is empty.
www.domain.com


Output

Parameter Value Example value
success command executed successfully 0 = error
1 = command executed successfully
command_response_message Error
Only sent when value parameter success = 0
incorrect password
total_count Totaal amount approver addresses
Only sent when value parameter success = 1
20
email_X E-mail address.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
email@domain.uk


Voorbeeld

<? require("class_versio_api.php"); // csr code $csr = '--CSR---'; unset($command); $command = array( "command" => "SSLListApproverEmails", "product_id" => 5, "csr" => utf8_encode($csr) ); $api = new Versio_api(); $versio = $api->api_send( $command ); IF($versio['success']==0) { echo("Error occured. Error code: ".$versio['command_response_code'].". Error message: ".$versio['command_response_message'].""); } else { IF($versio['total_count']>0) { ?> <table> <? $teller = 1; while($versio['total_count']>=$teller) { ?> <tr> <td><? echo $versio['email_'.$teller]; ?></td> </tr> <? $teller++; } ?> </table> <? } else { echo("No approver e-mail addresses found."); } } ?>