Support forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_TopicIcon
sms setting for api
sp_NewTopic Add Topic
January 6, 2025
10:04 am
Henk Helmantel
Admin
Forum Posts: 1550
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Shahzad,

The URI that you provide in your post should work as the HTTP URI in the HTTP Gateway of Diafaan SMS Server. However, there is a difference with the URI that you provide in the emails and I suspect that this causes your issues.

The URI in the emails have an additional % character in the mobile number tag, '[%to]' instead of '[to]'. Since '[%to]' is not a valid tag, it will not be replaced by the mobile number and you will get the "Mobile Number is Invalid" error.

You can enable communication logging for the HTTP Gateway to see exactly what The HTTP Gateway sends to SMS service and you can use that to troubleshoot the URI.

Regards, Henk

January 3, 2025
12:56 pm
Shahzad
Guest
Guests

i am facing problem on setting up an API. i am using this code:
"
HTTP GET
http://api.lowcostsms.co.uk/api/sendsms?id=[*REMOVED*]&pass=[*REMOVED*]&mobile=[to]&brandname=ANMOLSCHOOL&msg=[message-text]?http://api.lowcostsms.co.uk/api/sendsms?id=[*REMOVED*]&pass=[*REMOVED*]&mobile=[to]&brandname=ANMOLSCHOOL&msg=ddddddd

200
{"Response":"Mobile Number is Invalid"}
"
the [to] field cannot pick up the phone number. please hep me to reset this value.

Forum Timezone: Europe/Amsterdam
Most Users Ever Online: 529
Currently Online:
Guest(s) 6
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 692
Members: 0
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 3
Topics: 1180
Posts: 4031
Newest Members:
, Henk Helmantel
Administrators: Henk Helmantel: 1550