예제 #1
0
<?php

/**
 * Example Post Requests
 */
include __DIR__ . '/../vendor/autoload.php';
$api = new \CBApi\Api('https://localhost', 'e498d97b3c32541e4ba5b537e0a7e61cfa14c089');
echo $api->post()->addWatchList(['basicQueryValidation' => true, 'type' => 'events', 'searchQuery' => 'q=test1=1&test2=2', 'cbUrlVer' => 'cb.urlver=1', 'name' => 'test', 'readOnly' => false]);
echo $api->post()->applyLicense('Z2cX0JiX5kJ6Z4HUSPDOUUc5xy1pPvPW');
예제 #2
0
<?php

/**
 * Example Delete Requests
 */
include __DIR__ . '/../vendor/autoload.php';
$api = new \CBApi\Api('https://localhost', 'e498d97b3c32541e4ba5b537e0a7e61cfa14c089');
echo $api->delete()->deleteWatchlist(1);
예제 #3
0
<?php

/**
 * Example Put Requests
 */
include __DIR__ . '/../vendor/autoload.php';
$api = new \CBApi\Api('https://localhost', 'e498d97b3c32541e4ba5b537e0a7e61cfa14c089');
echo $api->put()->modifyWatchlist(1, 'newWatchlist');
예제 #4
0
<?php

/**
 * Example Get Requests
 */
include __DIR__ . '/../vendor/autoload.php';
$sslOptions = ['sslVersion' => 3];
$api = new \CBApi\Api('https://127.0.0.1:6969', 'e498d97b3c32541e4ba5b537e0a7e61cfa14c089', $sslOptions);
echo $api->get()->info();
echo $api->get()->processSummary(1, 1, 10);
echo $api->get()->sensorInstaller('WindowsEXE');