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>';
45
45
die();
46
46
47
47
```
48
+
48
49
Create Shipment | Shipping Label
49
50
``` php
50
51
<?php
@@ -247,4 +248,23 @@ echo '<pre>'; print_r($shipRes); echo '</pre>';
247
248
</html >
248
249
249
250
```
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
+ ```
250
270
You can’t perform that action at this time.
0 commit comments