Sending SMS through API from Delphi
Sending SMS through API from Delphi I want to send SMS from Delphi using an online API. The API is provided by a service provider that works when used through a web browser, as below: http://sendpk.com/api/sms.php?username=xxxx&password=xxxx&sender=Masking&mobile=xxxx&message=Hello The above url works fine when opened through a web browser, and the SMS is sent successfully. Now, I am struggling to integrate the API into my Delphi application. By searching through the Internet, I have found some examples, and finally I tried the below code: var lHTTP: TIdHTTP; lParamList: TStringList; begin lParamList := TStringList.Create; lParamList.Add('username=xxxx'); lParamList.Add('password=xxxx'); lParamList.Add('sender=Masking'); lParamList.Add('mobile=xxxx'); lParamList.Add('message=Hello'); lHTTP := TIdHTTP.Create; try PostResult.Lines.Text := lHTTP.Post('http://sendpk.com/api/sms.php', lParamList); f...