How I use this link for send sms
hisms.ws/api.php?send_sms&username=xx&password=xx&numbers=xx&sender=xx&message=xx&date=2009-5-24&time=11:33
I tried but result 404
dim j as httpjob
j.initialize("",me)
j.download2("http://hisms.ws/api.php",array as String("username","xx","password","xx"."numbers","xx","sender","xx","date","2009-5-24", "time","11:33"))
dim j as httpjob
j.initialize("",me)
j.download2("http://hisms.ws/api.php",array as String("username","xx","password","xx"."numbers","xx","sender","xx","date","2009-5-24", "time","11:33"))
1. Postman ist not relevant to b4x to 100%
2. if i call this url in a browser i get a result! The Result is "1"
3. It will also work with okhttputils2
B4X:
Dim j As HttpJob
j.initialize("",Me)
j.download2("http://hisms.ws/api.php",Array As String("username","xx","password","xx","numbers","xx","sender","xx","date","2009-5-24", "time","11:33"))
Wait For (j) JobDone(job As HttpJob)
If job.Success Then
Dim res As String = job.GetString
Log("Result = "&res)
Else
Log(job.ErrorMessage)
End If
job.Release
All should work with okhttputils2. Do not expect me to write the code for you.
Code it yourself. Get familar with okhttputils2.
Adapt the code above to match the correct parameters and values for the calls you need.
First thing to understand is if the command works
To do this you should try typing a command line in the address bar of a web browser, such as Firefox, Opera, Chrome, etc.
If the browser works correctly then continue with the attempts from the B4X code
I'll give you an example, I was using a similar system on a Teltonika router to send sms from pc, and the code always returned an error, so I tried with a commercial browser and that also returned an error, in my case it was the router that did not accept the + as an international prefix symbol, he wanted a %2B