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 Direct web services and API Functions documentation.

Install

pip install soapsnow

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.req(
    method='getRecords',
    number='INC000123'
)
print(resp.text)

resp = snow.req(
    method='insert',
    number='INC000123',
    state='resolved',
    work_notes='Test'
)
print(resp.text)

resp = snow.req(
    method='getRecords',
    assignment_group='my-group',
    active=1,
    __encoded_query='state!=6^short_descriptionLIKEHost is unreachable',
    __limit=20
)
print(resp.text)

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.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file soapsnow-0.1.3.tar.gz.

File metadata

  • Download URL: soapsnow-0.1.3.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.2

File hashes

Hashes for soapsnow-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d3f3376ddbf13d7c18c2f4c7ca0b110c43438bbd6e4473efb348ed4275d3e6ee
MD5 6ff15ba128d0dcb68785543c5004d056
BLAKE2b-256 f5bf545be410a71d70fa8f5a0bb946ff2652ac23cee002a2c1a6514069059fa9

See more details on using hashes here.

File details

Details for the file soapsnow-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: soapsnow-0.1.3-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.2

File hashes

Hashes for soapsnow-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8aeec4edcc2a88d19777a7fc5e036a58b05dd275e8a5b421ea71e13426efee39
MD5 8052ef3f8394bee62257f33844412197
BLAKE2b-256 7f0a21de65ff593b6558c167e81f4fc557827a7bb89eee7e76a2119eb35d7647

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