Get Contacts

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
  • email
  • 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
                        )

                )

        )

)
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Add Cancel Request

addcancelrequest Purpose This command is used to Add Cancellation Request for a specific...

Add Contact

addcontact Purpose This command is used to create a new contact under an account. Attributes...

Delete Contact

deletecontact Purpose This command is used to delete a contact in the system. Attributes...

Get Clients Details

getclientsdetails Purpose This command is used to retrieve all the data held about your...

Get Clients Addons

getclientsaddons Purpose This command is used to obtain the addons associated with a client...