Skip to content
jtorniainen edited this page May 30, 2015 · 6 revisions

A client only needs to be able to retrieve data using the REST JSON API.

This can be done, e.g., as shown below.

Simple client in Python

#!/usr/bin/env python3

import requests

apicall = "http://midas_dispatcher:8080/example_node_A/metric/{"type":"metric_a","channels":["Ch1"], "time_window":[10,5], "arguments":[1,3]}"

r       = requests.get(apicall)
result  = r.json

print(str(result))

Clone this wiki locally