Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $curl = curl_init();
- curl_setopt_array($curl, array(
- CURLOPT_URL => 'https://api.homolog.gofluxbrasil.com.br/login/authenticate',
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_ENCODING => '',
- CURLOPT_MAXREDIRS => 10,
- CURLOPT_TIMEOUT => 0,
- CURLOPT_FOLLOWLOCATION => true,
- CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
- CURLOPT_CUSTOMREQUEST => 'POST',
- CURLOPT_POSTFIELDS =>'{"email":"integracao.fertgrow@goflux.com.br","password":"R29mbHV4QDEyMzY1NA==","token":"37a2319a54386dc8f9f3ea4bf2212667c415a2a2e63329f664a89f35910bca3b"
- }',
- CURLOPT_HTTPHEADER => array(
- 'X-Date: 2021-10-20 7:00:00',
- 'Authorization: Bearer 37a2319a54386dc8f9f3ea4bf2212667c415a2a2e63329f664a89f35910bca3b',
- 'Content-Type: application/json'
- ),
- ));
- $response = curl_exec($curl);
- curl_close($curl);
- echo $response;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement