Building your own SMS sending service with the REST API
For some types of applications, it's necessary to identify the user uniquely during the registration phase: just think about services like WhatsApp or Telegram. To do this, a text message (SMS) is usually sent to a telephone number containing a code to be validated to complete the registration process. In this recipe, we will see how to build an SMS sending service to be used, for example, for the situation we have just described.
Getting ready
In this recipe, we will show you how to build your own SMS Sending Service: a RESTFul server part will provide REST APIs to queue and dequeue SMS messages; a mobile application (built only for Android OS) will query these REST APIs and if an SMS is to be sent, it will use its SMS manager to send it. A third VCL application is created to test and push SMS messages within the REST server.
The server application uses DMVC, a Delphi open source framework based on WebBroker that allows you to create...