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

« Previous Version 3 Next »

Overview

Executes the request and returns the result as object asynchronously.

Promise<object> myRestRequest.ExecuteJsonAsync()

Remarks

UnlikeRestRequest.Executemethod this method verifes the server status code is returned as OK ( HTTP 200 ). If not exception is thrown.

Example

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

var request = client.Request();

request.AddParameter('x', 1);

request.ExecuteJsonAsync().then(function(result) {
    // ..
});

Examples

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

var request = client.Request();

request.AddParameter('x', 1);

request.ExecuteJsonAsync().then(function(result) {
    // ..
});
  • No labels