<?php // Base Script to be copied then modified. // COPY THEN MODIFY require_once dirname(__DIR__) . "/Classes/Api/Account_Credentials/KeysAndSecrets.php"; $account_credentials = new KeysAndSecrets(); $account_credentials->setAccount(); //START CALL SPECIFIC require_once dirname(__DIR__) . "/Classes/Api/List/ListGet.php"; //Call Specifc//Incomplete// $api_object = new ListGet(); //Call Specifc//Incomplete// $api_object->setAccount($account_credentials); include_once dirname(__DIR__) . "/Use_Case_Vars/ListGetVars.php"; //Call Specifc//Incomplete// //END CALL SPECIFIC require_once dirname(__DIR__) . "/Classes/CliScriptAbstract.php"; $script = new CliScriptAbstract(); require_once dirname(__DIR__) . "/Classes/Client_Library/Sailthru_Implementation_Client.php"; include_once dirname(__DIR__) . "/Setup_Files/ScriptSettings.php"; new ScriptSettings(); //////////////////// VARS /* There are three ways to input vars for a script: 1) Thorugh the Command Line Interface, CLI, when you run the script. 2) The vars array in this file. 3) An include file specific to this script. The Use_Vase_Vars include above. While they are essentially equivalent, The Use Case include is the prefered method. The other two are provided to give ease of use in a given situation. They can also be used in conjunction -with each overridden by the next in the order given above. That means if you add two vars, a & b, to the use case
} $experts_path = "/Users/johnlewis/Desktop/Experts_latin.txt"; if (($file = fopen($experts_path, "r")) === false) { die("Couldn't Open the file.\n"); } $log_path = "/Users/johnlewis/Desktop/Expert_lookup_log.log"; if (($log = fopen($log_path, "w")) === false) { die("Couldn't Open the log.\n"); } $result_log_path = "/Users/johnlewis/Desktop/Expert_lookup_results_log.log"; if (($results = fopen($result_log_path, "w")) === false) { die("Couldn't Open the log.\n"); } require_once dirname(dirname(__DIR__)) . "/Classes/Api/Account_Credentials/KeysAndSecrets.php"; $account_credentials = new KeysAndSecrets(); $account_credentials->setAccount(4777); //START CALL SPECIFIC require_once dirname(dirname(__DIR__)) . "/Classes/Api/Include/IncludePost.php"; //Call Specifc//Incomplete// $api_object = new IncludePost(); //Call Specifc//Incomplete// $api_object->setAccount($account_credentials); //END CALL SPECIFIC require_once dirname(dirname(__DIR__)) . "/Classes/CliScriptAbstract.php"; $script = new CliScriptAbstract(); require_once dirname(dirname(__DIR__)) . "/Classes/Client_Library/Sailthru_Implementation_Client.php"; include_once dirname(dirname(__DIR__)) . "/Setup_Files/ScriptSettings.php"; new ScriptSettings(); //////////////////// START MAIN PROGRAM ////Create Client if (CliScriptAbstract::$flags["isDefaults"]) {