flask-servicenow
Uses servicenow_rest , which requires Eureka or newer version of SN.
Tested with Python 2.7 and 3.4.
For more info, see:
http://wiki.servicenow.com/index.php?title=REST_API
https://github.com/rbw0/python-servicenow-rest
Installing
Clone github repository for now.
Adding to pypi when properly tested.
Example usage
sn = ServiceNow(app)
sn.table = 'incident'
res = sn.get({'number': 'INC0012345'})
Use the init_app method if using the factory pattern for creating apps:
sn = ServiceNow()
# Then later on.
sn.init_app(app)
# Followed by...
sn.table = 'incident'
res = sn.get({'number': 'INC0012345'})
Configuration
The following settings exists:
SN_INSTANCE - ServiceNow Instance name (not FQDN)
SN_USER
SN_PASS