original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: 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
docstring_tokens: Import Leads via file upload