Written to consume Impactflow Internal Oauth Server.
$tokenRequest = new \ImpactOauthClient\TokenRequest('TestClient', 'TestSecret');
$tokenRequest->setUri('https://oauth-provider/token');
$oauthClient = new ImpactOauthClient\Client(new GuzzleHttp\Client(['verify' => false]));
$token = $oauthClient->requestToken($tokenRequest);
$resourceRequest = new \ImpactOauthClient\ResourceRequest();
$resourceRequest->setAccessToken('MyLongToken');
$resourceRequest->setUri('https://oauth-provider/resource');
$token = $oauthClient->validateToken($resourceRequest);