...
Code Block | ||
---|---|---|
| ||
import requests
url = 'http://localhost:8181/FewsWebServices/rest/fewspiservice/v1/timeseries'
params = dict(
documentVersion='1.23',
documentFormat='PI_JSON'
)
params = dict(
documentVersion='1.23',
documentFormat='PI_JSON',
showThresholds='true',
omitMissing='true',
onlyHeaders='false',
showEnsembleMemberIds='false',
showStatistics='true'
)
response = requests.get(url=url, params=params)
data = response.json()
print('All timeSeries:', data)
|