update module to use new php-oauth-client API