-
Notifications
You must be signed in to change notification settings - Fork 3
Contact module
Miky edited this page Sep 10, 2015
·
4 revisions
The Contact module gives access to the contacts stored in the account.
All the methods from this module are prefixed with contact_. For example:
$dondominio = new DonDominioAPI(array(
'apiuser' => '00000-XXX',
'apipasswd' => 'XXXXXXXXXXXX'
));
$contactList = $dondominio->contact_list();All methods will return a DonDominioResponse object containing the data -or any errors- returned by the API call.
Returns a list containing the contacts registered into the account.
DonDominioResponse contact_list ( [ array $parameters ] )Heads up!
ThegetListmethod is calledlistwhen using the DonDominio client.
| Parameter | Type | Required? | Default | Description |
|---|---|---|---|---|
| pageLength | integer | No | 1000 | Maximum number of items returned in a single call |
| page | integer | No | 1 | Current page of results |
| name | string | No | Filter contacts by name | |
| string | No | Filter contacts by exact email address | ||
| country | string | No | Filter contacts by country code | |
| identNumber | string | No | Filter contacts by exact id number |
| Field | Field (Array) | Type | Description |
|---|---|---|---|
| queryInfo | array | Information about the processed query | |
| page | integer | Current page | |
| pageLength | integer | Maximum number of items queried | |
| results | integer | Number of items returned | |
| total | integer | Total number of items available | |
| contacts | array | Contacts information - one item per contact | |
| contactID | string | Contact identification number in the DonDominio system | |
| contactType | string | Type of contact (individual or organization) |
|
| contactName | string | Name of the contact | |
| identNumber | string | Id number of the contact | |
| string | Email address of the contact | ||
| country | string | Country code of the contact |
Get all the information available from a contact.
DonDominioResponse contact_getInfo ( string $contactID [, string $infoType = 'data' ] )| Parameter | Type | Required? | Default | Description |
|---|---|---|---|---|
| contactId | string | Yes | Contact identification number in the DonDominio system | |
| infoType | string | No | data | Type of information to obtain data: Contact data |
| Field | Type | Description |
|---|---|---|
| infoType = data | ||
| contactXYZ | ContactData | Contact information in multiple fields |