Hi,
Assuming I want to run a testing script locally and send the test results
to a web2py app. Would that be the way to do it?
#local script
import requests
test_results = {'api_key': xxxxx, 'Fail': 'etc'}
r = requests.get("somedomain.com/default/api/*get*", params=test_results)
# link
def api():
test_vars = request.vars
clients = db(db.t_clients).select(db.t_clients.f_api_key)
for client in clients:
if client.api_key == test_vars[0]:
db.t_tests.insert(..........)
else:
pass
Thanks.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.