ConnectWise Expense API
This PHP package is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 3.0.0-beta
- Build package: io.swagger.codegen.languages.PhpClientCodegen
PHP 5.6.0 and later
To install the bindings via Composer, add the following to composer.json
:
composer require spinen/connectwise-expense-php-client
Or modify your composer.json
file:
{
"require": {
"spinen/connectwise-expense-php-client": "^3.0.0-beta"
}
}
Download the files and include autoload.php
:
require_once('/path/to/connectwise-expense-php-client/autoload.php');
To run the unit tests:
composer install
./vendor/bin/phpunit
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Expense\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Expense\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Expense\Api\ExpenseEntriesApi();
$conditions = "conditions_example"; // string |
$custom_field_conditions = "custom_field_conditions_example"; // string |
$child_conditions = "child_conditions_example"; // string |
try {
$result = $api_instance->expenseEntriesCountGet($conditions, $custom_field_conditions, $child_conditions);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ExpenseEntriesApi->expenseEntriesCountGet: ', $e->getMessage(), PHP_EOL;
}
?>
All URIs are relative to https://api-na.myconnectwise.net/v4_6_release/apis/3.0
Class | Method | HTTP request | Description |
---|---|---|---|
ExpenseEntriesApi | expenseEntriesCountGet | GET /expense/entries/count | |
ExpenseEntriesApi | expenseEntriesGet | GET /expense/entries | |
ExpenseEntriesApi | expenseEntriesIdDelete | DELETE /expense/entries/{id} | |
ExpenseEntriesApi | expenseEntriesIdGet | GET /expense/entries/{id} | |
ExpenseEntriesApi | expenseEntriesIdPatch | PATCH /expense/entries/{id} | |
ExpenseEntriesApi | expenseEntriesIdPut | PUT /expense/entries/{id} | |
ExpenseEntriesApi | expenseEntriesPost | POST /expense/entries | |
ExpenseTypesApi | expenseTypesCountGet | GET /expense/types/count | |
ExpenseTypesApi | expenseTypesGet | GET /expense/types | |
ExpenseTypesApi | expenseTypesIdDelete | DELETE /expense/types/{id} | |
ExpenseTypesApi | expenseTypesIdGet | GET /expense/types/{id} | |
ExpenseTypesApi | expenseTypesIdPatch | PATCH /expense/types/{id} | |
ExpenseTypesApi | expenseTypesIdPut | PUT /expense/types/{id} | |
ExpenseTypesApi | expenseTypesPost | POST /expense/types |
- AgreementReference
- ClassificationReference
- CompanyReference
- Count
- Error
- ExpenseEntry
- ExpenseTax
- ExpenseTaxTypeReference
- ExpenseType
- ExpenseTypeReference
- InvoiceReference
- MemberReference
- Metadata
- PatchOperation
- PaymentMethodReference
- ValidationError
- Type: HTTP basic authentication