PHP code example of 7thstreetweb / intacct-sdk-php-ap-bill-list

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


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

    $client = new OnlineClient($clientConfig);

    /** @var BillListRequest $billListRequest **/
    $billListRequest = new BillList();
    $billListRequest->setFields(['RECORDID', 'NAME']);

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

    $billListRequest->addFilter($filter);

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