No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
PHP 7.4 and later. Should also work with PHP 8.0.
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
<?php
require_once('/path/to/antibodies-online/ups-api/vendor/autoload.php');
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = AntibodiesOnline\UpsApi\Shipping\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AntibodiesOnline\UpsApi\Shipping\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$version = 'v1'; // string | When UPS introduces new elements in the response that are not associated with new request elements, Subversion is used. This ensures backward compatibility. v1 original features of the application. No support for CODTurn-inPage, HighValueReport or InternationalForms features returned in the response v1701 includes support for CODTurn-inPage features returned in the response. V1903 Length 5
$labelrecovery_request_wrapper = {"LabelRecoveryRequest":{"LabelDelivery":{"LabelLinkIndicator":"","ResendEmailIndicator":""},"LabelSpecification":{"HTTPUserAgent":"Mozilla/4.5","LabelImageFormat":{"Code":"ZPL"},"LabelStockSize":{"Height":"6","Width":"4"}},"Request":{"RequestOption":"Non_Validate","SubVersion":"1903","TransactionReference":{"CustomerContext":""}},"TrackingNumber":"1Z12345E8791315509","Translate":{"Code":"01","DialectCode":"US","LanguageCode":"eng"}}}; // \AntibodiesOnline\UpsApi\Shipping\Model\LABELRECOVERYRequestWrapper | Generate sample code for popular API requests by selecting an example below. To view a full sample request and response, first click \"Authorize\" and enter your application credentials, then populate the required parameters above and click \"Try it out\".
$trans_id = 'trans_id_example'; // string | An identifier unique to the request. Length 32
$transaction_src = 'testing'; // string | An identifier of the client/source application that is making the request.Length 512
try {
$result = $apiInstance->labelRecovery($version, $labelrecovery_request_wrapper, $trans_id, $transaction_src);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->labelRecovery: ', $e->getMessage(), PHP_EOL;
}
All URIs are relative to https://wwwcie.ups.com/api
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | labelRecovery | POST /labels/{version}/recovery | Label Recovery |
DefaultApi | shipment | POST /shipments/{version}/ship | Shipment |
DefaultApi | voidShipment | DELETE /shipments/{version}/void/cancel/{shipmentidentificationnumber} | Void Shipment |
- AdjustedHeightUnitOfMeasurement
- AlternateDeliveryAddressAddress
- BillReceiverAddress
- BillShipperCreditCard
- BillThirdPartyAddress
- BillingWeightUnitOfMeasurement
- CN22ContentCN22ContentWeight
- CN22ContentWeightUnitOfMeasurement
- CN22FormCN22Content
- CODCODAmount
- CODTurnInPageImage
- CommodityNMFC
- ContactsForwardAgent
- ContactsIntermediateConsignee
- ContactsProducer
- ContactsSoldTo
- ContactsUltimateConsignee
- ControlLogReceiptImageFormat
- CreditCardAddress
- DDTCInformationUnitOfMeasurement
- DeclaredValueType
- DimWeightUnitOfMeasurement
- DimensionsUnitOfMeasurement
- DryIceDryIceWeight
- DryIceWeightUnitOfMeasurement
- EEIFilingOptionShipperFiled
- EEIFilingOptionUPSFiled
- EEIInformationDDTCInformation
- EEIInformationLicense
- FRSPaymentInformationAddress
- FRSShipmentDataFreightDensityRate
- FRSShipmentDataHandlingUnits
- FRSShipmentDataTransportationCharges
- FormImage
- ForwardAgentAddress
- FreightDensityInfoAdjustedHeight
- FreightDensityInfoHandlingUnits
- FreightShipmentInformationFreightDensityInfo
- HandlingUnitsAdjustedHeight
- HandlingUnitsDimensions
- HandlingUnitsType
- HandlingUnitsUnitOfMeasurement
- HighValueReportImage
- ImageImageFormat
- IntermediateConsigneeAddress
- InternationalFormsBlanketPeriod
- InternationalFormsCN22Form
- InternationalFormsContacts
- InternationalFormsDiscount
- InternationalFormsEEIFilingOption
- InternationalFormsFreightCharges
- InternationalFormsInsuranceCharges
- InternationalFormsOtherCharges
- InternationalFormsProduct
- InternationalFormsUPSPremiumCareForm
- InternationalFormsUserCreatedForm
- LABELRECOVERYRequestWrapper
- LABELRECOVERYResponseWrapper
- LRCODTurnInPageImage
- LRFormImage
- LRRequestTransactionReference
- LRResponseResponseStatus
- LRResponseTransactionReference
- LabelDeliveryEMail
- LabelImageLabelImageFormat
- LabelRecoveryRequest
- LabelRecoveryRequestLabelDelivery
- LabelRecoveryRequestLabelSpecification
- LabelRecoveryRequestReferenceValues
- LabelRecoveryRequestRequest
- LabelRecoveryRequestTranslate
- LabelRecoveryRequestUPSPremiumCareForm
- LabelRecoveryResponse
- LabelRecoveryResponseCODTurnInPage
- LabelRecoveryResponseForm
- LabelRecoveryResponseHighValueReport
- LabelRecoveryResponseLabelResults
- LabelRecoveryResponseLabelResults1
- LabelRecoveryResponseResponse
- LabelRecoveryResponseTrackingCandidate
- LabelRecoveryResponseTrackingCandidate1
- LabelResultsForm
- LabelResultsLabelImage
- LabelResultsMailInnovationsLabelImage
- LabelResultsReceipt
- LabelSpecificationInstruction
- LabelSpecificationLabelImageFormat
- LabelSpecificationLabelStockSize
- MailInnovationsLabelImageLabelImageFormat
- NegotiatedChargesItemizedCharges
- NegotiatedRateChargesItemizedCharges
- NegotiatedRateChargesTaxCharges
- NegotiatedRateChargesTotalCharge
- NegotiatedRateChargesTotalChargesWithTaxes
- NotificationEMail
- NotificationLocale
- NotificationTextMessage
- NotificationVoiceMessage
- PackageCommodity
- PackageDimWeight
- PackageDimensions
- PackageHazMatPackageInformation
- PackageLevelResultStatus
- PackagePackageServiceOptions
- PackagePackageWeight
- PackagePackaging
- PackageReferenceNumber
- PackageResultsAccessorial
- PackageResultsBaseServiceCharge
- PackageResultsForm
- PackageResultsItemizedCharges
- PackageResultsNegotiatedCharges
- PackageResultsNegotiatedChargesItemizedCharges
- PackageResultsRateModifier
- PackageResultsServiceOptionsCharges
- PackageResultsShippingLabel
- PackageResultsShippingLabelGraphicImagePart
- PackageResultsShippingReceipt
- PackageResultsSimpleRate
- PackageServiceOptionsAccessPointCOD
- PackageServiceOptionsCOD
- PackageServiceOptionsDeclaredValue
- PackageServiceOptionsDeliveryConfirmation
- PackageServiceOptionsDryIce
- PackageServiceOptionsHazMat
- PackageServiceOptionsNotification
- PackageSimpleRate
- PackageUPSPremier
- PackageWeightUnitOfMeasurement
- PackingListInfoPackageAssociated
- PaymentInformationShipmentCharge
- PreAlertNotificationEMailMessage
- PreAlertNotificationLocale
- PreAlertNotificationTextMessage
- PreAlertNotificationVoiceMessage
- ProducerAddress
- ProducerPhone
- ProductEEIInformation
- ProductExcludeFromForm
- ProductNetCostDateRange
- ProductPackingListInfo
- ProductProductWeight
- ProductScheduleB
- ProductUnit
- ProductWeightUnitOfMeasurement
- ReceiptImage
- ReceiptSpecificationImageFormat
- ReferenceValuesReferenceNumber
- RequestTransactionReference
- ResponseAlert
- ResponseResponseStatus
- ResponseTransactionReference
- SHIPRequestWrapper
- SHIPResponseWrapper
- ScheduleBUnitOfMeasurement
- ShipFromAddress
- ShipFromPhone
- ShipFromTaxIDType
- ShipFromVendorInfo
- ShipToAddress
- ShipToPhone
- ShipmentAlternateDeliveryAddress
- ShipmentChargeBillReceiver
- ShipmentChargeBillShipper
- ShipmentChargeBillThirdParty
- ShipmentChargesBaseServiceCharge
- ShipmentChargesItemizedCharges
- ShipmentChargesServiceOptionsCharges
- ShipmentChargesTaxCharges
- ShipmentChargesTotalCharges
- ShipmentChargesTotalChargesWithTaxes
- ShipmentChargesTransportationCharges
- ShipmentDGSignatoryInfo
- ShipmentFRSPaymentInformation
- ShipmentFreightShipmentInformation
- ShipmentInvoiceLineTotal
- ShipmentPackage
- ShipmentPaymentInformation
- ShipmentPromotionalDiscountInformation
- ShipmentReferenceNumber
- ShipmentRequest
- ShipmentRequestLabelSpecification
- ShipmentRequestReceiptSpecification
- ShipmentRequestRequest
- ShipmentRequestShipment
- ShipmentResponse
- ShipmentResponseResponse
- ShipmentResponseResponseAlert
- ShipmentResponseShipmentResults
- ShipmentResponseShipmentResultsControlLogReceipt
- ShipmentResponseShipmentResultsDGPaperImage
- ShipmentResponseShipmentResultsDisclaimer
- ShipmentResponseShipmentResultsPackageResults
- ShipmentResultsBillingWeight
- ShipmentResultsCODTurnInPage
- ShipmentResultsControlLogReceipt
- ShipmentResultsDisclaimer
- ShipmentResultsFRSShipmentData
- ShipmentResultsFRSShipmentDataHandlingUnits
- ShipmentResultsForm
- ShipmentResultsHighValueReport
- ShipmentResultsNegotiatedRateCharges
- ShipmentResultsNegotiatedRateChargesItemizedCharges
- ShipmentResultsNegotiatedRateChargesTaxCharges
- ShipmentResultsPackageResults
- ShipmentResultsPackageResultsAccessorial
- ShipmentResultsPackageResultsItemizedCharges
- ShipmentResultsShipmentCharges
- ShipmentResultsShipmentChargesItemizedCharges
- ShipmentResultsShipmentChargesTaxCharges
- ShipmentReturnService
- ShipmentService
- ShipmentServiceOptionsAccessPointCOD
- ShipmentServiceOptionsCOD
- ShipmentServiceOptionsDeliveryConfirmation
- ShipmentServiceOptionsInternationalForms
- ShipmentServiceOptionsLabelDelivery
- ShipmentServiceOptionsLabelMethod
- ShipmentServiceOptionsNotification
- ShipmentServiceOptionsPreAlertNotification
- ShipmentServiceOptionsRestrictedArticles
- ShipmentShipFrom
- ShipmentShipTo
- ShipmentShipmentIndicationType
- ShipmentShipmentRatingOptions
- ShipmentShipmentServiceOptions
- ShipmentShipper
- ShipperAddress
- ShipperPhone
- ShippingLabelImageFormat
- ShippingReceiptImageFormat
- SoldToAddress
- SoldToPhone
- SummaryResultStatus
- TrackingCandidatePickupDateRange
- TransportationChargesDiscountAmount
- TransportationChargesGrossCharge
- TransportationChargesNetCharge
- UPSFiledPOA
- UPSPremierHandlingInstructions
- UPSPremiumCareFormLanguageForUPSPremiumCare
- UltimateConsigneeAddress
- UltimateConsigneeUltimateConsigneeType
- UnitUnitOfMeasurement
- VOIDSHIPMENTRequestWrapper
- VOIDSHIPMENTResponseWrapper
- VoidRequestTransactionReference
- VoidResponseResponseStatus
- VoidResponseTransactionReference
- VoidShipmentRequest
- VoidShipmentRequestRequest
- VoidShipmentRequestVoidShipment
- VoidShipmentResponse
- VoidShipmentResponsePackageLevelResult
- VoidShipmentResponsePackageLevelResult1
- VoidShipmentResponseResponse
- VoidShipmentResponseSummaryResult
Authentication schemes defined for the API:
- Type:
OAuth
- Flow:
application
- Authorization URL: ``
- Scopes: N/A
To run the tests, use:
composer install
vendor/bin/phpunit
This PHP package is automatically generated by the OpenAPI Generator project:
- API version: ``
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen