You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Danny van der Sluijs edited this page Nov 13, 2018
·
1 revision
Welcome to the exact-php-client wiki!
Log API request and response
$connection = newExactOnlineConnection();
/* Some setters for client id, secret etc. */$connection->insertMiddleWare(\GuzzleHttp\Middleware::log($this->logger, new \GuzzleHttp\MessageFormatter()));
Persisting new access & refresh token when newly acquired
$connection = newExactOnlineConnection();
/* Some setters for client id, secret etc. */$connection->setTokenUpdateCallback(function (Connection$connection) {
/** Implement your own callback function to persistence newly acquired tokens */
});