8889841c < -- -- \___| |_| |_| /_/\_\ -- --------------------------------- */ // How to run this script // FULL SYNC MODE // For one time, full sync job - execute the following in the terminal: // cd /path/to/folder/ && /usr/local/bin/ea-php72 woo-vision-pos-sync.php fullsync >> logs/fullsync.log // INCREMENTAL MODE // For incremental sync - execute the following in the terminal (or setup a cron job): // cd /path/to/folder/ && /usr/local/bin/ea-php72 woo-vision-pos-sync.php incremental >> logs/incremental.log // Environment File // Define your variables here $SYNC_TOKEN = "Gcafm4s47KVYxVPDm9qYTAaC"; // Token to run the script via browser $LIVE_MODE = true; // false = debug (only 10 products); true = live (all products). $POS_API_PROTOCOL_SSL = false; // POS API PROTOCOL; true if SSL (https://) otherwise false for http:// // $POS_API_IP_ADDRESS = 'XXX.XXX.XXX.XXX'; // POS API IP ADDRESS - supplied by license file 'woo-vision-api-license.txt' $POS_API_PORT = '85'; // POS API PORT $POS_API_PLATFORM_KEY = '5C.Km+$SU!LZ/ETAv2U6t_3,#'; // POS API PLATFORM KEY $WOO_API_BASE_URL = 'https://gs.clix.co.tz'; // WOO API URL $CONSUMER_KEY = 'ck_b97e442b47f8d7bba6df5f04e231e14b70fc30a8'; // Consumer Key $CONSUMER_SECRET = 'cs_aba5035f838db6bfc92b2e64596cc946753acc05'; // Consumer Secret $OUTPUT_TRUNCATE_LENGTH = 50;