use new API of php-oauth-client