Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- set_time_limit(0);
- require 'vendor/autoload.php';
- use Guzzle\Http\Client;
- $host = 'http://lor73.ru:9101/api/Oktell/';
- echo 'Connect to '.$host."\n";
- $username = '';
- $password = '';
- $client = new Client($host, [
- 'request.options' => [
- 'auth' => [$username, $password, 'NTLM'],
- ]
- ]);
- // Create a GET request using Relative to base URL
- $request = $client->get('Ring_Missed?ServerId=100&ChainId=5bc8eaa9-72b6-44b3-ab71-3871cd3351e5&CallTimeStart=1/1/0001%2012:00:00%20AM&CallType=0&r_CallerId=0&r_CallerName=&r_CalledId=0&r_InternalCallNumber=0&r_InternalCallNumberAnswer=0&r_DisplayName=&r_MobileNumber=0&r_ProcessDirection=&GuidLine=00000000-0000-0000-0000-000000000000&CommId=00000000-0000-0000-0000-000000000000&OrgId=0&QueueName=&ClientId=00000000-0000-0000-0000-000000000000&ClientName=&ClientF=&ClientI=&ClientO=&CallNumber=0&LocalFilePath=&EventTypeId=0');
- $response = $request->send();
- echo 'Get!';
- echo "\n";
- echo $response;
Add Comment
Please, Sign In to add comment