-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Efraim edited this page Sep 12, 2022
·
3 revisions
Initialize
from ups_turkey import UPSService
ups = UPSService('CUSTOMER_NUMBER', 'USERNAME', 'PASSWORD')
Services
# for "Createshipment V7" service
result = ups.create(**payload)
# for "QueryPackageInfo" service
result = ups.query(**payload)
Example
from ups_turkey import UPSService
ups = UPSService('CUSTOMER_NUMBER', 'USERNAME', 'PASSWORD')
payload = {
'InformationLevel': 1,
'TrackingNumber': 'YOUR_TRACKING_NUMBER'
}
result = ups.query('GetShipmentInfoByTrackingNumber_V2', **payload)