Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Overview

Creates a new client as RestClient instance.

RestClient Rest.Create(url: string)

Creates a new client as RestClient instance.

RestClient Rest.Create(url: string, service: string)

Creates a new client as RestClient instance.

RestClient Rest.Create(url: string, service: string, scope: string)

Creates a new client as RestClient instance.

RestClient Rest.Create(url: string, service: string, scope: string, identity: string)

Arguments

string url
Target url
string service
Name of service to authenticate from
string scope
Scope of rest operation
string identity
Identity to impersonate

Example

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

var request = client.Request();

request.AddParameter('x', 1);

var response = request.Execute();

Example

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

var request = client.Request();

request.AddParameter('x', 1);

var response = request.Execute();

Example

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

var request = client.Request();

request.AddParameter('x', 1);

var response = request.Execute();

Example

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

var request = client.Request();

request.AddParameter('x', 1);

var response = request.Execute();

Examples

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

var request = client.Request();

request.AddParameter('x', 1);

var response = request.Execute();
  • No labels