Modify Whois Profile for domain name

by MANIMUTHUPANDI 2014-03-06 17:56:46

Every php developers who want to integrate Reseller club API to
modify the WHOIS details of a customer ,they can follow this
php function.

And there is no such a API to Modify an individual domain of WHOIS details.
There is ony one API ("https://test.httpapi.com/api/contacts/modify.json") to
modify the customer details with the given email ID.

Here I have used the post method to post values to the url "https://test.httpapi.com/api/contacts/modify.json".

function ModifyCustomerDetails($contactID,$customerName,$customerCompany,$customerEmail,$address1,$address2,$city,$state,$country,$zipCode,$phoneCode,$phoneNo)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://test.httpapi.com/api/contacts/modify.json");
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_POST,TRUE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "auth-userid=YOUR RESELLER ID
&auth-password=YOUR PASS CODE&contact-id=$contactID
&name=$customerName&company=$customerCompany&email=$customerEmail
&address-line-1=$address1&city=$city&country=$country&zipcode=$zipCode
&phone-cc=$phoneCode&phone=$phoneNo");
$modified_details = curl_exec($ch);
$modified_details2=json_decode($modified_details,true);
return $modified_details2;
}

Tagged in:

475
like
0
dislike
0
mail
flag

You must LOGIN to add comments