PHP code example of vendasta / accounts

1. Go to this page and download the library: Download vendasta/accounts 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/ */

    

vendasta / accounts example snippets


$environment = "DEMO"; // "PROD" for production environment
$client = new Vendasta\Accounts\V1\AccountsServiceClient($environment);

$createReq = new Vendasta\Accounts\V1\ActivateAppRequest();
$createReq->setBusinessId(<business_id>);
$createReq->setAppId("<app_id>");
$createReq->setPartnerId("<partner_id>");
$createReq->setEditionId("<edition_id>");
$resp = $client->ActivateApp($createReq);
bash
composer