mlverify/php-sdk

SwaggerHub的PHP库,用于与MLVerify.com一起使用

v1.0.0 2019-01-24 22:41 UTC

This package is not auto-updated.

Last update: 2024-09-29 06:02:36 UTC


README

API命令的简单集合,用于使用ML Verify API。

此PHP包已由Swagger Codegen项目自动生成

  • API版本:v1

要求

PHP 5.5及更高版本

安装与使用

Composer

要通过Composer安装绑定,请在终端运行以下命令

composer require mlverify/php-sdk

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门指南

请按照安装过程进行操作,然后运行以下命令

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: basic
$config = MLVerify\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new MLVerify\Client\Api\AccountApi(
    // 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
);

try {
    $result = $apiInstance->accountWhoAmI();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountApi->accountWhoAmI: ', $e->getMessage(), PHP_EOL;
}

?>

API端点文档

所有URI相对于 https://api.mlverify.com

模型文档

授权文档

basic

  • 类型:HTTP基本认证

作者