A simple and resilient wrapper library for the new state-owned French logistical carrier parcels and mail tracking API (LaPoste/Okapi — v2).
Click here to learn more about the official API.
- Java 8+
- Maven 3.8.1+
- A valid API key (see Okapi > Applications)
To track a parcel or a mail, you need to call the getTracking method with the parcel's tracking number as a parameter:
import com.astrepid.okapi.IOkapiService;
import com.astrepid.okapi.OkapiServiceImpl;
import com.astrepid.okapi.tracking.OkapiTracking;
class Main {
IOkapiService service = new OkapiServiceImpl("YOUR_API_KEY");
OkapiTracking tracking = service.getTracking("TRACKING_NUMBER");
}To execute the tests, you need a valid sandbox API key. You can get one by registering here.
- Astrepid - Multi-tracking, resilience, translation, etc - astrepid.com
- DaJlab - Initial work - dajlab.org