2016-12-28 33 views
3

我沒有能力使用composer來安裝twilio-php庫,所以我正在手動安裝它。作爲一個nubie來理解如何發起一個新的服務是非常令人困惑的......注意第一個要求陳述它指向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'; 

在哪個目錄你解壓縮庫?

相關問題