1. Go to this page and download the library: Download bbcreation/allegro-api 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/ */
bbcreation / allegro-api example snippets
// Composer autoload
t = new \bbcreation\AllegroApi\Client($credentials);
// Redirect to allegro for authenticate and get back with code
if (!isset($_GET['code'])) {
header('Location: '.$client->getAuthUrl());
} else {
$token = $client->fetchAccessTokenWithAuthCode($_GET['code']);
// Store access token...
}