ingresse / legiti-php-sdk
此包的规范仓库似乎已丢失,因此该包已被冻结。
0.1
2020-04-28 16:56 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-02-21 05:56:47 UTC
README
Legiti通过根据过去和现在的客户行为进行预测来评估订单欺诈的可能性,从而保护您的公司免受欺诈和退款带来的损失,最大化有效购买的收益,并最小化不必要的客户摩擦。
此PHP包是由Swagger Codegen项目自动生成的
- API版本:1.0
- 构建包:io.swagger.codegen.v3.generators.php.PhpClientCodegen
需求
PHP 5.5及更高版本
安装和用法
Composer
通过Composer安装绑定
composer require ingresse/legiti-php-sdk
手动安装
下载文件并包含autoload.php
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
测试
运行单元测试
composer install
./vendor/bin/phpunit
入门
请遵循安装过程,然后运行以下命令
<?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; } ?>
API端点文档
所有URI都相对于https://legiti-api.lgtcdn.net
类 | 方法 | HTTP请求 | 描述 |
---|---|---|---|
AuthApi | auth | POST /ticketing/v1/auth | 添加使用auth操作和结果 |
模型文档
授权文档
bearerAuth
- 类型:HTTP bearer认证