<?php
require 'vendor/autoload.php';
$token = new \Symplicity\Outlook\Token([outlookClientId], [outlookClientSecret], ['logger' => $log]);
$token->getAuthorizationUrl($state, $redirectUrl);
Every request either requesting or refreshing a token will return a Token Entity
<?php
require 'vendor/autoload.php';
$token = new \Symplicity\Outlook\Token([outlookClientId], [outlookClientSecret], ['logger' => $log]);
$tokenEntity = $token->request($code, $redirectUrl);
$accessToken = $tokenEntity->getAccessToken();
<?php
require 'vendor/autoload.php';
$token = new \Symplicity\Outlook\Token([outlookClientId], [outlookClientSecret], ['logger' => $log]);
$tokenEntity = $token->refresh($refreshToken, $redirectUrl);
$newAccessToken = $tokenEntity->getAccessToken();