darbiadev_sanmar.sanmar_services#

A module for wrapping SanMar’s SOAP API.

Module Contents#

Classes#

SanMarServices

A class wrapping SanMar's SOAP API.

class darbiadev_sanmar.sanmar_services.SanMarServices(base_url: str, pac_url: str, version: str, username: str, password: str)[source]#

A class wrapping SanMar’s SOAP API.

This class wraps SanMar’s API, using HTTP POST requests to send SOAP envelopes.

_make_request(service: str, soap_envelope: str) str[source]#
get_packing_slip(service: str, license_plate: str) dict[source]#

Get a packing slip from SanMar’s API.