spinen/connectwise-company-php-client

Spinen 的 PHP ConnectWise 客户端库,用于 Company API,由 Swagger Code Generator 生成。

dev-master 2017-09-06 18:29 UTC

This package is auto-updated.

Last update: 2024-09-22 01:51:35 UTC


README

ConnectWise 公司 API

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

  • API 版本:1.0.0
  • 包版本:3.0.0-beta
  • 构建包:io.swagger.codegen.languages.PhpClientCodegen

需求

PHP 5.6.0 及以上版本

安装与使用

Composer

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

composer require spinen/connectwise-company-php-client

或者修改你的 composer.json 文件

{
    "require": {
        "spinen/connectwise-company-php-client": "^3.0.0-beta"
    }
}

手动安装

下载文件并包含 autoload.php

    require_once('/path/to/connectwise-company-php-client/autoload.php');

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门

请按照 安装与使用说明 进行安装,然后运行以下命令

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

// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Company\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Company\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Spinen\ConnectWise\Clients\Company\Api\CompaniesApi();
$conditions = "conditions_example"; // string | 
$custom_field_conditions = "custom_field_conditions_example"; // string | 

try {
    $result = $api_instance->companyCompaniesCountGet($conditions, $custom_field_conditions);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompaniesApi->companyCompaniesCountGet: ', $e->getMessage(), PHP_EOL;
}

?>

API 端点文档

所有 URI 都是相对于 https://api-na.myconnectwise.net/v4_6_release/apis/3.0

模型文档

授权文档

BasicAuth

  • 类型:HTTP 基本认证