All URIs are relative to https://api.insightly.com/v3.0
Method | HTTP request | Description |
---|---|---|
getCustomObjects | GET /CustomObjects | Gets a list of custom objects |
getCustomObjects_0 | GET /CustomObjects/{customObjectName} | Gets a custom object by object name |
\Swagger\Client\Model\APICustomObject[] getCustomObjects()
Gets a list of custom objects
This read only endpoint returns a list of the custom objects.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\CustomObjectsApi(
// 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()
);
try {
$result = $apiInstance->getCustomObjects();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomObjectsApi->getCustomObjects: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Swagger\Client\Model\APICustomObject[]
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\CustomObject getCustomObjects_0($custom_object_name, $authorization)
Gets a custom object by object name
This read only endpoint returns a custom object by name.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\CustomObjectsApi(
// 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()
);
$custom_object_name = "custom_object_name_example"; // string | The custom object name
$authorization = "{{Authorization}}"; // string | Authorization
try {
$result = $apiInstance->getCustomObjects_0($custom_object_name, $authorization);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomObjectsApi->getCustomObjects_0: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
custom_object_name | string | The custom object name | |
authorization | string | Authorization | [default to {{Authorization}}] |
\Swagger\Client\Model\CustomObject
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]