Authentication

When using the API all requests must be performed with an authorized request. This document described how to receive your Access Token.

Authentication endpoint

The live authentication endpoint can be accessed via: https://api.boekuwzending.com/token

The staging authentication endpoint can be accessed via: https://staging.api.boekuwzending.com/token

This endpoint need to be called with the application/x-www-form-urlencoded Content-Type header using the POST method. Use the following curl request as reference.

PHP SDK
<?phprequire 'vendor/autoload.php';const CLIENT_ID = '';const CLIENT_SECRET = '';$client = \Boekuwzending\ClientFactory::build(CLIENT_ID, CLIENT_SECRET);# The PHP SDK will handle Access Tokens automatically.
Curl
CLIENT_ID= # Your Client IDCLIENT_SECRET= # Your Client Secretcurl 'https://api.boekuwzending.com/token' \--request POST \--header "Content-Type: application/x-www-form-urlencoded" \--data "client_id=$CLIENT_ID&client_secret=$CLIENT_SECRET&grant_type=client_credentials"# The `access_token` from the response must be used in all API request.