ehelply/superstack-sdk

eHelply SuperStack 服务 SDK

dev-master 2022-11-18 16:18 UTC

This package is auto-updated.

Last update: 2024-09-18 20:28:26 UTC


README

eHelply SuperStack 服务 SDK

更多信息,请访问 https://superstack.ehelply.com/support.

安装 & 使用

要求

PHP 7.4 及更高版本。也应与 PHP 8.0 兼容。

Composer

要通过 Composer 安装绑定,请在 composer.json 中添加以下内容

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}

然后运行 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\AppointmentsApi(
    // 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()
);
$appointment_uuid = 'appointment_uuid_example'; // string
$entity_uuid = 'entity_uuid_example'; // string
$x_access_token = 'x_access_token_example'; // string
$x_secret_token = 'x_secret_token_example'; // string
$authorization = 'authorization_example'; // string
$ehelply_active_participant = 'ehelply_active_participant_example'; // string
$ehelply_project = 'ehelply_project_example'; // string
$ehelply_data = 'ehelply_data_example'; // string

try {
    $result = $apiInstance->addEntityToAppointment($appointment_uuid, $entity_uuid, $x_access_token, $x_secret_token, $authorization, $ehelply_active_participant, $ehelply_project, $ehelply_data);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AppointmentsApi->addEntityToAppointment: ', $e->getMessage(), PHP_EOL;
}

API 端点

所有 URI 都相对于 https://api.prod.ehelply.com

模型

授权

所有端点均不需要授权。

测试

要运行测试,请使用

composer install
vendor/bin/phpunit

作者

support@ehelply.com

关于此包

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

  • API版本:1.1.118
    • 包版本:1.1.118
  • 构建包:org.openapitools.codegen.languages.PhpClientCodegen