0

I have been trying to send an SMS using the PHP ideamart wrapper and I am getting the following error.

Invalid Host IP Error

This is the request I made to https://api.dialog.lk/sms/send

{ "message": "Hello", "destinationAddresses": ["tel:94777123456"], "password": "password", "applicationId": "APP_999999" }

Can anyone help me to figure out the reason?

Fawzan
  • 4,738
  • 8
  • 41
  • 85

2 Answers2

2

After a couple of tries I figured out the cause of the issue, It is a problem with my web hosting service. Since Ideamart API only allow requests from whitelisted/allowed IP address.

I have requested the outgoing IP from the hosting provider and added it to the provisioning. Now it works fine.

Fawzan
  • 4,738
  • 8
  • 41
  • 85
0

Ideamart API only allows whitelisted IP for a apps when you provisioned. So first get your host's IP address and use it as a whitelisted IP.

Since app is already provisioned you need to send support request to ideamart to alter it.

user2473015
  • 1,392
  • 3
  • 22
  • 47