textbelt
textbelt copied to clipboard
Add ability for users to specify carrier
This would make carriers happier and would reduce spam to other carriers. We can incentivize this by raising limits for people who specify their carrier.
In addition to the number
and message
parameters, the /text
endpoint should accept a carrier
parameter such as "verizon", "tmobile", or "att" that will route to the correct email instead of sending an email to all carriers.
FYI, I would think as part of this enhancement, it would be nice to have an additional (formal?) API endpoint to specify the list of available (or "supported") carriers to which to send SMS (by email) to.
As it is today, a user has to be aware of the current carrier support by reading the docs on the TextBelt site/readme, or looking at the source code where the carrier gateways are specified. That's fine when user doesn't need to specify carrier, but when they do, having a way to know on demand (by API) which carriers are supported is nice.
A reference example to this suggestion can be seen at: http://www.watacrackaz.com/autosms/api.php. See the API endpoint for get carrier list.
I assume with this enhancment, specifying unknown/undefined (or unsupported) carrier results in some error message returned by the API.
I'll take a look at this.