简体   繁体   English

如何使用C#Twilio API通过NearZipCode搜索?

[英]How to search by NearZipCode with C# Twilio API?

I'm aware of the InPostalCode search from the docs: 我知道来自文档的InPostalCode搜索:

https://www.twilio.com/docs/howto/search-and-buy https://www.twilio.com/docs/howto/search-and-buy

But I would like to be able to search by zip code proximity. 但我希望能够按邮政编码进行搜索。 When my users use my app to provision a number, I'd like for them to be able to see 30 numbers that are closest to the zip code that they provide (since chances are, their exact zip code won't have any numbers). 当我的用户使用我的应用提供号码时,我希望他们能够看到最接近他们提供的邮政编码的30个数字(由于可能,他们的确切邮政编码没有任何数字) 。 Is this possible, or will it be any time soon? 这有可能吗,还是很快就会呢?

Twilio evangelist here. Twilio的传播者在这里。

There is an overload on the ListAvailablePhoneNumbers method that takes an AvailablePhoneNumberListRequest object, which has the InPostalCode property: ListAvailablePhoneNumbers方法有一个重载,该方法带有一个AvailablePhoneNumberListRequest对象,该对象具有InPostalCode属性:

twilio.ListAvailableLocalPhoneNumbers("US", new AvailablePhoneNumberListRequest() { InPostalCode="60001"});

Hope that helps. 希望能有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM