Skip to content

RestRequest.AddQueryParameter

Overview

RestRequest RestRequest.AddQueryParameter ( name, value )
Registers a new query string parameter.

Arguments

String name

Name of query string parameter

String value

Value of query string parameter

Remarks

Name argument is required.

Examples

var client = $Rest.Create('http://targetserver');

var request = client.Request();

request.AddQueryParameter('x',1);

var response = request.Execute(); // executed url : http://targetserver/?x=1

See Also