como consumir no scriptcase?
curl -X POST “https://www.escavador.com/api/v1/request-token”
-H “X-Requested-With: XMLHttpRequest”
-H “Content-Type: application/json”
-d ‘{“username”:“meuemail@email.com”,“password”:“abc123”}’
no php:
$client = new \GuzzleHttp\Client();
$response = $client->post(“https://www.escavador.com/api/v1/request-token”, [
‘headers’ => [
“X-Requested-With” => “XMLHttpRequest”,
“Content-Type” => “application/json”,
],
‘json’ => [
“username” => "meuemail@email.com",
“password” => “abc123”,
],
]);
$body = $response->getBody();
print_r(json_decode((string) $body));