cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How can i make rest call from my thingworx service

nagarwal
7-Bedrock

How can i make rest call from my thingworx service

I need to make a rest call from thingworx service and store the response into one of the properties. Please guide me how can i achieve that. Thanks in advance!!

2 REPLIES 2
PaiChung
22-Sapphire I
(To:nagarwal)

There is a resource library called 'Content Loaders' there are services for GET/POST/PUT that accept responses in text/JSON/XML

ttielebein
14-Alexandrite
(To:nagarwal)

Here is an example:

    var prm = {

        url: "YOUR_URL_HERE",

        timeout: 60

    };

    var json = Resources["ContentLoaderFunctions"].PostJSON(prm);

Announcements


Top Tags