Created
March 23, 2018 11:58
-
-
Save joasgarcia/b96a98b150ce4faa058283eda4384185 to your computer and use it in GitHub Desktop.
Consultar cliente API ASAAS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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