This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
developers:api:client:requests [2014/11/16 06:49] Jaco van Wyk [Examples] |
developers:api:client:requests [2014/11/16 06:52] Jaco van Wyk [Examples] |
||
---|---|---|---|
Line 36: | Line 36: | ||
<code php> | <code php> | ||
+ | <?php | ||
+ | |||
$service_url = 'http://api.snapbill.com/v1/example'; | $service_url = 'http://api.snapbill.com/v1/example'; | ||
$curl = curl_init($service_url); | $curl = curl_init($service_url); | ||
$curl_post_data = array( | $curl_post_data = array( | ||
"client_xid" => 'T:SA', | "client_xid" => 'T:SA', | ||
- | "email_address" => 'email@example.com', | + | "email" => 'email@example.com', |
); | ); | ||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); |