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

Uber Geek
+1 received by user: 11720

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

Uber Geek
+1 received by user: 11720

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

Uber Geek
+1 received by user: 11720

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 »

Hawaiki Transpacific cable ready-for-service
Posted 20-Jul-2018 11:29


Microsoft Dynamics 365 Business Central launches
Posted 10-Jul-2018 10:40


Spark completes first milestone in voice platform upgrade
Posted 10-Jul-2018 09:36


Microsoft ices heated developers
Posted 6-Jul-2018 20:16


PB Technologies charged for its extended warranties and warned for bait advertising
Posted 3-Jul-2018 15:45


Almost 20,000 people claim credits from Spark
Posted 29-Jun-2018 10:40


Cove sells NZ's first insurance policy via chatbot
Posted 25-Jun-2018 10:04


N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34



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.