如何 install/use Google heroku 上的客户端库
how to install/use Google Client library on heroku
你好,我正在尝试使用我的 google sheets API v4 获取 sheet google sheet 上的一些数据将部署在 heroku 中的 PHP,在 google 的 Quickstart Guide 第 2 步中,它需要我安装 Google 客户端库。
$ composer require google/apiclient:^2.0
但我不知道如何在 heroku 中执行此操作。我已经有了两个必要的文件 quickstart.php 和 credentials.json。该行甚至假设 composer 在 heroku 上可用。
您没有在 heroku 上安装它。 Composer 是您计算机上的一个程序 运行,它 "composes" 或收集该程序运行所需的所有文件和库。所以真的要在你的电脑上安装 PHP 和 Composer。
你好,我正在尝试使用我的 google sheets API v4 获取 sheet google sheet 上的一些数据将部署在 heroku 中的 PHP,在 google 的 Quickstart Guide 第 2 步中,它需要我安装 Google 客户端库。
$ composer require google/apiclient:^2.0
但我不知道如何在 heroku 中执行此操作。我已经有了两个必要的文件 quickstart.php 和 credentials.json。该行甚至假设 composer 在 heroku 上可用。
您没有在 heroku 上安装它。 Composer 是您计算机上的一个程序 运行,它 "composes" 或收集该程序运行所需的所有文件和库。所以真的要在你的电脑上安装 PHP 和 Composer。