public function getLead($id, $fields = null, $args = array(), $returnRaw = false)
    {
        $args['id'] = $id;

        if (is_array($fields)) {
            $args['fields'] = implode(',', $fields);
        }

        return $this->getResult('getLead', $args, false, $returnRaw);
    }
public function getLead($id, $fields = null, $args = array(), $returnRaw = false)
    {
        $args['id'] = $id;

        if (is_array($fields)) {
            $args['fields'] = implode(',', $fields);
        }

        return $this->getResult('getLead', $args, false, $returnRaw);
    }
public function getLead ( $ id , $ fields = null , $ args = array ( ) , $ returnRaw = false ) { $ args [ 'id' ] = $ id ; if ( is_array ( $ fields ) ) { $ args [ 'fields' ] = implode ( ',' , $ fields ) ; } return $ this -> getResult ( 'getLead' , $ args , false , $ returnRaw ) ; }
Get a lead by ID.

@param int   $id
@param array $fields
@param array $args

@link http://developers.marketo.com/documentation/rest/get-lead-by-id/

@return GetLeadResponse
Get a lead by ID .