PHP code example of its-pradeependra / postpin-php
1. Go to this page and download the library: Download its-pradeependra/postpin-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
$postpin = new Client($apiKey, [
'base_url' => 'https://api.postpin.in/v1', // override the API base (incl. version)
'timeout' => 30.0, // per-request timeout in seconds
'max_retries' => 2, // retries on 429/5xx/network errors
'headers' => ['X-Team' => 'logistics'], // extra headers on every request
]);