sanmar_sdk.client¶
The SanMar web services client.
Classes¶
A client for SanMar's web services, both SanMar's own and PromoStandards. |
Module Contents¶
- class sanmar_sdk.client.SanMar(customer_number: int, username: str, password: str, *, environment: sanmar_sdk.common.Environment = Environment.PRODUCTION, timeout: float = 30.0, transport: zeep.Transport | None = None)[source]¶
A client for SanMar’s web services, both SanMar’s own and PromoStandards.
- Parameters:
customer_number – The SanMar customer number. SanMar’s own services require it; PromoStandards services do not use it.
username – A SanMar.com login. Create one at https://www.sanmar.com/signup/webuser, then ask sanmarintegrations@sanmar.com to enable web service access. EDEV logins are separate from production ones, and neither works on SanMar’s SFTP server.
password – A SanMar.com login. Create one at https://www.sanmar.com/signup/webuser, then ask sanmarintegrations@sanmar.com to enable web service access. EDEV logins are separate from production ones, and neither works on SanMar’s SFTP server.
environment – Production, or SanMar’s EDEV test environment.
timeout – Seconds to wait for a WSDL to load or a call to finish.
transport – A zeep
Transportto use instead of the default one, for example to cache WSDLs or go through a proxy. It is used as-is, sotimeoutdoes not apply.
- property environment: sanmar_sdk.common.Environment[source]¶
The environment this client calls.