PHP code example of 7thstreetweb / intacct-sdk-php-common

1. Go to this page and download the library: Download 7thstreetweb/intacct-sdk-php-common 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-common example snippets


    /** @var ClientConfig $clientConfig */
    $clientConfig = new ClientConfig();

    $client = new OnlineClient($clientConfig);

    /** @var CustomerList $accountsReceivableRequest **/
    $customerListRequest = new CustomerList();
    $customerListRequest->setFields(['CUSTOMERID', 'NAME']);

    $filter = new InFilter();
    $filter->setField('CUSTOMERID');
    $filter->addValue('123456');
    $filter->addValue('789012');

    $customerListRequest->addFilter($filter);

    $response = $client->execute($customerListRequest);