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

How can I get the history data?

SOLVED
Newbie

How can I get the history data?

     Thanks to the official document, I have already finished getting the current data successfully. But how can I get the history data by using the REST API?

     BTW, my URL for getting the current data is

http://TWServer:TWPort/Thingworx/Things/Thing?appKey&method=get

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How can I get the history data?

Angels, you would need to store/ log the property values. If you have access to the ThingWorx tutorials, please do check the Streams and Value Streams section. Or the Data Storage section at the ThingWorx Help Center.

3 REPLIES 3

Re: How can I get the history data?

Angels, you would need to store/ log the property values. If you have access to the ThingWorx tutorials, please do check the Streams and Value Streams section. Or the Data Storage section at the ThingWorx Help Center.

Re: How can I get the history data?

Hi Aanjan, thanks to  the ThingWorx Help Center, I would access the QueryPropertyHistory Services. But the POST method need two DateTime type parameter if I want to do the interval analysis, I try to use the string like "startDate=2016-02-23 06:10:10" but it returned Unable To Convert From java.lang.String to DATETIME. How can I send the DateTime type parameter? Thanks!

Re: How can I get the history data?

Just now I know the format is 2016-02-24T05:26:28.275Z. Thanks for your help.O(∩_∩)O~~