imadu2310

Untitled

Jul 10th, 2020
904
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.74 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.   ),
  21. ));
  22.  
  23. $response = curl_exec($curl);
  24.  
  25. curl_close($curl);
  26. var_dump($response);
  27. echo json_decode($response);
  28.  
  29. }
  30.  
  31. $email = $_GET["email"];
  32. GetVFDCustomerDetails($email);
  33. ?>
Advertisement
Add Comment
Please, Sign In to add comment