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
80646 posts

Uber Geek
+1 received by user: 41029

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.





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.

 




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
80646 posts

Uber Geek
+1 received by user: 41029

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]





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.

 




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
80646 posts

Uber Geek
+1 received by user: 41029

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

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

req_feat?





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.

 


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

HP

 
 
 
 

Shop now for HP laptops and other devices (affiliate link).
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








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.