Hello and thank you in advance,
Is it possible to use REST API calls to retrieve data either in XML or JSON format from a script in SQL and then insert this data into records of a created table?
Let me be more clear with my question: The API is using REST "http://api.monitis.com/api/api.html"
Say for instance the output is as such:
<result>
<location id="4" name="UK1">
<row>
<cell>00:00</cell>
<cell>152</cell>
<cell>ok</cell>
</row>
So essentially I need to call through http REST API using the URL with parameters:
http://api.monitis.com/api?apikey=[apikey]&output=xml&version=2&action=testresult&testId=288571&day=03&month=10&year=2013&locationIds=1&timezone=-240
and then after retrieving the data I would need to be able to insert the data into a table after parsing for the data for 4 columns [location],[Time],[Response],[Status]
The process flow would be:
1.) Call the API with the desired parameters
2.) Serialize the XML
3.) Insert data into created table