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.


kiwibastard

18 posts

Geek


#8511 5-Jul-2006 19:32
Send private message

Has anybody been able to get clickatell sendmsg to work with Telecom phones? I am using the HTTP/S API functions. It seems to work ok with Vodafone but not Telecom.

Wondering if I am missing something in the query string?

Cheers

Create new topic
freitasm
BDFL - Memuneh
79252 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

#40541 5-Jul-2006 21:57
Send private message

Works for me just fine. Actually just sent a test message to both my Pocket PCs (Apache and Jasjar) and it was faster to arrive at Telecom's...

Also using the HTTP API.





Please support Geekzone by subscribing, or using one of our referral links: Samsung | AliExpress | Wise | Sharesies | Hatch | GoodSyncBackblaze backup




kiwibastard

18 posts

Geek


  #40543 5-Jul-2006 22:06
Send private message

What is the format of you query string?

Same routine works fine with Vodafone.!?

freitasm
BDFL - Memuneh
79252 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

#40544 5-Jul-2006 22:17
Send private message

With some changes, using VBSCRIPT on ASP 2.0:

XMLToSend = "api_id=[your_id]&user=[your_user]&password=[your_password]&to=[destination_number]&text=[content_to_send]&from=[yourstring]"
Set htobj = Server.Createobject("MSXML2.ServerXMLHTTP")
htobj.Open "POST", "http://api.clickatell.com/http/sendmsg", false
htobj.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
htobj.Send XMLToSend
Send = htobj.ResponseText
Set htobj = Nothing

It will send:

http://api.clickatell.com/http/sendmsg?api_id=[your_id]&user=[your_user]&password=[your_password]&to=[destination_number]&text=[content_to_send]&from=[yourstring]





Please support Geekzone by subscribing, or using one of our referral links: Samsung | AliExpress | Wise | Sharesies | Hatch | GoodSyncBackblaze backup




kiwibastard

18 posts

Geek


  #40546 5-Jul-2006 22:29
Send private message

c# code

public static string SendTxt(string cellNumber, string message)
        {
            WebClient webClient = new WebClient();
            webClient.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 2.0.50727;)");

            webClient.QueryString.Add("user", userName);
            webClient.QueryString.Add("password", passWord);
            webClient.QueryString.Add("api_id", id);
            webClient.QueryString.Add("to", cellNumber);
            webClient.QueryString.Add("text", message);
            webClient.QueryString.Add("from", phoneNum);
            webClient.QueryString.Add("req_feat", "32");

            string baseURL = "http://api.clickatell.com/http/sendmsg";

            Stream data = webClient.OpenRead(baseURL);
            StreamReader reader = new StreamReader(data);

            string response = reader.ReadToEnd();
            data.Close();
            reader.Close();

            return response;
        }

Like I say works with Voda not Telecom. Number format is 6427xxxxx

freitasm
BDFL - Memuneh
79252 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

#40547 5-Jul-2006 22:31
Send private message

req_feat?





Please support Geekzone by subscribing, or using one of our referral links: Samsung | AliExpress | Wise | Sharesies | Hatch | GoodSyncBackblaze backup


kiwibastard

18 posts

Geek


  #40550 5-Jul-2006 22:48
Send private message

Reguired Features - its in the spec, but maybe I dont need it. Will take out and try

PhilM
55 posts

Master Geek


  #40623 7-Jul-2006 11:29
Send private message

You may find that your account settings are preventing it.
I think the default is to not allow multi-credit messages to go.

As telecom messages cost more, you need to enable that option.
I can't remember where it is exactly, but its fairly simple to locate.



Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









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.