spinen / connectwise-service-php-client
Spinen 的 PHP ConnectWise 客户端用于服务 API,由 Swagger Code Generator 生成。
dev-master
2017-09-06 18:29 UTC
Requires
- php: >=5.6
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-09-22 02:06:42 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-service-php-client
或修改您的 composer.json
文件
{ "require": { "spinen/connectwise-service-php-client": "^3.0.0-beta" } }
手动安装
下载文件并包含 autoload.php
require_once('/path/to/connectwise-service-php-client/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门
请按照 安装过程 进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure HTTP basic authorization: BasicAuth Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME'); Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD'); $api_instance = new Spinen\ConnectWise\Clients\Service\Api\BoardExcludedMembersApi(); $id = 56; // int | $conditions = "conditions_example"; // string | try { $result = $api_instance->serviceBoardsIdExcludedMembersCountGet($id, $conditions); print_r($result); } catch (Exception $e) { echo 'Exception when calling BoardExcludedMembersApi->serviceBoardsIdExcludedMembersCountGet: ', $e->getMessage(), PHP_EOL; } ?>
API 端点文档
所有 URI 都相对于 https://api-na.myconnectwise.net/v4_6_release/apis/3.0
模型文档
- ActivityReference
- AgreementReference
- Board
- BoardReference
- Code
- CompanyReference
- ConfigurationReference
- ContactReference
- Count
- CountryReference
- CustomFieldValue
- DocumentReference
- Error
- ExcludedMember
- FilterValues
- GenericIdIdentifierReference
- Guid
- Item
- KnowledgeBaseArticle
- Location
- MemberReference
- Metadata
- OpportunityReference
- PatchOperation
- Priority
- PriorityReference
- ProductReference
- ProjectPhaseReference
- ProjectReference
- SLAReference
- ScheduleEntryReference
- ServiceCodeReference
- ServiceItemReference
- ServiceLocationReference
- ServiceNote
- ServiceSignoffReference
- ServiceSourceReference
- ServiceStatusReference
- ServiceSubTypeReference
- ServiceTeamReference
- ServiceTypeReference
- SiteReference
- 源代码
- Status
- SubType
- SubtypeAssociation
- SuccessResponse
- Survey
- SurveyQuestion
- SurveyQuestionOption
- SurveyResult
- SurveyResultDetail
- Task
- Team
- Ticket
- TicketMerge
- TimeEntryReference
- Type
- TypeAssociations
- ValidationError
授权文档
BasicAuth
- 类型:HTTP 基本认证