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

后端 未结 8 1405
情书的邮戳
情书的邮戳 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条回答
  • 2020-12-06 03:41

    Now it is deprecated and moved to Sub Google directory. Following is the new default path: google-api-php-client-master\src\Google\autoload.php

    0 讨论(0)
  • 2020-12-06 03:47

    Per the instruction on github:

    require_once 'google-api-php-client/autoload.php'; // or wherever autoload.php is located

    In your case it seems like the above include url should work fine.

    0 讨论(0)
提交回复
热议问题