Forums

mikerowehl

Newbie
Always getting error code 4 back

I'm trying to use the APIs to test out sending SMS to myself. I tried sending requests using a developer key, and if I understand the reference docs correctly a URL like the following should work:

http://www.vodafonebetavine.net/api/send/...
...sms.xml?auid=DEVAUID&message=miketesting...
&dest=+16507146444

But I always get an error code 4 from that. I also tried generating a Mashup key and using that instead of my developer key, but same thing. Can the APIs only be used to send to Vodafone users? Or am I doing something else wrong?

- Miker

Login to reply

OwenGriffin

Connoisseur
RE: Always getting error code 4 back as a reply to mikerowehl

I'm trying to use the APIs to test out sending SMS to myself. I tried sending requests using a developer key, and if I understand the reference docs correctly a URL like the following should work:

http://www.vodafonebetavine.net/api/send/...
sms.xml?auid=DEVAUID&message=miketesting...
&dest=+16507146444

But I always get an error code 4 from that. I also tried generating a Mashup key and using that instead of my developer key, but same thing.[/quote]

Your developer key will not send messages. It is designed only for testing purposes. The developer key will behave exactly like a mashup key. The mashup key however will send messages.

A error code 4 is an invalid parameter. I noticed from the URL you have posted you have a prefixed a + at the beginning of the number. Try again without the +.

Can the APIs only be used to send to Vodafone users?

The API should send text messages to any operator.

Login to reply

mikerowehl

Newbie
RE: Always getting error code 4 back as a reply to OwenGriffin

It was actually a typo in the url, I had auid instead of uaid, swapping to JSON encoding made the error return more obvious. It says it's delivering messages when I use my mashup key now, and it's subtracting credits from my account. But I'm not actually getting the messages. Anyone tried using the API to deliver messages to ATT/Cingular in the US?

- Mike

Login to reply

OwenGriffin

Connoisseur
RE: Always getting error code 4 back as a reply to mikerowehl

It was actually a typo in the url, I had auid instead of uaid, swapping to JSON encoding made the error return more obvious. It says it's delivering messages when I use my mashup key now, and it's subtracting credits from my account. But I'm not actually getting the messages.

If this turns out to be a connectivity problem on our side I'm sure we can just top up your credits.

Anyone tried using the API to deliver messages to ATT/Cingular in the US?

I have not tested it. We don't have access to an ATT/Cingular SIM. I will investigate to see if any of your messages are failing.

Login to reply

OwenGriffin

Connoisseur
RE: Always getting error code 4 back as a reply to OwenGriffin

Would you be able to provide a date and time when you last sent a message to an ATT/Cingular SIM so I can look at the logs more closely?

Thanks.

Login to reply

mikerowehl

Newbie
RE: Always getting error code 4 back as a reply to OwenGriffin

Hey Owen, thanks for the offer, here are the details for a message I sent at 12:30pm Pacific time. This is the command I used to generate the request:

curl 'http://www.vodafonebetavine.net/api/send/sms.xml?uaid=2m8xlc51c6p3zkbyxggdivvel5fqu2qv&message=miketesting&dest=16507146444'

and here is the response, it has a transaction id and all, hopefully it'll make it easy to dig out:

<?xml version="1.0" encoding="UTF-8"?>
<response version="1.1">
<method>send/sms</method>
<status>OK</status>
<transaction>
<id>5793</id><messages>
<message><id>5624</id><status>1</status>
<deliveredAt></deliveredAt><sentAt>2008-02-27 20:31:07.0</sentAt></message>
</messages></transaction>
</response>

Login to reply

mikerowehl

Newbie
RE: Always getting error code 4 back as a reply to mikerowehl
Anyone have any ideas here? I tested it out again to see if it was a transient problem, but still the same thing. The message is reported as delivered, a credit is deducted, but no message makes it through to my phone.
Login to reply

mikerowehl

Newbie
RE: Always getting error code 4 back as a reply to mikerowehl
Still not getting messages through. Anyone?
Login to reply

OwenGriffin

Connoisseur
RE: Always getting error code 4 back as a reply to mikerowehl

Still not getting messages through. Anyone?

I've contacted the guys who run the SMS gateway and they are looking into it.

The Betavine API appears to be sending the messages successfully.

Sorry for the delay.

Login to reply

mikerowehl

Newbie
RE: Always getting error code 4 back as a reply to OwenGriffin
Thanks Owen! I'll keep checking back.
Login to reply
Select page:     1   2   >   »

Recent forum posts

Re: Invoking the URL doesnt work...

OwenGriffin,


You can still send SMS' to mobile numbers - in some regions. We just can't guarantee service.

more...

Re: Invoking the URL doesnt work...

Jomy,


Hello Owen, This is how I've generated the UAID. So now, if you dont support Betavine API, how to send SMS to mobile number. Thanks & regards, Jomy

more...

Re: Invoking the URL doesnt work...

OwenGriffin,


Hi, Jomy. You can't target particular cells using our API. You can only send messages to a mobile number. You can create UAID by using the developer page in the API section. FYI, I would look using a SMS aggregator as opposed to the Betavine API - we no longer support it. O.

more...

Re: Invoking the URL doesnt work...

Jomy,


Hello Guys, Could you please look into this issue as i've demo and also tell me how shall i create a UIAD so that messages reaches the Target Cell. Thanks & regards, Jomy

more...

Invoking the URL doesnt work for...

Jomy,


Hello Guys, I would like to use the Betavine SMS API in my application to send SMS in India. So i've generated the UIAD and then formed a URL below: http://www.betavine.net/api/send/sms?uaid=7c45f66d-cc56-4368-9861-ccbc51fedd8b&message=frombetavinetest&dest=919886954011 Country code for India is 91 followed by my 10 digit number . When i'm copying and pasting this URL in the browser, it gives me a successful message but i don't receieve the message on my Mobile till now. Is there something wrong in the way i'm using it ? I thought of testing this like i mentioned, later i'll form a URL in my implementation and use HTTP GET or POST to send SMS. Could you please help me in overcoming this hurdle ? Thanks & regards, Jomy

more...

Re: Firefox 3.08 with Ubuntu 8.04

proximity6,


It is not like windows. It basically lets you launch your applications anyway you want to do it from abbreviation to short keys. I have never had a problem with it. There are two features that I like the best. One is that I can launch my applications as individual application or as a group. It doesn't care. The other feature is that I can use short keys to run scripts, open application, close application, etc. Remember, you can you Butler to assign short key to commands in applications as well such as itunes. Butler doesn't take up any additional space since it is incorporated in the menu bar. In addition, the bookmark organization is great feature also. There is really so many things that Butler can do that all I can say is try it and see for yourself. __________________________________________________ Ben 10 Games

more...

launch and minimize

[3w`Sparky],


I would like the vodafone mobile connect to minimize after it is launched leaving the tray icon only so that i can easily connect and disconnect as required, are there any extensions i can place on the end of the command to do this ? by the way this app is extremely good, credit to all who helped produce this.

more...

Re: Firefox 3.08 with Ubuntu 8.04

Medlosaxet,


I think this error is related: "The DNS settings received from the mobile network are invalid. You will probably want to restart your connection or if the problem persists you can specify a static DNS in the connection preferences." Has anyone any info on this error?

more...

Firefox 3.08 with Ubuntu 8.04

Medlosaxet,


Hi - I am getting online with my Vodafone 3520 no problem. But Firefox cant find any sites. This doesn't happen all the time, it is just as likely to load up the homepage and work perfectly. Are there any settings I should be aware of? I'd really appreciate if anyone could help on this. (Netbook is a Dell Inspiron 10)

more...

How to play sounds

Michael,


Hi all, I'm very new in this area, so please be patient :) I need my widget to play sounds. What is the best sound file format to use for this purpose and how can play my sound file with Vodafone SDK javascript? Thanks, Michael.

more...