Sailthru_Client::processPurchaseImportJobFromFile PHP Method

processPurchaseImportJobFromFile() public method

Process purchase import job from given file path of an email per line JSON file
public processPurchaseImportJobFromFile ( String $file_path, boolean | String $report_email = false, boolean | String $postback_url = false, array $options = [] ) : array
$file_path String
$report_email boolean | String
$postback_url boolean | String
$options array
return array
    public function processPurchaseImportJobFromFile($file_path, $report_email = false, $postback_url = false, array $options = [])
    {
        $data = ['file' => $file_path];
        return $this->processJob('purchase_import', $data, $report_email, $postback_url, ['file'], $options);
    }