public function invokeRemote($uri, $method, $parameters = array())
    {
        $remoteClient = $this->getRemoteClient();

        // Make request.
        $request = call_user_func_array(array($remoteClient, $method), array($uri, null, $parameters));

        // Send request.
        $response = $request->send();

        // Body responsed.
        $body = (string) $response->getBody();

        // Decode json content.
        if ($response->getContentType() == 'application/json')
        {
            if (function_exists('json_decode') and is_string($body))
            {
                $body = json_decode($body, true);
            }
        }

        return $body;
    }
public function invokeRemote($uri, $method, $parameters = array())
    {
        $remoteClient = $this->getRemoteClient();

        // Make request.
        $request = call_user_func_array(array($remoteClient, $method), array($uri, null, $parameters));

        // Send request.
        $response = $request->send();

        // Body responsed.
        $body = (string) $response->getBody();

        // Decode json content.
        if ($response->getContentType() == 'application/json')
        {
            if (function_exists('json_decode') and is_string($body))
            {
                $body = json_decode($body, true);
            }
        }

        return $body;
    }
public function invokeRemote ( $ uri , $ method , $ parameters = array ( ) ) { $ remoteClient = $ this -> getRemoteClient ( ) ; // Make request. $ request = call_user_func_array ( array ( $ remoteClient , $ method ) , array ( $ uri , null , $ parameters ) ) ; // Send request. $ response = $ request -> send ( ) ; // Body responsed. $ body = ( string ) $ response -> getBody ( ) ; // Decode json content. if ( $ response -> getContentType ( ) == 'application/json' ) { if ( function_exists ( 'json_decode' ) and is_string ( $ body ) ) { $ body = json_decode ( $ body , true ) ; } } return $ body ; }
Invoke with remote uri.

@param  string $uri
@param  string $method
@param  array  $parameters
@return mixed
Invoke with remote uri .