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

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


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

    $client = new OnlineClient($clientConfig);

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

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

    $vendorListRequest->addFilter($filter);

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