PHP code example of 7thstreetweb / intacct-sdk-php-product-list
1. Go to this page and download the library: Download 7thstreetweb/intacct-sdk-php-product-list library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
7thstreetweb / intacct-sdk-php-product-list example snippets
/** @var ClientConfig $clientConfig */
$clientConfig = new ClientConfig();
$client = new OnlineClient($clientConfig);
/** @var ProductList $itemListRequest **/
$itemListRequest = new ProductList();
$itemListRequest->setFields(['ITEMID', 'NAME']);
$filter = new InFilter();
$filter->setField('ITEMID');
$filter->addValue('123456');
$filter->addValue('789012');
$itemListRequest->addFilter($filter);
$response = $client->execute($itemListRequest);