# RestClient

MercadoPago cURL RestClient

package | Default

### Methods

## RestClient constructor.

    __construct()

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/pgoncalves/git/mercadopago/dx-php/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/pgoncalves/git/mercadopago/dx-php/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

## delete

    delete( $uri, array $options = array()) : array

Throws | \Exception

### Arguments

#### $uri

``

#### $options

`array`

### Response

`array`

## get

    get( $uri, array $options = array()) : array

Throws | \Exception

### Arguments

#### $uri

``

#### $options

`array`

### Response

`array`

## getHttpRequest

    getHttpRequest() : \MercadoPago\Http\CurlRequest|null

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/pgoncalves/git/mercadopago/dx-php/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/pgoncalves/git/mercadopago/dx-php/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

### Response

`\MercadoPago\Http\CurlRequest|null`

## post

    post( $uri, array $options = array()) : array

Throws | \Exception

### Arguments

#### $uri

``

#### $options

`array`

### Response

`array`

## put

    put( $uri, array $options = array()) : array

Throws | \Exception

### Arguments

#### $uri

``

#### $options

`array`

### Response

`array`

## setHttpParam

    setHttpParam( $param,  $value)

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/pgoncalves/git/mercadopago/dx-php/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/pgoncalves/git/mercadopago/dx-php/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

### Arguments

#### $param

``

#### $value

``

## setHttpRequest

    setHttpRequest( $request)

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/pgoncalves/git/mercadopago/dx-php/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/pgoncalves/git/mercadopago/dx-php/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

### Arguments

#### $request

``