spinen / connectwise-finance-php-client
Spinen的PHP ConnectWise财务API客户端,由Swagger代码生成器生成。
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:21:22 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-finance-php-client
或修改您的composer.json
文件
{ "require": { "spinen/connectwise-finance-php-client": "^3.0.0-beta" } }
手动安装
下载文件并包含autoload.php
require_once('/path/to/connectwise-finance-php-client/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门
请遵循安装程序,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure HTTP basic authorization: BasicAuth Spinen\ConnectWise\Clients\Finance\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME'); Spinen\ConnectWise\Clients\Finance\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD'); $api_instance = new Spinen\ConnectWise\Clients\Finance\Api\AccountingBatchesApi(); $conditions = "conditions_example"; // string | try { $result = $api_instance->financeAccountingBatchesCountGet($conditions); print_r($result); } catch (Exception $e) { echo 'Exception when calling AccountingBatchesApi->financeAccountingBatchesCountGet: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI都是相对于https://api-na.myconnectwise.net/v4_6_release/apis/3.0
模型文档
- AccountingBatch
- Addition
- Adjustment
- Agreement
- AgreementReference
- AgreementSite
- AgreementType
- AgreementTypeReference
- AgreementWorkRole
- AgreementWorkRoleExclusion
- AgreementWorkType
- AgreementWorkTypeExclusion
- BillingStatusReference
- BillingTermsReference
- BoardDefault
- BoardReference
- ChargeCodeReference
- ClassificationReference
- CompanyReference
- CompanyTypeReference
- ConfigurationReference
- ContactReference
- Count
- CountryReference
- CreateAccountingBatchRequest
- Currency
- CurrencyReference
- Error
- ExpenseTypeReference
- ExportAccountingBatchRequest
- GLExport
- GLExportAdjustmentTransaction
- GLExportAdjustmentTransactionDetail
- GLExportCustomer
- GLExportExpense
- GLExportExpenseBill
- GLExportExpenseBillDetail
- GLExportExpenseOffset
- GLExportInventoryTransfer
- GLExportInventoryTransferOffset
- GLExportPurchaseTransaction
- GLExportPurchaseTransactionDetail
- GLExportPurchaseTransactionDetailTax
- GLExportSettings
- GLExportTransaction
- GLExportTransactionDetail
- GLExportVendor
- Invoice
- InvoiceReference
- IvItemReference
- MemberReference
- Metadata
- OpportunityReference
- PatchOperation
- Payment
- PaymentMethodReference
- ProductSubCategoryReference
- ProjectPhaseReference
- ProjectReference
- PurchaseOrderReference
- ServiceTypeReference
- ShipmentMethodReference
- SiteReference
- TaxCode
- TaxCodeReference
- TaxCodeXRef
- TicketReference
- TimeEntryReference
- UnitOfMeasureReference
- UnpostedExpense
- UnpostedInvoice
- UnpostedProcurement
- ValidationError
- WarehouseBinReference
- WarehouseReference
- WorkRoleReference
- WorkTypeReference
授权文档
BasicAuth
- 类型:HTTP基本认证