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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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