12 Replies Latest reply on Mar 7, 2017 9:10 PM by jamesso RSS
    jamesso Explorer

    Looking for simple REST example to update thing property via an external GET call

    Hello,

     

    I looked through the community discussion topics and did not find a simple example. Forgive me if one is there and I missed it.

     

    I am using TI Sensortags and have an external REST-accessible resource where I can get sensor values.

     

    I want to model these as ThingWorx things and then update the properties via REST GET calls to the external resource.

     

    The REST calls return simple JSON results.

     

    Is there a simple code snippet someone can offer that does this: Calls the REST GET and parses the JSON to find the name, value pair and use the value to update the property value in ThingWorx?

     

    Is there a good document I can consult that covers this? If so, where can I find it?

     

    I have a developer account.

     

    Thanks,

     

    Jim