A simple Python library for interacting with ServiceNow's API
Project description
soapsnow
Python client for interacting with the ServiceNow SOAP web service.
API Documentation
For information about the ServiceNow SOAP web service, see the description and API Functions.
Install
pip3 install soapsnow --user
Usage
from soapsnow import SOAPSnow
user = 'user'
pwd = 'pwd'
inst = 'customer'
url = f'https://{inst}.service-now.com/incident.do?SOAP&displayvalue=true'
snow = SOAPSnow(user, pwd, url)
resp = snow.do('getRecords', number='INC000123')
print(resp)
resp = snow.do(
method='insert',
number='INC000123',
state='resolved',
work_notes='Test'
)
print(resp)
resp = snow.do(
method='getRecords',
assignment_group='my-group',
active=1,
__encoded_query='state!=6^short_descriptionLIKEHost is unreachable',
__limit=20
)
print(resp)
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch
- Commit your Changes
- Push to the Branch
- Open a Pull Request
License
Distributed under the MIT License. See LICENSE
for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
soapsnow-0.1.1.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file soapsnow-0.1.1.tar.gz
.
File metadata
- Download URL: soapsnow-0.1.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5c0b3fbe713c32c5f9cb30b608d28ebd2a5c6376298f49dbd739271060b27f9 |
|
MD5 | d95d395fec81c4cf3dea13828e68ecd9 |
|
BLAKE2b-256 | b808ed573dbc3d456f29b2552de17fa61fb2dd97603ce0f37b447dc43897ade3 |
File details
Details for the file soapsnow-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: soapsnow-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2925d78592fd1fde516ed5724afb3ca7acd4665f6ee8a50831d2cf8ac05b150 |
|
MD5 | b98e743b61579ae58ea703dd1eb7e5c5 |
|
BLAKE2b-256 | 082e95c2d932b60a185e97043c1ce1e636565c2389f02cc6e3d39401690ed1d1 |