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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

PostJSON response object missing properties

STullberg
10-Marble

PostJSON response object missing properties

Hello, 

 

Im trying to get the response body from a Resources["ContentLoaderFunctions"].PostJSON(params) call. When I try the POST call from Postman I get the following as a response in a response Headers and Body: 

HTTP/1.1 200 OK
Content-Type: application/json;charset=ISO-8859-1
Content-Length: 15
Server: Jetty(7.x.y-SNAPSHOT)
RC: 1 Success

When I try the same call from Thingworx PostJSON I only get the headers JSON object of the request as the response object looking like this (xxxx = the auth code): 
 
{"headers":{"Authorization":"xxxx"}}

Anyone now why? And more specifically how I get the RC: 1 Success value from the response body?

Using ThingWorx 9.1.8-b845
ACCEPTED SOLUTION

Accepted Solutions
abjain
15-Moonstone
(To:STullberg)
2 REPLIES 2
abjain
15-Moonstone
(To:STullberg)

Perfect, thank you for the information!

 

Best regards / Simon

Announcements


Top Tags