我使用twilio gem而且我不知道如何发布电话号码.
我试试:
@H_
403_3@@client.account.incoming_phone_numbers.delete(:phone_number => phone_number)
但铁路说:
@H_
403_3@undefined method `delete' for #<Twilio::REST::IncomingPhoneNumbers:0x7f35c99e93e0>
如何纠正发行号码?
我找到了
解决方案
@H_
403_3@@client.account.incoming_phone_numbers.list({:phone_number => phone_number}).each do |n|
num = @client.account.incoming_phone_numbers.get(n.sid)
num.delete
end
原文链接:https://www.f2er.com/ruby/268793.html