Skip to content

Instantly share code, notes, and snippets.

@ScottNeaves
Created August 2, 2016 16:39
Show Gist options
  • Save ScottNeaves/013fce5b9c26521decce644f9fde1ec0 to your computer and use it in GitHub Desktop.
Save ScottNeaves/013fce5b9c26521decce644f9fde1ec0 to your computer and use it in GitHub Desktop.
INFO:ordoro_requests.core:========== Request POST https://api-sandbox.pitneybowes.com/shippingservices/v1/shipments?includeDeliveryCommitment=True ==========
INFO:ordoro_requests.core:Headers: {'X-PB-TransactionId': '1470154046', 'Connection': 'keep-alive', 'User-Agent': 'python-requests/2.10.0', 'X-PB-Shipper-Rate-Plan': 'PP_SRP_NEWBLUE', 'Authorization': 'Bearer NR80bs3XBmLeRwxdOZ0SU9qXHumG', 'Accept-Encoding': 'gzip, deflate', 'Content-Length': '1157', 'Content-Type': 'application/json', 'Accept': 'application/json'}
DEBUG:ordoro_requests.core:Body: {"toAddress": {"addressLines": ["1 Infinite Loop"], "residential": true, "email": "[email protected]", "company": null, "postalCode": "95014", "cityTown": "Cupertino", "countryCode": "US", "phone": "5122901212", "name": "Apple"}, "parcel": {"dimension": {"unitOfMeasurement": "IN", "height": 7, "width": 3, "length": 8}, "weight": {"unitOfMeasurement": "OZ", "weight": 14.0}}, "documents": [{"printDialogOption": "NO_PRINT_DIALOG", "fileFormat": "PNG", "size": "DOC_4X6", "contentType": "BASE64", "type": "SHIPPING_LABEL"}], "rates": [{"specialServices": [{"specialServiceId": "DelCon"}], "serviceId": "PM", "carrier": "USPS", "inductionPostalCode": "95110", "parcelType": "PKG"}], "fromAddress": {"addressLines": ["345 Park Avenue"], "residential": true, "email": "[email protected]", "company": null, "postalCode": "95110", "cityTown": "San Jose", "countryCode": "US", "phone": "5122901212", "stateProvince": "CA", "name": "Adobe"}, "shipmentOptions": [{"value": "1439400845", "name": "SHIPPER_ID"}, {"value": "true", "name": "ADD_TO_MANIFEST"}, {"value": "true", "name": "HIDE_TOTAL_CARRIER_CHARGE"}, {"value": "2121212121", "name": "PRINT_CUSTOM_MESSAGE_1"}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment