Advertisement
ngbayu

briva1

Jun 28th, 2022
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. <?php
  2.  
  3. $curl = curl_init();
  4.  
  5. curl_setopt_array($curl, array(
  6. CURLOPT_URL => 'https://service-vendor.tcd-dev.id/api/briapi/request-inquiry',
  7. CURLOPT_RETURNTRANSFER => true,
  8. CURLOPT_ENCODING => '',
  9. CURLOPT_MAXREDIRS => 10,
  10. CURLOPT_TIMEOUT => 0,
  11. CURLOPT_FOLLOWLOCATION => true,
  12. CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  13. CURLOPT_CUSTOMREQUEST => 'POST',
  14. CURLOPT_POSTFIELDS =>'{"brivaNo": "123463556633525"}',
  15. CURLOPT_HTTPHEADER => array(
  16. 'BRI-Timestamp: 2022-06-29T02:28:05.246Z',
  17. 'BRI-Signature: HSv78dMrvZIkkiHrl5iv8TPezJ+sYNfof/u6eo0VQj0=',
  18. 'Authorization: Bearer MWY3MzJiNGZmMWQxZjVlMDYzYzIzZDk2MjBjNjVjNmIwZjYyOTdjODQxYzM1NGRjN2VlZjNmNmI4YjQ4NWZkNw==',
  19. 'Content-Type: application/json'
  20. ),
  21. ));
  22.  
  23. $response = curl_exec($curl);
  24.  
  25. curl_close($curl);
  26. echo $response;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement