Php 删除Twilio编号时未找到请求的资源

Php 删除Twilio编号时未找到请求的资源,php,json,twilio,Php,Json,Twilio,我正在尝试使用以下代码从我的Twilio帐户中删除一个号码: // remove the number from Twilio $client = new Services_Twilio(TWILIO_SID, TWILIO_TOKEN); try { // Remove the number $purchaseNumber = $client->account->incoming_phone_numbers->delete(array( "

我正在尝试使用以下代码从我的Twilio帐户中删除一个号码:

// remove the number from Twilio
$client = new Services_Twilio(TWILIO_SID, TWILIO_TOKEN);

try {

    // Remove the number
    $purchaseNumber = $client->account->incoming_phone_numbers->delete(array(
        "PhoneNumber" => "+447903000000"
    ));


} catch (Exception $e) {

    echo 'Error = '.$e->getMessage();

}
这将引发以下异常:

Error = The requested resource /2010-04-01/Accounts/jhsdkfjhdsjhf32370685sjhgfjhdsjfgsdjh/IncomingPhoneNumbers/Array.json was not found

我假设删除号码请求的格式是错误的,但文档中似乎没有任何关于如何删除号码的示例-有人能说明我的错误吗?

因此,似乎无法使用号码删除号码-您必须使用购买号码时返回的SID。详情如下: