How vesselfinder/container-tracking-api-wrapper works
This repository provides PHP and Python wrappers for the Container Tracking API. In either language, a caller supplies an API key and container number; the wrapper validates the number and optional sealine, makes an API request, and can poll when the response is pending until it completes or times out. The examples demonstrate ordinary, sealine-specific, and timeout calls. The sampled implementation shows validation, request construction, and polling; the external API’s internal behavior is outside this repository.
Main entry points: ContainerTrackingApi.php Container method · containertrackingapi.py Container method
Components 8
PHP wrapper
- Container method
php/ContainerTrackingApi.php - Number validation
php/ContainerTrackingApi.php - HTTP request
php/ContainerTrackingApi.php
Python wrapper
- Container method
python/containertrackingapi.py - Number validation
python/containertrackingapi.py - HTTP request
python/containertrackingapi.py
Other components
- Client code
- Tracking API
Connections 10
- Client code → Container method: calls
- Client code → Container method: calls
- Container method → Number validation: validates
php/ContainerTrackingApi.php - Container method → HTTP request: requests
php/ContainerTrackingApi.php - HTTP request → Tracking API: sends request
php/ContainerTrackingApi.php - Tracking API → HTTP request: returns response
php/ContainerTrackingApi.php - Container method → Number validation: validates
python/containertrackingapi.py - Container method → HTTP request: requests
python/containertrackingapi.py - HTTP request → Tracking API: sends request
python/containertrackingapi.py - Tracking API → HTTP request: returns response
python/containertrackingapi.py