0

您好开发人员我正在使用 Twilio API 并购买了一个号码。

我还创建了一个安全的 SSL 站点,上传了以下代码。然后它将显示以下错误

错误:验证

<?php
// Include the Twilio PHP library
require 'Services/Twilio.php';

// Twilio REST API version
$version = '2010-04-01';

// Set our AccountSid and AuthToken
$sid = 'myWorkingSID';
$token = 'myWorkingAuthToken';

// Instantiate a new Twilio Rest Client
$client = new Services_Twilio($sid, $token, $version);

try {
    // Get Recent Calls
    foreach ($client->account->calls as $call) {
        echo "Call from $call->from to $call->to at $call->start_time of length $call->duration";
    }
} catch (Exception $e) {
    echo 'Error: ' . $e->getMessage();
}

请在这个问题上帮助我

4

0 回答 0