first commit 10/20/2015
This commit is contained in:
12
test_retrieve_data.py
Normal file
12
test_retrieve_data.py
Normal file
@@ -0,0 +1,12 @@
|
||||
__author__ = 'asc'
|
||||
|
||||
import json
|
||||
from urllib import request
|
||||
|
||||
|
||||
req = request.Request("http://home.ascorrea.com:5010/retrieve-report")
|
||||
# req.add_header('Content-Type', 'application/json')
|
||||
response = request.urlopen(req)
|
||||
r = response.read()
|
||||
json.loads(r.decode()).get('data')
|
||||
pass
|
||||
Reference in New Issue
Block a user