Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


Saboi

9 posts

Wannabe Geek


#13412 9-May-2007 05:00
Send private message

Hello people,

First wish to say thanks for all the support.

What i now wish to find out is how can i have the balance after sending a message from my website show on screen. I am currently using the simple code below for sending SMS.

Will be happy to hear from you.

$cell=$_POST["number"];
$subject = "A new sms";
$message="api_id:xxxxxx\r
user:xxxxxx\r
password:xxxxx\r
to:$cell\r
reply:email@domain\r
text:SMS from Website";
mail('sms@messaging.clickatell.com', $subject, $message);
echo"Messgae Sent";
?>

Create new topic
NokiaRocks
364 posts

Ultimate Geek
+1 received by user: 1

Trusted

  #70005 9-May-2007 07:48
Send private message

Where do you get the balance from. Is it a variable?



freitasm
BDFL - Memuneh
80646 posts

Uber Geek
+1 received by user: 41025

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #70008 9-May-2007 08:54
Send private message

You can only get the balance back if you implement a HTTP/S request. Check their manual for Clickatell HTTP/S, page 22 command "Query Balance".





Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 


Saboi

9 posts

Wannabe Geek


  #72151 25-May-2007 04:05
Send private message

Hi,

Its been a while.

I downloaded the document but did not really understand it.Please show me an example of how to Implement a HTTP/S request.

Thanks again.

Saboi

Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.