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.




18 posts

Geek


Topic # 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
BDFL - Memuneh
59623 posts

Uber Geek
+1 received by user: 10781

Administrator
Trusted
Geekzone
Lifetime subscriber

Reply # 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.







18 posts

Geek


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

What is the format of you query string?

Same routine works fine with Vodafone.!?

 
 
 
 


BDFL - Memuneh
59623 posts

Uber Geek
+1 received by user: 10781

Administrator
Trusted
Geekzone
Lifetime subscriber

Reply # 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]







18 posts

Geek


  Reply # 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

BDFL - Memuneh
59623 posts

Uber Geek
+1 received by user: 10781

Administrator
Trusted
Geekzone
Lifetime subscriber



18 posts

Geek


  Reply # 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

55 posts

Master Geek


  Reply # 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



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Fujifilm X beats its best with new top of the range, high-performance camera
Posted 24-Feb-2018 14:05


One million kiwis affected by cybercrime
Posted 24-Feb-2018 13:58


New Zealanders want to engage with government online and via mobile apps
Posted 24-Feb-2018 13:56


Samsung launches Samsung Max
Posted 24-Feb-2018 13:52


CPTPP text and National Interest Analysis released for public scrutiny
Posted 21-Feb-2018 19:43


Foodstuffs to trial digitised shopping trolleys
Posted 21-Feb-2018 18:27


2018: The year of zero-login, smart cars & the biometrics of things
Posted 21-Feb-2018 18:25


Intel reimagines data centre storage with new 3D NAND SSDs
Posted 16-Feb-2018 15:21


Ground-breaking business programme begins in Hamilton
Posted 16-Feb-2018 10:18


Government to continue search for first Chief Technology Officer
Posted 12-Feb-2018 20:30


Time to take Apple’s iPad Pro seriously
Posted 12-Feb-2018 16:54


New Fujifilm X-A5 brings selfie features to mirrorless camera
Posted 9-Feb-2018 09:12


D-Link ANZ expands connected smart home with new HD Wi-Fi cameras
Posted 9-Feb-2018 09:01


Dragon Professional for Mac V6: Near perfect dictation
Posted 9-Feb-2018 08:26


OPPO announces R11s with claims to be the picture perfect smartphone
Posted 2-Feb-2018 13:28



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.

Alternatively, you can receive a daily email with Geekzone updates.