PHP code example of answear / boxnow-bundle
1. Go to this page and download the library: Download answear/boxnow-bundle 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/ */
answear / boxnow-bundle example snippets
/** @var \Answear\BoxNowBundle\Service\AuthorizationService $authorizationService **/
$auth = $authorizationService->authorize();
$auth->getAccessToken();
$auth->getExpiresIn();
$auth->getTokenType();
/** @var \Answear\BoxNowBundle\Service\PickupPointService $pickupPoints **/
$pickupPoints->getAll(token: 'accessToken');