Hi,
Do anyone have an example in PHP to a make a payment with the instawallet API?
This is the code that I use and it result in a 404: Not Found instead of the expected response such as {"successful": true, "message": "Sent 0.01 BTC to 14Z1mazY4HfysZyMaKudFr63EwHqQT2njz", "message_code": 0}
$url = "https://www.instawallet.org/api/v1/w/$wallet/payment?address=$address&amount=$amount";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.23 (Windows NT 5.1; U; en)');
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
$result = curl_exec($ch);
echo $result;
More info on the API is available here:
https://www.instawallet.org/static/api.html?v=e2406Thank you,
Hamburger