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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Send JSON to outside thingworx

AF_10333884
8-Gravel

Send JSON to outside thingworx

Can i send my json format properties to outside using REST API url without login from any user?

4 REPLIES 4

Does it depend on TWX/your application?
For me, it looks like it's more dependent on your target server, where you have this API set.

If this server allows you for any operations without authentication - then you just make API call to take data.

Still, it's better to USE authentication, but based on API keys - eg. in system I do cooperate via API, there is special user for application generated, it has it's own name and password (but nobody uses them), has his privilegess/access rights set, and have API key generated, eg. ABC123D4F7. 
Everytime when I call this service via API, I add auth=ABC123D4F7 to my URL, and system knows, it should use exactly this user and exactly his access rights to process my request. 
Hope, that was you were asking for. 

Can you give the exact url for example for this authentication key and how to make this authentication key works?

Url is like https://myservice.com/datas?auth=ABC123D4F7&startdate=2024-03-27
where:
myservice - is your service with it's API,
/datas - API call to read datas, depends on your api
/auth= ... - your API key
startdate - example parameter (you can add it to URL if use http GET, but not with http POST)

How to make your API key works? Ask your service admin. 
If you are beginner with API calls, I recomend first to use POSTMAN (just  google postman )program as a tool if your API works. It's very simple tool to check your API, your API calls. After you're sure your API works, you can try to figure out how to program it in TWX.

Hello @AF_10333884

 

It looks like you have some responses from some community members. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution. 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Community Moderation Team.

Top Tags