upmind/enhance-sdk

Enhance.com PHP SDK 由 OpenAPI Generator 从 Enhance OpenAPI 规范自动生成

v10.0.0 2023-12-19 14:47 UTC

This package is auto-updated.

Last update: 2024-09-25 15:19:51 UTC


README

Latest Version on Packagist

Enhance.com PHP SDK 自动生成Enhance OpenAPI 规范,使用 OpenAPI Generator v6.2.0。

此包的版本与用于生成 SDK 的 Enhance orchd OpenAPI 规范 版本对应。

安装和用法

要求

PHP 7.4 及以上版本。也适用于 PHP 8。

Composer

要使用 Composer 安装此包,请运行以下安装命令

composer require upmind/enhance-sdk

手动安装

下载文件并包含 autoload.php

<?php
require_once('/path/to/upmind/enhance-sdk/vendor/autoload.php');

入门指南

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

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




$apiInstance = new Upmind\EnhanceSdk\Api\AppsApi(
    // 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()
);
$org_id = 'org_id_example'; // string | The id of the organization.
$website_id = 'website_id_example'; // string | The id of the website.
$new_website_app = new \Upmind\EnhanceSdk\Model\NewWebsiteApp(); // \Upmind\EnhanceSdk\Model\NewWebsiteApp

try {
    $result = $apiInstance->createWebsiteApp($org_id, $website_id, $new_website_app);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AppsApi->createWebsiteApp: ', $e->getMessage(), PHP_EOL;
}

API 端点

所有 URI 都相对于 https://

模型

测试

运行测试,请使用

composer install
vendor/bin/phpunit

作者

关于此包

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

  • API版本对应于SDK包版本
  • 构建包:org.openapitools.codegen.languages.PhpClientCodegen

许可证

Apache许可证2.0(Apache-2.0)。请参阅许可证文件以获取更多信息。

Upmind

使用Upmind.com - 终极网站托管计费和管理解决方案,销售、管理和支持网站托管、域名、SSL证书、网站构建器等。