Deskripsi
Mengubah data contact.
Query
contact/update
List Variabel
Nama | Tipe Data | Required/Optional | Deksripsi |
---|---|---|---|
contactid | Integer(11) | One Of | ID contact yang di berikan ketika contact di generate; |
nickhandle | Varchar(255) | One Of | Nickhandle contact yang di berikan ketika contact di generate; |
fname | String(32) | Optional | Nama depan |
lname | String(32) | Optional | Nama belakang |
String(63) | Optional | Email contact | |
company | String(32) | Optional | Nama Perusahaan, jika untuk pribadi masukkan "personal" |
address | String(255) | Optional | Alamat |
address2 | String(255) | Optional | Alamat 2 |
address3 | String(255) | Optional | Alamat 3 |
city | String(32) | Optional | Nama Kota |
province | String(32) | Optional | Nama Propinsi / Negara bagian |
phone | String(14) | Optional | Nomor Telepon sertakan kode negara tanpa tanda "+" |
fax | String(14) | Optional | Nomor Fax sertakan kode negara tanpa tanda "+" |
country | String(3) | Optional | Kode negara contoh : ID, MY, SG, AU |
postal_code | String(8) | Optional | Kodepos |
Contoh
$post['username'] = 'apiusername'; $post['password'] = hash('sha256','apipassword'); $post['contactid'] = '13422' $post["fname"] = 'Jhon' $url = 'http://[reseller url]/api/contact/update'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $apiurl); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post)); $response = curl_exec($ch); curl_close($ch);
Respon Contoh
Berhasil
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><epp><result><resultCode>1000</resultCode><resultMsg>Command completed successfully</resultMsg></result></epp>
Gagal
<?xml version="1.0" encoding="UTF-8"?> <epp><result><resultCode>1001</resultCode><resultMsg>Respon Failed</resultMsg></result></epp>