🌎postData

Allows get data from external environments

const externalResult=await Transaction.postData(<url:string>,<dataBody:string>,<options:string>);

This method provides to post data to external environments.

Sample:

const dataBody={name:'myname',surname:'mySurname'};

const allCoffee=await Tools.postData("https://api.sampleapis.com/coffee/hot",
JSON.stringify(dataBody));

Response:

{
    result:1,
    message:'Your Request has been proceed'
}

Last updated