PHP code example of frankperez87 / channel-advisor

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

    

frankperez87 / channel-advisor example snippets




loper_key = 'XXX';
$password = 'XXX';
$account_id = 'XXX';

// Set ChannelAdvisor Account Credentials and Service You Wish To Use
$service = ChannelAdvisor\ServiceFactory::make('admin', $developer_key, $password, $account_id);

// Output Result
$result = $service->requestAccess('local id here');