Fork me on GitHub

823 bytes of HTML

12345678910111213141516171819202122232425262728293031323334353637
<?php
$url	=	"http://clone.ucam.info/web-api/index";
$apikey	=	"##################################";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS,
	http_build_query(
		array(
			'apikey' => $apikey,
			'name' =>  "User Name"
			'emailaddress' =>"user@domain.com",
			'username' => "user@domain.com",
			'password' => 'USERPASSWORD',
			'sendname'=>"User Name",
			'sendemail' => "user@domain.com",
			'replyemail' =>"user@domain.com",
			'remarks' =>"",
			'country' => 'IN',
			'city' => "",
			'state' => "",
			'phone' => "",
			'address' => "",
		)
	)
);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);

$data=json_decode($response, true);            
if ($data["success"] === true)
{                
   //your code goes here
}