spinen / connectwise-company-php-client
Spinen's PHP ConnectWise Client for Company API generated by 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-10-22 01:56:59 UTC
README
ConnectWise Company 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
Requirements
PHP 5.6.0 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json
:
composer require spinen/connectwise-company-php-client
Or modify your composer.json
file:
{ "require": { "spinen/connectwise-company-php-client": "^3.0.0-beta" } }
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/connectwise-company-php-client/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
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\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; } ?>
Documentation for API Endpoints
All URIs are relative to https://api-na.myconnectwise.net/v4_6_release/apis/3.0
Documentation For Models
- 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
Documentation For Authorization
BasicAuth
- Type: HTTP basic authentication