dolibarr 21.0.0-beta
server_contact.php File Reference

File that is entry point to call Dolibarr WebServices. More...

Go to the source code of this file.

Functions

 getContact ($authentication, $id, $ref_ext)
 Get Contact.
 
 createContact ($authentication, $contact)
 Create Contact.
 
 getContactsForThirdParty ($authentication, $idthirdparty)
 Get list of contacts for third party.
 
 updateContact ($authentication, $contact)
 Update a contact.
 

Detailed Description

File that is entry point to call Dolibarr WebServices.

Definition in file server_contact.php.

Function Documentation

◆ createContact()

createContact ( $authentication,
$contact )

Create Contact.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
array{id:string,ref_ext:string,lastname:string,firstname:string,address:string,zip:string,town:string,state_id:string,state_code:string,state:string,country_id:string,country_code:string,country:string,socid:string,status:string,phone_pro:string,fax:string,phone_perso:string,phone_mobile:string,code:string,email:string,birthday:string,default_lang:string,note:string,ref_facturation:string,ref_contrat:string,ref_commande:string,ref_propal:string,user_id:string,user_login:string,civility_id:string,poste:string}$contact $contact
Returns
array{result:array{result_code:string,result_label:string}} Array result

Definition at line 388 of file server_contact.php.

References $conf, check_authentication(), dol_now(), and dol_syslog().

◆ getContact()

getContact ( $authentication,
$id,
$ref_ext )

Get Contact.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
int$idId of object
string$ref_extRef external of object
Returns
array{result:array{result_code:string,result_label:string}} Array result

Definition at line 272 of file server_contact.php.

References $conf, $id, check_authentication(), and dol_syslog().

◆ getContactsForThirdParty()

getContactsForThirdParty ( $authentication,
$idthirdparty )

Get list of contacts for third party.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
int$idthirdpartyId thirdparty
Returns
array{result:array{result_code:string,result_label:string}} Array result

Definition at line 497 of file server_contact.php.

References $conf, check_authentication(), and dol_syslog().

◆ updateContact()

updateContact ( $authentication,
$contact )

Update a contact.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
array{id:string,ref_ext:string,lastname:string,firstname:string,address:string,zip:string,town:string,state_id:string,state_code:string,state:string,country_id:string,country_code:string,country:string,socid:string,status:string,phone_pro:string,fax:string,phone_perso:string,phone_mobile:string,code:string,email:string,birthday:string,default_lang:string,note:string,ref_facturation:string,ref_contrat:string,ref_commande:string,ref_propal:string,user_id:string,user_login:string,civility_id:string,poste:string}$contact Contact
Returns
array{result:array{result_code:string,result_label:string}} Array result

Definition at line 626 of file server_contact.php.

References $conf, $object, check_authentication(), dol_now(), dol_syslog(), and getCountry().