RestRequest.AddObject

Overview

Adds a new object in request as request body.

RestRequest myRestRequest.AddObject(obj: ( string | object ))

Arguments

( string | object ) obj

Object to add

Example

var client = $Rest.Create('http://targetserver'); var request = client.Request(); request.AddObject({ x: 23, y: "NEW", z: "2018-09-17" }); var result = request.ExecuteJson();

Copyright © 2010 - 2023 Emakin. All rights reserved.