Skip to main content
1-Visitor
April 5, 2016
Question

How to send data from thingworx database to a different server of webpage ?

  • April 5, 2016
  • 3 replies
  • 1829 views

How to send data from thingworx database to a different server of webpage ?

    3 replies

    5-Regular Member
    April 5, 2016

    Sarita, can you be more specific on what external database you are connecting to? We have a JDBC extension, and you should be able to connect to any external database as long as you have the required jar(s) and connection information/ strings.

    ssingh-211-VisitorAuthor
    1-Visitor
    April 7, 2016

    I have stored my data in Thingworx database. I have created one thing as a database and stored data in it, now  i want to send that data to a webpage which is not connected to thingworx, i mean to say i want to display my stored data in thingworx to a page outside of thingworx for which we don't need thingworx account

    7-Bedrock
    April 8, 2016

    Hi,

    Your external application can send a GET request, which will return all properties from YourThing (as a JSON for exemple).

    Then, parse the response to use it as you want on your page.

    You don't need a thingworx user account if you put the thingworx appkey in your request header.

    If you want, you can try it with RESTclient (Add-on for Firefox), to check.

    • Method : GET
    • URL= http(s)://YourDomain.com/Thingworx/Things/YourThingName/Properties/
    • Headers :
      • Accept = application/json
      • Content-Type = application/json
      • appKey = yourThingWorx appKey Here
      • x-thingworx-session = true