我没有能力使用composer来安装twilio-php库,所以我要手动安装它。作为一个新手,我很难理解如何启动一个新的service...notice --第一个require 语句,它指向一个Services/Twilio目录。下载Twilio库后,没有名为Services的目录。此外,$client=新服务Twilio也需要正确的路径。我该怎么办,救命?
<?php
require("Services/Twilio.php");
require("database.php");
// initiate phone call via Twilio REST API
// Set our AccountSid and AuthToken
$AccountSid = "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$AuthToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
// Instantiate a new Twilio Rest Client
$client = new Services_Twilio($AccountSid, $AuthToken); 发布于 2017-01-11 00:22:14
最新安装说明显示了以下内容:
<?php
// Require the bundled autoload file - the path may need to change
// based on where you downloaded and unzipped the SDK
require __DIR__ . '/twilio-php-master/Twilio/autoload.php';您在哪个目录中解压缩了这个库?
https://stackoverflow.com/questions/41371344
复制相似问题