CONTACT_UPDATE
Mise à jour d'un contact.
| Paramètres entrants |
Description |
Type |
Expression régulière |
0bligatoire |
| contact_id |
Identifiant de contact |
String (min 3, max 10) |
|
oui |
| street |
Adresse 1 |
String (sans accent) |
[A-Za-z0-9 \.!#$%'()*+,:;=\-?@[\]//^_`|}{]{1,250} |
oui |
| Street2 |
Adresse 2 |
String (sans accent) |
[A-Za-z0-9 \.!#$%'()*+,:;=\-?@[\]//^_`|}{]{1,250} |
non |
| city |
Ville |
String (sans accent) |
[A-Za-z0-9 \.!#$%'()*+,:;=\-?@[\]//^_`|}{]{1,150} |
oui |
| pc |
Code postal |
String |
[ a-zA-Z0-9._#/-]{1,30} |
oui |
| sp |
Province ou état |
String (sans accent) |
[A-Za-z0-9 \.\-!#$%'()*+,:;=?@[\]//^_`|}{]{0,80} |
non |
| voice |
Téléphone |
String (format : code téléphone pays + ". " + numéro de téléphone) |
\+[0-9]{1,3}\.[0-9]{1,15} |
oui |
| fax |
Fax (format : code téléphone pays + ". " + numéro de fax) |
String (format : code téléphone pays + ". " + numéro de fax) |
\+[0-9]{1,3}\.[0-9]{1,15} |
non |
| email |
Adresse email |
String |
[0-9a-zA-Z_\.-]+@ (([0-9]{1,3}\.){3}[0-9]{1,3} |([0-9a-zA-Z][A-Z0-9a-z-]* [0-9a-zA-Z]\.)+[a-zA-Z]{2,7}) |
oui |
| password |
Mot de passe |
String (min 5, max 15) |
[A-Za-z0-9 \.!#$%'()*+,:;=\-?@[\]//^_`|}{]{1,250} |
oui |
| Paramètres sortants |
Description |
| contact_id |
Identifiant du contact modifié |
exemple :
commande
[
]
<command>
<contact_update>
<contact_id>
</contact_id>
<street>
</street>
<city>
</city>
<pc>
</pc>
<voice>
</voice>
<email>
</email>
<password>
</password>
</contact_update>
</command>
</api>
réponse
<?xml version="1.0" encoding="utf-8"?>
<api>
<response>
<trID>
</trID>
<result code="
">
<msg>
</msg>
</result>
</response>
<resData>
<contact_upData>
<contact_id>
</contact_id>
</contact_upData>
</resData>
</api>