connectwise-expense-php-client
ConnectWise Expense API, (*1)
This PHP package is automatically generated by the Swagger Codegen project:, (*2)
- API version: 1.0.0
- Package version: 3.0.0-beta
- Build package: io.swagger.codegen.languages.PhpClientCodegen
Requirements
PHP 5.6.0 and later, (*3)
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json
:, (*4)
composer require spinen/connectwise-expense-php-client
Or modify your composer.json
file:, (*5)
{
"require": {
"spinen/connectwise-expense-php-client": "^3.0.0-beta"
}
}
Manual Installation
Download the files and include autoload.php
:, (*6)
require_once('/path/to/connectwise-expense-php-client/autoload.php');
Tests
To run the unit tests:, (*7)
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:, (*8)
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;
}
?>
Documentation for API Endpoints
All URIs are relative to https://api-na.myconnectwise.net/v4_6_release/apis/3.0, (*9)
Documentation For Models
Documentation For Authorization
BasicAuth
-
Type: HTTP basic authentication