public function custom($customURI, $options = [])
    {
        $url = $this->instanceURLRepo->get();
        $url .= '/services/apexrest';
        $url .= $customURI;

        $parameters = [];

        if (isset($options['parameters'])) {
            $parameters = array_replace_recursive($parameters, $options['parameters']);
            $url .= '?'.http_build_query($parameters);
        }

        return $this->request($url, $options);
    }
public function custom($customURI, $options = [])
    {
        $url = $this->instanceURLRepo->get();
        $url .= '/services/apexrest';
        $url .= $customURI;

        $parameters = [];

        if (isset($options['parameters'])) {
            $parameters = array_replace_recursive($parameters, $options['parameters']);
            $url .= '?'.http_build_query($parameters);
        }

        return $this->request($url, $options);
    }
public function custom ( $ customURI , $ options = [ ] ) { $ url = $ this -> instanceURLRepo -> get ( ) ; $ url .= '/services/apexrest' ; $ url .= $ customURI ; $ parameters = [ ] ; if ( isset ( $ options [ 'parameters' ] ) ) { $ parameters = array_replace_recursive ( $ parameters , $ options [ 'parameters' ] ) ; $ url .= '?' . http_build_query ( $ parameters ) ; } return $ this -> request ( $ url , $ options ) ; }
Request to a custom Apex REST endpoint.

@param string $customURI
@param array  $options

@return mixed
Request to a custom Apex REST endpoint .