spinen / connectwise-company-php-client
Spinen 的 PHP ConnectWise 客户端库,用于 Company 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 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
模型文档
- AgreementReference
- AgreementTypeReference
- BillingDeliveryReference
- BillingTermsReference
- CalendarReference
- CatalogItemReference
- CommunicationTypeReference
- Company
- CompanyCustomNote
- CompanyManagementSummary
- CompanyMerge
- CompanyNote
- CompanyReference
- CompanySite
- CompanyStatus
- CompanyStatusReference
- CompanyTeam
- CompanyType
- CompanyTypeReference
- Configuration
- ConfigurationQuestion
- ConfigurationStatus
- ConfigurationStatusReference
- ConfigurationType
- ConfigurationTypeQuestion
- ConfigurationTypeReference
- Contact
- ContactCommunication
- ContactCommunicationItem
- ContactDepartment
- ContactDepartmentReference
- ContactNote
- ContactReference
- ContactRelationship
- ContactType
- ContactTypeReference
- Count
- CountryReference
- CurrencyReference
- CustomFieldValue
- EntityTypeReference
- Error
- Guid
- InvoiceTemplateReference
- ManagementBackup
- ManagementEmail
- ManagementSolutionReference
- ManufacturerReference
- MarketDescription
- MemberReference
- Metadata
- NoteType
- NoteTypeReference
- OwnershipType
- OwnershipTypeReference
- PatchOperation
- PortalSecurity
- PricingScheduleReference
- RelationshipReference
- RequestPasswordRequest
- SLAReference
- SicCodeReference
- SiteReference
- SuccessResponse
- TaxCodeReference
- TeamRole
- TeamRoleReference
- TimeZoneReference
- Track
- TrackReference
- ValidatePortalRequest
- ValidatePortalResponse
- ValidationError
授权文档
BasicAuth
- 类型:HTTP 基本认证