2016-12-28 4 views
3

作者を使ってtwilio-phpライブラリをインストールすることができないため、手動でインストールしています。新しいサービスを開始する方法を理解するためのヌービーとして私は非常に混乱しています...最初の通知ステートメントは、Services/Twilioのディレクトリを指しています。 Twilio-PHPライブラリをダウンロードした後、Servicesという名前のディレクトリはありません。また、$ client = new Services Twilioにも正しいパスが必要です。私は何をしますか?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); 

答えて

0

latest install instructionsは、次のことを示しています。あなたは、ライブラリを解凍した

<?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'; 

どのディレクトリでは?

関連する問題