cn-consult/filecloud-php

FileCloud API 是一个易于使用的、基于 Swagger 的 PHP API。

v0.1 2017-05-04 15:13 UTC

This package is auto-updated.

Last update: 2024-09-23 22:23:31 UTC


README

FileCloud API 为开发者提供构建各种应用程序和客户端所需的工具。这允许 FileCloud 与您现有的企业系统和框架进行扩展和集成。FileCloud 开发者 API 使用简单,易于集成。

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

  • API 版本:18.1.0.682
  • 构建包:io.swagger.codegen.languages.PhpClientCodegen

要求

PHP 5.5 及以上

安装与使用

Composer

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

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

然后运行 composer install

手动安装

下载文件并包含 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\ActivityApi(
    // 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()
);
$parent = "parent_example"; // string | Specify the path for which you want to get the activity list

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

?>

API 端点文档

所有 URI 都是相对于 https://

模型文档

授权文档

所有端点均不需要授权。

作者