The GetProvider method returns information about the
service provider associated with a phone number. This is done by
sending an query to a server that will check the phone number against
a database of known providers and the phone numbers that have been
allocated for wireless devices. If the phone number is valid,
information will be returned about the provider that is responsible
for that number.
Because most wireless carriers in the United States and Canada must
provide for wireless number portability, there is the possibility that the
provider information returned may no longer correspond to the
telephone number. It is recommended that you provide your end-user
with the ability to specify an alternate preferred provider to use
when sending the text message. For more information, refer to the
GetGateway method.
This method sends an HTTP query to the server api.sockettools.com
to obtain information about the wireless service provider.
This requires that the local system can establish a standard network
connection over port 80. If the client cannot connect to the server,
the method will fail and an appropriate error will be returned. The
server imposes a limit on the maximum number of connections that can
be established and the maximum number of requests that can be issued
per minute. If this method is called multiple times over a short
period, the library may also force the application to block briefly.
Server responses are cached per session, so calling this method
multiple times using the same phone number will not increase the
request count.
For a list of all supported wireless service providers, use
the EnumProviders method.