Skip to main content
10-Marble
Mar 12, 2024 6:52 AM UTC
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
Mar 12, 2024 8:01 AM UTC

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

Translate
14-Alexandrite
Mar 14, 2024 3:05 AM UTC

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