Click here to Skip to main content
14,448,071 members
Rate this:
Please Sign up or sign in to vote.
See more:
I am trying to call "smszone API" from REST API Client, but I recied response 200 ok and message "INVALID SENDSMS CALL (WELCOME) " and I didn't receive message on mobile

I am hitting this API: http://www.smszone.in/sendsms.asp
POST METHOD

passing following parameter in JSON body

header:application/JSON
page: SendSmsBulk
username: something
password: something
number: receiver mobile number
message: random text
SendId: something

Anybody can help what I am doing wrong??

What I have tried:

I tried to google but I couldn't find any answer
Posted
Updated 27-Sep-19 10:48am
Comments
Richard Deeming 27-Sep-19 13:20pm
   
Contact their support team. They are the only people who can answer your question.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

If they really replied with,
Quote:
I recied response 200 ok and message "INVALID SENDSMS CALL (WELCOME) "
Then I recommend leaving the platform as they leave no option of debugging or understanding what went wrong.

There are some ethics in HTTP programming (or Web API development), a 200 should be returned if everything goes fine and task has been accomplished—it can be a page load request, a record creation, etc.—but this Web API responds with a 200, but returns an error message and does not send anything.

You can try other products such as Twilio[^]—I do not endorse the product—or you can try any other online SMS sending API, such as Alibaba Cloud SMS[^] service if that makes sense to you.

You can learn more about Alibaba Cloud SMS service here, Connect to the World with Alibaba Cloud SMS (Short Message Service)[^].
   
Comments
Akshay malvankar 28-Sep-19 1:54am
   
sorry I could not try another I want to be used this API only

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100