public function request( $method, $url, $params=null )
    {
        if( $params === null )
            $params = array();

        list( $rbody, $rcode ) = $this->requestRaw( $method, $url, $params );

        $resp = $this->interpretResponse( $rbody, $rcode, $method );

        return $resp['data'];
    }
public function request( $method, $url, $params=null )
    {
        if( $params === null )
            $params = array();

        list( $rbody, $rcode ) = $this->requestRaw( $method, $url, $params );

        $resp = $this->interpretResponse( $rbody, $rcode, $method );

        return $resp['data'];
    }
public function request ( $ method , $ url , $ params = null ) { if ( $ params === null ) $ params = array ( ) ; list ( $ rbody , $ rcode ) = $ this -> requestRaw ( $ method , $ url , $ params ) ; $ resp = $ this -> interpretResponse ( $ rbody , $ rcode , $ method ) ; return $ resp [ 'data' ] ; }
Perform an API request

@param string     $method One of put/post/get/delete
@param string     $url    The URL of the service
@param array|null $params Parameters to pass

@return mixed Defined by the method. See the ApiResource methods.
Perform an API request