$guid="blochain-info-wallet-id";
$firstpassword="blockchain-info-wallet-password";
$amounta = "10000";
$amountb = "40000";
$addressa = "1A8JiWcwvpY7tAopUkSnGuEYHmzGYfZPiq";
$addressb = "1ExD2je6UNxL5oSu6iPUhn9Ta7UrN8bjBy";
$recipients = urlencode('{
"'.$addressa.'": '.$amounta.',
"'.$addressb.'": '.$amountb.'
}');
$note = "Payment Note"
$json_url = "http://blockchain.info/merchant/$guid/sendmany?password=$firstpassword&recipients=$recipients¬e=$note";
$json_data = file_get_contents($json_url);
$json_feed = json_decode($json_data);
$message = $json_feed->message;
$txid = $json_feed->tx_hash;
echo "Message: ".$message."
Tx ID: ".$txid;
?>
I tried with both http & https, but neither is working !!!