By passing in the appropriate options, you can retrieve the association count for objects
+
+
+
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: OAuth2
+$config = XeroAPI\XeroPHP\Configuration::getDefaultConfiguration()->setAccessToken( 'YOUR_ACCESS_TOKEN' );
+
+$apiInstance = new XeroAPI\XeroPHP\Api\FilesApi(
+ new GuzzleHttp\Client(),
+ $config
+);
+$xeroTenantId = "YOUR_XERO_TENANT_ID";
+$objectIds = array()
+
+try {
+ $result = $apiInstance->getAssociationsCount($xeroTenantId, $objectIds);
+} catch (Exception $e) {
+ echo 'Exception when calling FilesApi->getAssociationsCount: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+