No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This PHP package is automatically generated by the Swagger Codegen project:
- API version:
- Package version: 1.0.8
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen
PHP 5.5 and later
To install the bindings via Composer, add the following to composer.json:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/abantecart/ups-quantum-view.git"
}
],
"require": {
"abantecart/ups-quantum-view": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php:
require_once('/path/to/QuantumView/vendor/autoload.php');To run the unit tests:
composer install
./vendor/bin/phpunit
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 = UPS\QuantumView\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new UPS\QuantumView\Request\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
);
$body = new \UPS\QuantumView\QuantumView\QUANTUMVIEWRequestWrapper(); // \UPS\QuantumView\QuantumView\QUANTUMVIEWRequestWrapper | 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".
$version = "version_example"; // string | Version of API. Valid values: - v2
try {
$result = $apiInstance->quantumView($body, $version);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->quantumView: ', $e->getMessage(), PHP_EOL;
}
// Configure OAuth2 access token for authorization: oauth2
$config = UPS\QuantumView\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new UPS\QuantumView\Request\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
);
$body = new \UPS\QuantumView\QuantumView\QUANTUMVIEWRequestWrapper(); // \UPS\QuantumView\QuantumView\QUANTUMVIEWRequestWrapper | 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".
$deprecated_version = "deprecated_version_example"; // string | Version of API. Valid values: - v1
try {
$result = $apiInstance->quantumView_0($body, $deprecated_version);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->quantumView_0: ', $e->getMessage(), PHP_EOL;
}
?>All URIs are relative to https://wwwcie.ups.com/api
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | quantumView | POST /quantumview/{version}/events | Quantum View |
| DefaultApi | quantumView_0 | POST /quantumview/{deprecatedVersion}/events | Quantum View |
- ActivityLocationAddressArtifactFormat
- AddressArtifactFormatAddressExtendedInformation
- CODCODAmount
- CODCODCode
- CommonErrorResponse
- DeliveryActivityLocation
- DeliveryBillToAccount
- DeliveryCOD
- DeliveryDeliveryLocation
- DeliveryLocationAddressArtifactFormat
- DeliveryPackageReferenceNumber
- DeliveryShipmentReferenceNumber
- DimensionalWeightUnitOfMeasurement
- DimensionalWeightWeight
- ErrorErrorDigest
- ErrorErrorLocation
- ErrorMessage
- ErrorResponse
- ExceptionActivityLocation
- ExceptionBillToAccount
- ExceptionPackageReferenceNumber
- ExceptionResolution
- ExceptionShipmentReferenceNumber
- ExceptionUpdatedAddress
- FailureNotificationFailureNotificationCode
- GenericActivity
- GenericBillToAccount
- GenericFailureNotification
- GenericPackageReferenceNumber
- GenericService
- GenericShipTo
- GenericShipmentReferenceNumber
- ManifestBillToAccount
- ManifestCustomsValue
- ManifestPackage
- ManifestReferenceNumber
- ManifestService
- ManifestShipTo
- ManifestShipmentServiceOptions
- ManifestShipper
- ManifestUAPAddress
- OriginActivityLocation
- OriginBillToAccount
- OriginPackageReferenceNumber
- OriginShipmentReferenceNumber
- PackageActivity
- PackageDimensionalWeight
- PackageDimensions
- PackageLargePackage
- PackagePackageServiceOptions
- PackagePackageWeight
- PackageReferenceNumber
- PackageServiceOptionsCOD
- PackageServiceOptionsInsuredValue
- PackageTrackingNumber
- QUANTUMVIEWRequestWrapper
- QUANTUMVIEWResponseWrapper
- QuantumViewEventsSubscriptionEvents
- QuantumViewRequest
- QuantumViewRequestRequest
- QuantumViewRequestSubscriptionRequest
- QuantumViewResponse
- QuantumViewResponseQuantumViewEvents
- QuantumViewResponseResponse
- RequestTransactionReference
- ResponseError
- ResponseTransactionReference
- ShipToAddress
- ShipmentServiceOptionsCallTagARS
- ShipperAddress
- SubscriptionEventsDateRange
- SubscriptionEventsSubscriptionFile
- SubscriptionEventsSubscriptionStatus
- SubscriptionFileDelivery
- SubscriptionFileException
- SubscriptionFileGeneric
- SubscriptionFileManifest
- SubscriptionFileOrigin
- SubscriptionFileStatusType
- SubscriptionRequestDateTimeRange
- UAPAddressAddress
- UpdatedAddressAddressExtendedInformation
- Type: OAuth
- Flow: application
- Authorization URL:
- Scopes: