Skip to content

Instantly share code, notes, and snippets.

@joasgarcia
Created March 23, 2018 11:58
Show Gist options
  • Save joasgarcia/b96a98b150ce4faa058283eda4384185 to your computer and use it in GitHub Desktop.
Save joasgarcia/b96a98b150ce4faa058283eda4384185 to your computer and use it in GitHub Desktop.
Consultar cliente API ASAAS
$ch = curl_init();
curl_setopt($ch , CURLOPT_URL, "https://www.asaas.com/api/v3/customers");
curl_setopt($ch , CURLOPT_HTTPGET, true);
curl_setopt($ch , CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch , CURLOPT_HTTPHEADER, array(
"Content-Type: application/json",
"access_token: <COLOQUE AQUI A SUA API>"
));
$response = curl_exec($ch);
curl_close($ch);
var_dump($response);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment