antoinelemaire/sqreen-php-client

Sqreen library for PHP

1.0.0 2019-01-17 15:38 UTC

This package is auto-updated.

Last update: 2024-12-19 03:41:20 UTC


README

Usage

<?php
use Sqreen\SqreenClient;

$client = new SqreenClient(
    '1234567890123456789012', // applicationId
    'login@example.org',      // email
    'my_beautiful_password!'  // password
    );

// Get Security Response events
$events = $client->application->getSecurityResponse();

// Stop a Security Response
$securityResponseId = 'NWJlMTk2ZDdmM2Y1ZmEwMDE1MTMwMTRhOjVjM2UwZjIzMjlmMTcwMDAxZWM3NTM5MDo1YzNmNjQwNDUJyksICgnaWQnLCAnMzAzMzE3OCcpXSk6YmFjYTJiMmMxOWIwMTFlOWFlM2IwMjQyYWMxMTAwMDM';
$events = $client->application->deleteSecurityResponse($securityResponseId);

?>