This file contains 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
git branch newbranch | |
git reset --hard HEAD~3 # Go back 3 commits. You *will* lose uncommitted work.*1 | |
git checkout newbranch |
This file contains 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
<?php | |
$customerData = array( | |
"name" => "João da Silva", | |
"cpfCnpj" => "09434952967", | |
"postalCode" => "89223005", | |
"mobilePhone" => "47989134255", | |
"email" => "joasdasilva@teste.com.br" | |
); | |
$customerParamsJson = json_encode($customerData); |
This file contains 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); |
OlderNewer