darbiadev_ups.ups_services
#
UPSServices
Module Contents#
Classes#
An enum for the authentication types |
|
A class wrapping UPS' API. |
- class darbiadev_ups.ups_services._AuthType(*args, **kwds)[source]#
Bases:
enum.Enum
An enum for the authentication types
- class darbiadev_ups.ups_services.UPSServices(base_url: str, username: str, password: str, access_license_number: str)[source]#
A class wrapping UPS’ API.
- TRACKING_URL: Final[str] = 'https://wwwapps.ups.com/WebTracking/processInputRequest?TypeOfInquiryNumber=T&InquiryNumber1={tra...'[source]#
- __auth_dict() dict[str, dict[str, dict[str, str]]] [source]#
Return authentication JSON as a dictionary
- make_request(method: str, auth_type: _AuthType, service: str, data: dict[str, Any], timeout: int = 500) dict [source]#
Make a request to UPS’ API