private function createOrUpdateLeadsCommand($action, $leads, $lookupField, $args, $returnRaw = false)
    {
        $args['input'] = $leads;
        $args['action'] = $action;

        if (isset($lookupField)) {
            $args['lookupField'] = $lookupField;
        }

        return $this->getResult('createOrUpdateLeads', $args, false, $returnRaw);
    }
private function createOrUpdateLeadsCommand($action, $leads, $lookupField, $args, $returnRaw = false)
    {
        $args['input'] = $leads;
        $args['action'] = $action;

        if (isset($lookupField)) {
            $args['lookupField'] = $lookupField;
        }

        return $this->getResult('createOrUpdateLeads', $args, false, $returnRaw);
    }
private function createOrUpdateLeadsCommand ( $ action , $ leads , $ lookupField , $ args , $ returnRaw = false ) { $ args [ 'input' ] = $ leads ; $ args [ 'action' ] = $ action ; if ( isset ( $ lookupField ) ) { $ args [ 'lookupField' ] = $ lookupField ; } return $ this -> getResult ( 'createOrUpdateLeads' , $ args , false , $ returnRaw ) ; }
Calls the CreateOrUpdateLeads command with the given action.

@param string $action
@param array  $leads
@param string $lookupField
@param array  $args

@see Client::createLeads()
@see Client::createOrUpdateLeads()
@see Client::updateLeads()
@see Client::createDuplicateLeads()

@link http://developers.marketo.com/documentation/rest/createupdate-leads/

@return CreateOrUpdateLeadsResponse
Calls the CreateOrUpdateLeads command with the given action .