问题描述
作为测试,我在PHP中运行了一行代码来实现PHP客户端库。$ b
indexTest.php
<?php
require_once realpath(dirname(__ FILE __)。'/ google-api-php-client / autoload.php');
return;
我得到这个错误:
我需要做些什么来解决这个问题?
快速修复:
$ b $ p $
require_once realpath(dirname(__ FILE __)。'/ google-api-php-client / src / Google / autoload.php');
Google需要更新他们的API文档。 (我最近花了一段时间让自己陷入了一片混乱之中,试图通过他们的文档使它工作)。
你最终使用API的目标是什么?它只是用于登录?如果您需要任何帮助,我将非常乐意与您讨论任何不适当的事情。
As a test, I ran one line of code in PHP to implement the PHP Client Library.
indexTest.php
<?php
require_once realpath(dirname(__FILE__).'/google-api-php-client/autoload.php');
return;
I get this error:
What do I need to do to fix this?
Quick Fix:
require_once realpath(dirname(__FILE__).'/google-api-php-client/src/Google/autoload.php');
Google need to update their documentation on the API. (I spent quite a while getting myself in a fuddle recently, trying to get it working using their documentation).
What is you final aim on using the API? Is it just for Login? If you need any help with it, I'll be more than happy to talk you through anything that isn't working as it should be
这篇关于不推荐使用google-api-php-client的自动加载器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!