在他们的示例中https://www.twilio.com/user/account/phone-numbers/search我可以看到“本地”电话号码位置 - 城市/州。但是 $numbers 变量不包含有关城市的任何信息。有没有办法像在 url 中一样获取它?
$numbers = $client->account->available_phone_numbers->getList('US', 'Local', array(
"InRegion" => "AR"
));
数据:
object(sfOutputEscaperObjectDecorator)[319]
protected 'value' =>
object(stdClass)[244]
public 'friendly_name' => string '(646) 681-4092' (length=14)
public 'phone_number' => string '+16466814092' (length=12)
public 'lata' => string '132' (length=3)
public 'rate_center' => string 'NWYRCYZN01' (length=10)
public 'latitude' => string '40.714300' (length=9)
public 'longitude' => string '-74.006000' (length=10)
public 'region' => string 'NY' (length=2)
public 'postal_code' => string '10000' (length=5)
public 'iso_country' => string 'US' (length=2)
public 'address_requirements' => string 'none' (length=4)
public 'beta' => boolean false
public 'capabilities' =>
object(stdClass)[245]
public 'voice' => boolean true
public 'SMS' => boolean true
public 'MMS' => boolean true
protected 'escapingMethod' => string 'esc_specialchars' (length=16)