Skip to main content
10-Marble
June 4, 2024
Solved

Automate API get response

  • June 4, 2024
  • 1 reply
  • 603 views

Hi, I'm fairly new to using Thingworx API and API in general. 

 

I want to get data from Thingworx using API get json  format and then push it to influxDB and finalluy  to Grafana for vizualisation. My ideas are not clear on how to architecture this ? where to preprocess data , vscode or influxDB ? and then how to automate data fetching? As i understand API call to Thingworx returns data at time of request.. 

 

Thanks 

Best answer by PEHOWE

@Lo_ry96
I am not sure where you are in the process. There are a large number of API resources with ThingWorx.
To get you started, In ThingWorx Composer, Navigate to Browse -> System -> Resources. 
This will provide a list of the different aspects of ThingWorx. For example, select "ContentLoaderFunctions", If you go to the services, you are presented  with a list of the available services, what they require as inputs and want is returned.
Your description is very general. 
My suggestion is to use the tool POSTMAN, (or similar)  This tool provides a great interface to work out the calling sequence and verify the returned values are what is expected and desired. It also provides better information on errors when the calling sequence is not quite correct.
Post a more specific question and I or someone in the community may be able to direct you to the proper function to all and how to process the results.

HTH
Pehowe

1 reply

PEHOWE17-PeridotAnswer
17-Peridot
June 10, 2024

@Lo_ry96
I am not sure where you are in the process. There are a large number of API resources with ThingWorx.
To get you started, In ThingWorx Composer, Navigate to Browse -> System -> Resources. 
This will provide a list of the different aspects of ThingWorx. For example, select "ContentLoaderFunctions", If you go to the services, you are presented  with a list of the available services, what they require as inputs and want is returned.
Your description is very general. 
My suggestion is to use the tool POSTMAN, (or similar)  This tool provides a great interface to work out the calling sequence and verify the returned values are what is expected and desired. It also provides better information on errors when the calling sequence is not quite correct.
Post a more specific question and I or someone in the community may be able to direct you to the proper function to all and how to process the results.

HTH
Pehowe