import requests
import json
"""
source:
  http://proj.storm.pm:8081/data/

archiver:
  http://shell.storm.pm:8079/api/query

"""

url = "http://shell.storm.pm:8079/api/query"

#r = """select uuid """#where Metadata/Location/Room = 'Invention Lab';"""
#r = """select distinct uuid where Metadata/Location/Room = 'Invention Lab';"""

#r = "select Metadata"
#r = "select Metadata/Name"
r = "select * where Metadata/Name like 'Lava Lamp'"


resp = requests.post(url, r)

print(resp.text)

942a2840ba880bd1c9bd89f702a5f3654e6f4550
<mask token>

<mask token>
print(resp.text)

<mask token>
url = 'http://shell.storm.pm:8079/api/query'
r = "select * where Metadata/Name like 'Lava Lamp'"
resp = requests.post(url, r)
print(resp.text)

import requests
import json
<mask token>
url = 'http://shell.storm.pm:8079/api/query'
r = "select * where Metadata/Name like 'Lava Lamp'"
resp = requests.post(url, r)
print(resp.text)

import requests
import json
"""
source:
  http://proj.storm.pm:8081/data/

archiver:
  http://shell.storm.pm:8079/api/query

"""

url = "http://shell.storm.pm:8079/api/query"

#r = """select uuid """#where Metadata/Location/Room = 'Invention Lab';"""
#r = """select distinct uuid where Metadata/Location/Room = 'Invention Lab';"""

#r = "select Metadata"
#r = "select Metadata/Name"
r = "select * where Metadata/Name like 'Lava Lamp'"


resp = requests.post(url, r)

print(resp.text)
