OlegTrump

Untitled

May 16th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.06 KB | None | 0 0
  1. <?php
  2.  
  3. set_time_limit(0);
  4.  
  5. require 'vendor/autoload.php';
  6.  
  7. use Guzzle\Http\Client;
  8.  
  9. $host = 'http://lor73.ru:9101/api/Oktell/';
  10.  
  11. echo 'Connect to '.$host."\n";
  12.  
  13. $username = '';
  14. $password = '';
  15.  
  16. $client = new Client($host, [
  17.     'request.options' => [
  18.         'auth'    => [$username, $password, 'NTLM'],
  19.     ]
  20. ]);
  21.  
  22. // Create a GET request using Relative to base URL
  23. $request = $client->get('Ring_Missed?ServerId=100&amp;ChainId=5bc8eaa9-72b6-44b3-ab71-3871cd3351e5&amp;CallTimeStart=1/1/0001%2012:00:00%20AM&amp;CallType=0&amp;r_CallerId=0&amp;r_CallerName=&amp;r_CalledId=0&amp;r_InternalCallNumber=0&amp;r_InternalCallNumberAnswer=0&amp;r_DisplayName=&amp;r_MobileNumber=0&amp;r_ProcessDirection=&amp;GuidLine=00000000-0000-0000-0000-000000000000&amp;CommId=00000000-0000-0000-0000-000000000000&amp;OrgId=0&amp;QueueName=&amp;ClientId=00000000-0000-0000-0000-000000000000&amp;ClientName=&amp;ClientF=&amp;ClientI=&amp;ClientO=&amp;CallNumber=0&amp;LocalFilePath=&amp;EventTypeId=0');
  24. $response = $request->send();
  25.  
  26. echo 'Get!';
  27. echo "\n";
  28.  
  29. echo $response;
Add Comment
Please, Sign In to add comment