Basic PHP example code to get you started with NE DistriService's API. You'll need an account to use this API.
See https://orders.ne.nl/apidoc/ for instructions on how to get set up. The documentation page has code examples too.
Use our Contact form to get an account or request access: https://www.ne.nl/contact/
composer require ne/apirequire'vendor/autoload.php';
useNe\Api\TokenHelper;
useNe\Api\Client;
// Private key, copied from API management page$private_key = '-----BEGIN PRIVATE KEY-----[...]-----END PRIVATE KEY-----';
// Generate JWT$helper = newTokenHelper('your@email.addr', $private_key);
$token = $helper->getToken('nonce123');
// Make request using JWT$client = newClient($token);
$resp = $client->get(Client::ENDPOINT_PING, []);
var_dump($resp);