Skip to main content
10-Marble
Question

How to Access external REST API

I have an external rest endpoint which requires basic authentication username and password. I'm able to get the session username with session info in thingworx 8.5, how do I get the session password or is there any way to get Json data into thingworx.

 

Thanks in advance!!

2 replies

24-Ruby IV

Take a look here - "How to manage session in Thingworx": https://www.ptc.com/en/support/article/CS259927 

Translate
14-Alexandrite

Hey @RC_10864577 I don't think you will be able to fetch the user password from the session, unless its something you are storing for the user in the session, You might need to save the password and then use it for the basic auth stuffs. To load JSON data from external REST endpoints to ThingWorx you can see contentloaderfunctions.

Translate