getcontacts
Purpose
This command is used to retrieve contact details. Searches can be run with one or more of any of the below attributes.
Attributes
Optional Attributes
- limitstart - Record to start at (default = 0)
- limitnum - Number of records to return (default = 25)
- userid
- firstname
- lastname
- companyname
- address1
- address2
- city
- state
- postcode
- country
- phonenumber
- subaccount - true/false
Example Command
$postfields = array(); $postfields["responsetype"] = "json"; $postfields["action"] = "getcontacts"; $result = mikrovps_SendCommand( $postfields );
Successful Response
Array
(
[result] => success
[totalresults] => 1
[startnumber] => 0
[numreturned] => 1
[contacts] => Array
(
[contact] => Array
(
[0] => Array
(
[id] => 1
[userid] => 1
[firstname] => Firstname
[lastname] => Lastname
[companyname] =>
[email] => demo@demo.tld
[address1] => Address
[address2] =>
[city] => Budapest
[state] => Budapest
[postcode] => 1111
[country] => HU
[phonenumber] => 94111111
[subaccount] => 0
[password] => vwervfewr:f34
[permissions] =>
[domainemails] => 0
[generalemails] => 0
[invoiceemails] => 0
[productemails] => 0
[supportemails] => 0
[affiliateemails] => 0
[pwresetkey] =>
[pwresetexpiry] => 0
)
)
)
)