Advertisement
imadu2310

Untitled

Jul 10th, 2020
1,652
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.85 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4.  
  5. function GetVFDCustomerDetails($email) {
  6.     $curl = curl_init();
  7.  
  8. curl_setopt_array($curl, array(
  9.   CURLOPT_URL => "https://devesb.vfdbank.systems:8263/zendesk/vbank/v1/clients?email=".$email,
  10.   CURLOPT_RETURNTRANSFER => true,
  11.   CURLOPT_SSL_VERIFYPEER => false,
  12.   CURLOPT_ENCODING => "",
  13.   CURLOPT_MAXREDIRS => 10,
  14.   CURLOPT_TIMEOUT => 0,
  15.   CURLOPT_FOLLOWLOCATION => true,
  16.   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  17.   CURLOPT_CUSTOMREQUEST => "GET",
  18.   CURLOPT_HTTPHEADER => array(
  19.     "vBankAuth: Bearer 7c87c8ab-ce1f-33a6-bd2d-e98432ca0f2a",
  20.     "Content-Type: application/json"
  21.   ),
  22. ));
  23.  
  24. $response = curl_exec($curl);
  25.  
  26. if($response === false){
  27.     echo 'curl error'.curl_error($curl);
  28. } else {
  29.     print_r(json_encode($response));
  30. }
  31.  
  32. curl_close($curl);
  33.  
  34. }
  35.  
  36. $email = $_GET["email"];
  37.  
  38. GetVFDCustomerDetails($email);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement