File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ echo '</pre>';
4545die();
4646
4747```
48+
4849Create Shipment | Shipping Label
4950``` php
5051<?php
@@ -247,4 +248,23 @@ echo '<pre>'; print_r($shipRes); echo '</pre>';
247248</html >
248249
249250```
251+ Tracking API
252+ ``` php
253+ <?php
254+
255+ use RahulGodiyal\PhpUpsApiWrapper\Tracking;
256+
257+ require_once('./vendor/autoload.php');
258+
259+ $client_id = "xxxxxxxxxxxxxxxx"; // UPS Client ID
260+ $client_secret = "xxxxxxxxxxxxxxx"; // UPS Client Secret
261+
262+ $trackingRes = Tracking::setTrackingNumber("123456789")->fetch($client_id, $client_secret); // For Dev Api
263+ $trackingRes = Tracking::setTrackingNumber("123456789")->setMode('PROD')->fetch($client_id, $client_secret); // For PROD Api
264+
265+ echo '<pre >';
266+ print_r($trackingRes);
267+ echo '</pre >';
268+ die();
269+ ```
250270
You can’t perform that action at this time.
0 commit comments