I need After-ship API integration for e-commerce website.


which will be useful in tracking the order status.

I have downloaded sdk from


I have given the api key in AfterShip/Core/request.php.

But its not working can anyone suggest me steps to integrate it.

Recommended Answers

All 4 Replies

I tried , but i am not getting response

require 'Core/Request.php';
require 'Couriers.php';
$courier = new AfterShip\Couriers('API-KEY');
$response = $courier->get();

echo $response;

Did you use your own API key? Check if the object is valid, then check what exactly is in the reponse. Any errors in your error log?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.