inwendo/iw_client_webdav_php

inwendo WebDav网关的API组件

1.0.1 2017-03-16 19:05 UTC

This package is not auto-updated.

Last update: 2024-09-24 16:43:40 UTC


README

未提供描述(由Swagger Codegen生成 https://github.com/swagger-api/swagger-codegen

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

  • API版本:0.0.1
  • 包版本:1.0
  • 构建日期:2017-03-15T15:59:30.749+01:00
  • 构建包:class io.swagger.codegen.languages.PhpClientCodegen

要求

PHP 5.4.0及更高版本

安装与使用

Composer

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

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

然后运行composer install

手动安装

下载文件并包含autoload.php

    require_once('/path/to/InwendoWebDavApi/autoload.php');

测试

要运行单元测试

composer install
./vendor/bin/phpunit lib/Tests

入门指南

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

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

// Configure OAuth2 access token for authorization: password
Inwendo\WebDav\Common\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Inwendo\WebDav\Common\Api\ContactApi();
$id = 56; // int | 

try {
    $api_instance->deleteContactItem($id);
} catch (Exception $e) {
    echo 'Exception when calling ContactApi->deleteContactItem: ', $e->getMessage(), PHP_EOL;
}

?>

API端点文档

所有URI均相对于https://webdavgateway.service.inwendo.cloud

模型文档

授权文档

密码

  • 类型: OAuth
  • 流程: password
  • 授权URL:
  • 作用域:
  • write:允许修改资源
  • read:允许读取资源

作者