Skip to main content

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.

  1. Fork the Project
  2. Create your Feature Branch
  3. Commit your Changes
  4. Push to the Branch
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Project details


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)

Uploaded Source

Built Distribution

soapsnow-0.1.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for soapsnow-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d5c0b3fbe713c32c5f9cb30b608d28ebd2a5c6376298f49dbd739271060b27f9
MD5 d95d395fec81c4cf3dea13828e68ecd9
BLAKE2b-256 b808ed573dbc3d456f29b2552de17fa61fb2dd97603ce0f37b447dc43897ade3

See more details on using hashes here.

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

Hashes for soapsnow-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a2925d78592fd1fde516ed5724afb3ca7acd4665f6ee8a50831d2cf8ac05b150
MD5 b98e743b61579ae58ea703dd1eb7e5c5
BLAKE2b-256 082e95c2d932b60a185e97043c1ce1e636565c2389f02cc6e3d39401690ed1d1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page