Implementing Oauth2 login, Fatal error: Class 'Google_Service' not found

后端 未结 8 1409
情书的邮戳
情书的邮戳 2020-12-06 03:02

I am updating my website\'s login system from LightOpenID to Google\'s Oauth 2.0.

When I require the Client.php and the Service/Oauth2.php I get an error

8条回答
  •  猫巷女王i
    2020-12-06 03:37

    After following what Durandal had posted I tried it, but the new path for me is :

    require_once 'google-api-php-client/src/Google/autoload.php';
    

    Once I made this changed it worked. Thanks for the help.

提交回复
热议问题