Help sending an SMS to a subscriber

3 views
Skip to first unread message

Madhavi

unread,
Oct 28, 2009, 5:54:58 PM10/28/09
to Zeep Mobile
I have successfully registered my phone to receive SMS and am now
trying to send an SMS using send_message API.

Have a test html file that posts to the endpoint (in the documentation
on zeep's website) with the authorization header that's generated by
the test java program (also in the documentation on zeep's website).
When I run the html, it's returning 403 error saying "The API Key was
either not supplied, or has not been registered as a Zeep Mobile
Application."

Could anyone let me know what I'm missing?

Thanks.


Simon Wex

unread,
Oct 28, 2009, 7:07:11 PM10/28/09
to zeep-...@googlegroups.com
Could you send me the raw HTTP request you're sending to si...@zeepmobile.com?

-Simon

Madhavi

unread,
Nov 1, 2009, 11:46:23 PM11/1/09
to Zeep Mobile
I have managed to get past this 403 error but, am now getting "400 Bad
Request". I do have authorization and date headers along with user_id
and body parameters in the post request using Apache's Httpclient as
follows...

String url = "https://api.zeepmobile.com/
messaging/2008-07-14/send_message";
HttpClient client = new DefaultHttpClient();

// Prepare a request object
HttpPost httpget = new HttpPost(url);
httpget.addHeader("Authorization", authHeaderValue);
httpget.addHeader("Date", httpDate);

httpget.getParams().setParameter("user_id", userID);
httpget.getParams().setParameter("body", URLEncoder.encode
(body, "UTF-8"));

// Execute the request
HttpResponse response = client.execute(httpget);

Pl. advise what I am missing.

Thanks.
> > Thanks.- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages