api.adres-validatie.nl 的 SDK

v1.3.0 2024-09-08 05:38 UTC

This package is auto-updated.

Last update: 2024-09-08 05:39:15 UTC


README

api.adres-validatie.nl 的 API 文档

安装与使用

需求

PHP 7.4 及以上版本。也支持 PHP 8.0。

Composer

要使用 Composer 安装绑定,请将以下内容添加到 composer.json

{
  "require": {
    "adres-validatie-nl/php-sdk": "^1.3.0"
  }
}

然后运行 composer install

手动安装

下载文件并包含 autoload.php

<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

入门指南

请遵循安装过程,然后运行以下命令

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

$apiInstance = new OpenAPI\Client\Api\DefaultApi(
    // 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()
);
$client_id = 'client_id_example'; // string | The account's client id
$client_secret = 'client_secret_example'; // string | The account's client secret

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

API 端点

所有 URI 都相对于 https://api.adres-validatie.nl

模型

授权

API 定义的认证方案

Oauth2

  • 类型: OAuth
  • 流程: application
  • 授权 URL: ``
  • 作用域:
    • read:data: 从 API 读取数据
    • write:data: 向 API 写入数据

测试

要运行测试,请使用

composer install
vendor/bin/phpunit

作者

关于此包的信息

此 PHP 包由 OpenAPI Generator 项目自动生成

  • API 版本: 1.0.0
    • 生成器版本: 7.8.0
  • 构建包: org.openapitools.codegen.languages.PhpClientCodegen