1
HMDB / API Py Doubt
Python code:
import requests
url = "http://api.xialab.ca/mapcompounds"
payload = "{\n\t\"queryList\": \"HMDB0000002;\",\n\t\"inputType\": \"hmdb\"\n}"
headers = {
'Content-Type': "application/json",
'cache-control': "no-cache",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Thanks
Wilmer G