Legiti protects your company from losses due to fraud and chargebacks, maximizing revenue from valid purchases and minimizing unnecessary customer friction. We accomplish this by making predictions based on past and present customer behavior to evaluate the likelihood that an order is fraudulent.
This PHP package is automatically generated by the Swagger Codegen project:
- API version: 1.0
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen
PHP 5.5 and later
To install the bindings via Composer:
composer require ingresse/legiti-php-sdk
Download the files and include autoload.php
:
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
To run the unit tests:
composer install
./vendor/bin/phpunit
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\AuthApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \Swagger\Client\Model\Auth(); // \Swagger\Client\Model\Auth |
try {
$result = $apiInstance->auth($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->auth: ', $e->getMessage(), PHP_EOL;
}
?>
All URIs are relative to https://legiti-api.lgtcdn.net
Class | Method | HTTP request | Description |
---|---|---|---|
AuthApi | auth | POST /ticketing/v1/auth | Add a use auth operation and result |
- Type: HTTP bearer authentication