I make my first project with API. I need add this to my project: https://dokumentacja-inpost.atlassian.net/wiki/spaces/PL/pages/18153479/1.7.3+Shipment+Tracking
I use in my project Laravel 8.
I make composer require michalbiarda/shipx-php-sdk
And I added this code to my controller”
JavaScript
x
$status = new MBShipXSDKMethodTrackingRead;
$status->tracking_number = 123;
dd($status);
but its return:
JavaScript
MBShipXSDKMethodTrackingRead {#1599 ▼
+"tracking_number": 123
}
Not status 🙁
How can I get status from inputs by this API?
Please help me
Advertisement
Answer
Probably you need to hit a curl request with required attributes.
You can dd() the response of the curl response and surely you ll get the status.