Through the authentication code SMS HTTP call interface, you can quickly integrate the mobile phone number verification function in the website or the app, which is just the core code, can be expanded according to your actual needs.
Unit unit1;interfaceuses Windows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms, Dialogs, Stdctrls,unit2;type TForm1 = Class (Tform) Button1:tbutton; Memo1:tmemo; Edit1:tedit; Edit2:tedit; Edit3:tedit; Procedure Button1Click (sender:tobject); Private {Private declarations} public {public declarations} End;var form1:tform1; implementation{$R *.dfm}procedure Tform1.button1click (sender:tobject); beginmemo1.text:= Unit2.getmywebservericesoap (False, ' http://106.ihuyi.com/webservice/sms.php '). Submit (' username ', ' password ', ' Mobile number ', ' Your verification code is: 2647. Please do not divulge the verification code to other people. '); End;end.
Self-application account address: http://www.ihuyi.com/product.php
Full interface file Address: Http://www.ihuyi.com/upload/file/cu-fa-jie-kou.rar
Delphi's ability to send text messages by invoking an HTTP interface