All URIs are relative to https://api-demo.poweroffice.net
Method | HTTP request | Description |
---|---|---|
createOrUpdateContactGroup | POST /ContactGroup | Create or Update Contact Group |
createOrUpdateCustomer | POST /Customer | Create or Update Customer |
createOrUpdateSupplier | POST /Supplier | Create or Update Supplier |
getContactGroup | GET /ContactGroup/{id} | Get Contact Group |
getCustomer | GET /Customer/{id} | Get Customer |
getSupplier | GET /Supplier/{id} | Get Supplier |
searchContactGroups | GET /ContactGroup | Search Contact Groups |
searchCustomers | GET /Customer | Search Customers |
searchSuppliers | GET /Supplier | Search Suppliers |
\PowerOfficeGo\Model\GetContactGroupResponse createOrUpdateContactGroup($contact_group)
Create or Update Contact Group
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oAuth
$config = PowerOfficeGo\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PowerOfficeGo\Api\ContactsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$contact_group = new \PowerOfficeGo\Model\ContactGroup(); // \PowerOfficeGo\Model\ContactGroup |
try {
$result = $apiInstance->createOrUpdateContactGroup($contact_group);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactsApi->createOrUpdateContactGroup: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
contact_group | \PowerOfficeGo\Model\ContactGroup | [optional] |
\PowerOfficeGo\Model\GetContactGroupResponse
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PowerOfficeGo\Model\GetCustomerResponse createOrUpdateCustomer($customer)
Create or Update Customer
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oAuth
$config = PowerOfficeGo\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PowerOfficeGo\Api\ContactsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$customer = new \PowerOfficeGo\Model\Customer(); // \PowerOfficeGo\Model\Customer |
try {
$result = $apiInstance->createOrUpdateCustomer($customer);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactsApi->createOrUpdateCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
customer | \PowerOfficeGo\Model\Customer | [optional] |
\PowerOfficeGo\Model\GetCustomerResponse
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PowerOfficeGo\Model\GetSupplierResponse createOrUpdateSupplier($supplier)
Create or Update Supplier
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oAuth
$config = PowerOfficeGo\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PowerOfficeGo\Api\ContactsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$supplier = new \PowerOfficeGo\Model\Supplier(); // \PowerOfficeGo\Model\Supplier |
try {
$result = $apiInstance->createOrUpdateSupplier($supplier);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactsApi->createOrUpdateSupplier: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
supplier | \PowerOfficeGo\Model\Supplier | [optional] |
\PowerOfficeGo\Model\GetSupplierResponse
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PowerOfficeGo\Model\GetContactGroupResponse getContactGroup($id)
Get Contact Group
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oAuth
$config = PowerOfficeGo\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PowerOfficeGo\Api\ContactsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 'id_example'; // string | description
try {
$result = $apiInstance->getContactGroup($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactsApi->getContactGroup: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | description |
\PowerOfficeGo\Model\GetContactGroupResponse
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PowerOfficeGo\Model\GetCustomerResponse getCustomer($id)
Get Customer
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oAuth
$config = PowerOfficeGo\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PowerOfficeGo\Api\ContactsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 'id_example'; // string | description
try {
$result = $apiInstance->getCustomer($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactsApi->getCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | description |
\PowerOfficeGo\Model\GetCustomerResponse
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PowerOfficeGo\Model\GetSupplierResponse getSupplier($id)
Get Supplier
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oAuth
$config = PowerOfficeGo\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PowerOfficeGo\Api\ContactsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | description
try {
$result = $apiInstance->getSupplier($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactsApi->getSupplier: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | description |
\PowerOfficeGo\Model\GetSupplierResponse
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PowerOfficeGo\Model\SearchContactGroupResponse searchContactGroups($filter)
Search Contact Groups
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oAuth
$config = PowerOfficeGo\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PowerOfficeGo\Api\ContactsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$filter = 'filter_example'; // string |
try {
$result = $apiInstance->searchContactGroups($filter);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactsApi->searchContactGroups: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
filter | string | [optional] |
\PowerOfficeGo\Model\SearchContactGroupResponse
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PowerOfficeGo\Model\SearchCustomerResponse searchCustomers($filter)
Search Customers
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oAuth
$config = PowerOfficeGo\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PowerOfficeGo\Api\ContactsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$filter = 'filter_example'; // string |
try {
$result = $apiInstance->searchCustomers($filter);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactsApi->searchCustomers: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
filter | string | [optional] |
\PowerOfficeGo\Model\SearchCustomerResponse
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\PowerOfficeGo\Model\SearchSupplierResponse searchSuppliers($filter)
Search Suppliers
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oAuth
$config = PowerOfficeGo\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PowerOfficeGo\Api\ContactsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$filter = 'filter_example'; // string |
try {
$result = $apiInstance->searchSuppliers($filter);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactsApi->searchSuppliers: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
filter | string | [optional] |
\PowerOfficeGo\Model\SearchSupplierResponse
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]