Skip to content

Instantly share code, notes, and snippets.

@jampasilva
Created October 15, 2019 02:02
Show Gist options
  • Select an option

  • Save jampasilva/c85e23b4205c0753cf5b791627b13b19 to your computer and use it in GitHub Desktop.

Select an option

Save jampasilva/c85e23b4205c0753cf5b791627b13b19 to your computer and use it in GitHub Desktop.
<?php
$url = 'https://api.wlvpn.com/v2/customers?api-key=my-api-key';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$output = curl_exec($ch);
$curl_error = curl_error($ch);
curl_close($ch);
print_r($output);
print_r($curl_error);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment