DomainsListContacts

List al domain holder contacts.

Input

none

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 Total amount contacts.
Only sent when value parameter success = 1
20
id_X Contact ID
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
32338
companyname_X Company name.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
versio
initials_X Initials.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
H
surname_X Surname.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
Sarly
email_x E-mail address.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
h.sarly@email.com
phone_x Phone number.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
0123456780
street_x Street name.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
Street name
hnr_X Housenumber.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
2
hnradd_X Housenumber addition.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
A
zipcode_X Postcode.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
1234
city_X City.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
London
country_X Country.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
UK
validated_X Is the contact validated. 0 = not validated. 1= validated
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
1


Example

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "DomainsListContacts" ); $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['id_'.$teller]; ?></td> <td><? echo $versio['companyname_'.$teller]; ?></td> <td><? echo $versio['initials_'.$teller]; ?></td> <td><? echo $versio['surname_'.$teller]; ?></td> <td><? echo $versio['email_'.$teller]; ?></td> <td><? echo $versio['phone_'.$teller]; ?></td> <td><? echo $versio['street_'.$teller]; ?></td> <td><? echo $versio['hnr_'.$teller]; ?></td> <td><? echo $versio['hnradd_'.$teller]; ?></td> <td><? echo $versio['zipcode_'.$teller]; ?></td> <td><? echo $versio['city_'.$teller]; ?></td> <td><? echo $versio['country_'.$teller]; ?></td> <td><? echo $versio['validated_'.$teller]; ?></td> </tr> <? $teller++; } ?> </table> <? } else { echo("No domain contacts found in your account."); } } ?>