PHP code example of miralsoft / weclapp-customer-export

1. Go to this page and download the library: Download miralsoft/weclapp-customer-export 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/ */

    

miralsoft / weclapp-customer-export example snippets




use miralsoft\weclapp\api\Config;
use miralsoft\weclapp\customerexport\Export;

Config::$URI = 'https://xxx.weclapp.com/webapp/api/v1/';
Config::$TOKEN = 'xxx';

$export = new Export(true, '', 'datevExport.csv');
$ok = $export->exportDatevOnline();

echo $ok ? 'File successfull created' : 'Error while export';