Forums

OwenGriffin

OwenGriffin

Connoisseur

Betavine Team

RE: Always getting error code 4 back as a reply to mikerowehl
Just to let you know, I'm still investigating into the problem.

Our messages are sent through Vodafone Spain which is reporting that they are sent successfully.. They are now looking into the incident.

Thanks for your patience.
Login to reply
mikerowehl

mikerowehl

Newbie
RE: Always getting error code 4 back as a reply to OwenGriffin
Any new info?
Login to reply
OwenGriffin

OwenGriffin

Connoisseur

Betavine Team

RE: Always getting error code 4 back as a reply to mikerowehl
mikerowehl:
Any new info?


Sorry, nothing as yet. I have been poking them for more information.

For the time being you can use the trigger API to send normal messages. This uses a different gateway into the network. Just set a random port number.

If you have any problems please raise them again here.

Thanks,

Owen.
Login to reply
mihham

mihham

Newbie
RE: Always getting error code 4 back as a reply to OwenGriffin
I have the same problem!

I run the Api with the new source and libraries to send sms and everything seems to work fine

Server response: OK 1.2

API Version: 1.2
Success? true
Transaction ID:

But i never receive any msg to my phone
Login to reply
Select page:     «   <   1   2  

Recent forum posts

Re: Send SMS with encoded contro...

Hook,


OwenGriffin:
Unfortunately you can't send binary messages using the Betavine API.

Sending text messages is restricted to ASCII characters.

Sorry,

Owen.

Hi,

I am not quite sure if this is the perfect post to have this question answered, but I am trying to develop a mobile widget that needs to access to the mobile handset location (if available on the handset). Does anyone knows how to do this?


Many thanks
Higino

more...

Re: Send SMS with encoded contro...

OwenGriffin,


Unfortunately you can't send binary messages using the Betavine API.

Sending text messages is restricted to ASCII characters.

Sorry,

Owen.

more...

Send SMS with encoded control ch...

KSL,


Hello,

We try to send sms with some control characters(ASCII characters < 32). Included as normal text, the request fails with an 403 error from the server. So we tried to encode the control characters in the form %xy where x and y are the hexadecimal representation of the byte. Like it's done in Java and C# when encoding an url (we are using C#). The content type for the http request is set to application/x-www-form-urlencoded. But still we get that 403 error.

Is there a possibility to send sms with included control characters or is it possible to send binary data with the api?

Karsten

more...

RE: API & PHP

OwenGriffin,


You actually need to set the user agent to be something. The error is occurring because you don't have one.

more...

RE: API & PHP

tatude,


Ok, so I understood that something like this should be added:
curl_setopt($request, CURLOPT_HTTPHEADER, array('User-Agent: ""'));

...however, I'm still getting the same "302: document has moved here" message.

Could anyone provide a simple example of sending a "Hello world" SMS, etc. -- with/without CURL? I'd like to get it working in some way. Thanks!

more...

RE: API & PHP

OwenGriffin,


Ok. So you'll need to set a 'User-Agent' header for your CURL requests. So use the setopt function.

more...

RE: API & PHP

tatude,


Sure, if you can make something out of it. I'm using it with a cURL lib (curl.php), so it's not all in one place.

Anyway, here's the code with the URL:
<?php
include_once('curl.php');

$cURL = new cURL();

$URI = "http://www.betavine.net/api/send/sms?uaid=MY_KEY&dest=MY_NUMBER&message=Hello";

$smsresult = $cURL->get($URI);

// Print return code
echo "<pre>";
print_r($smsresult);
echo "</pre>";
?>


These options are set for cURL elsewhere:
CURLOPT_HEADER => 0,
CURLOPT_RETURNTRANSFER => TRUE


--Tatu

more...

RE: API & PHP

OwenGriffin,


Can you post your code which you use to call the API here?

more...