Usually, to get my current SMS balance available in my SMS gateway service account, I enter the below link into my browser:

https://www.simplegateway.example.com/simplegatewayexampleapi/getbalance.php?username=USERNAME&&password=PASSWORD

Where:

USERNAME: My gateway username

PASSWORD: My gateway password

and so, I receive my current balance of SMS like the below image:

Current Balance

Is there a way to use this link in this module and get my current balance value inside a field (for example) or maybe using rules ?

What I really want is to use rule to check when my current balance (taken from the above url) is less than 10 so send an email to the site administrator.

Thank you for any help,

CommentFileSizeAuthor
Current Balance.png9.15 KBc.e.a

Comments

C.E.A created an issue. See original summary.

alansaviolobo’s picture

This module only plugs in to SMS Gateway. AFAIK, the sms gateway doesnt have a provision to get sms balances and hence this module would also not provide it.

The rules http client module might just solve your problem.

c.e.a’s picture

Hi again,
Yeah indeed this solved my problem...
even it is displaying an error about: Notice: Undefined offset: 1 in rules_http_client_request_url()
But at least i found a solution

Thank you for the kind help,

alansaviolobo’s picture

Status: Active » Closed (won't fix)