smsapi / smsapi-php-client

SMSAPI PHP client that allows you to send messages, manage Short URLs and administrate your SMSAPI account.
https://www.smsapi.pl
Other
64 stars 39 forks source link

Add support for getMessageStatus() #123

Closed michalfordonski closed 1 year ago

michalfordonski commented 1 year ago

Hi, is there any way to manually retrieve SMS status info using its msgId? Unfortunately, the Callback Reports option is not suitable for me, because if the server is unavailable, I have no information about the status of messages that received such a Callback Report.

smsapi commented 1 year ago

Hello @michalfordonski! Unfortunately we don't provide any other way to check the message status apart from callback. I would like to encourage you to reconsider callback - even if your server would be unavailable, we will resend the callbacks that will not be confirmed by your aplication several times for up to 24 hours or unless your application confirms with OK (as per https://www.smsapi.com/docs/#sms-callback).

So, if your application will be only temprorarily down, SMSAPI will be able to deliver the information through callback after it is back into the game. If your app might be down for more than 24h, we can't provide you with the message status with an API, however you can always check delivery report at the Customer Portal.

nrbrttth commented 6 months ago

@smsapi Hi! We're using the old lib: https://github.com/smsapicom/smsapicom-php-client And with that we can manually get the status of an SMS. We'd like to migrate to this newer lib, but the manual status request is missing. The callback option would be too much hassle, we'd like to keep the status management as it is. Do you have any suggestion?

mpawikowski commented 6 months ago

Hello,

We no longer provide support for this method of getting message statuses - due to the volume of messages sent and the likely number of request for getting message statuses, we are unable to ensure such performance.

Using callbacks shouldn't be too complicated - all you need is a publicly available (you can filter IP addresses) endpoint to which we will provide data, and your script will respond OK. An example of a script in PHP for callbacks is in our documentation: https://www.smsapi.com/docs#7-callback-reports