public function importLeadsCsv($args)
    {
        if (!is_readable($args['file'])) {
            throw new \Exception('Cannot read file: ' . $args['file']);
        }

        if (empty($args['format'])) {
            $args['format'] = 'csv';
        }

        return $this->getResult('importLeadsCsv', $args);
    }
public function importLeadsCsv($args)
    {
        if (!is_readable($args['file'])) {
            throw new \Exception('Cannot read file: ' . $args['file']);
        }

        if (empty($args['format'])) {
            $args['format'] = 'csv';
        }

        return $this->getResult('importLeadsCsv', $args);
    }
public function importLeadsCsv ( $ args ) { if ( ! is_readable ( $ args [ 'file' ] ) ) { throw new \ Exception ( 'Cannot read file: ' . $ args [ 'file' ] ) ; } if ( empty ( $ args [ 'format' ] ) ) { $ args [ 'format' ] = 'csv' ; } return $ this -> getResult ( 'importLeadsCsv' , $ args ) ; }
Import Leads via file upload

@param array $args - Must contain 'format' and 'file' keys
e.g. array( 'format' => 'csv', 'file' => '/full/path/to/filename.csv'

@link http://developers.marketo.com/documentation/rest/import-lead/

@return array

@throws \Exception
Import Leads via file upload