About senderID and Error Code 11 (Your daily API usage limit is reached)

62 views
Skip to first unread message

hhaikala

unread,
Jan 5, 2011, 4:19:18 AM1/5/11
to TextMagic SMS Gateway API
Hello,

I have been able very easily to integrate the use of TextMagic with an
application. It's been so straight forward it doesn't stop to amaze
me.

Now I'm trying to test the Java API to integrate some fancy stuff into
an application for the company I work for. I keep getting the error
code 11, even with the simplest API call:

SentMessage message = service.send("text", "99912345678");

The username and password I'm using creating the
TextMagicMessageService instance are those of our TextMagic account. I
logged in into our account and realized there was an API password to
be set as well. This field is empty and asks for an existing TextMagic
password, which I don't have. How do I get one? And is it the API
password I need to use to call the API from my code?

What I'd like to do is send emails (text messages) to different groups
of people, each group receiving different email bodies (and subjects)
from different senders (from addresses). Until now I have achieved
this by using the java.mail-package and TextMagic but the problem is,
we need the sender to be the name of a company (there is one for each
group).

I thought the solution would be to set the senderID to the message (I
would have to apply for x amount of senderIDs) from within my java
code. Otherwise I guess TextMagic wouldn't know which senderID to use.
Is this even possible? I don't seem to find a method to set the from-
address as a parameter.

Any help would be appreciated,

-Heidi




priit....@gmail.com

unread,
Jan 5, 2011, 4:23:55 AM1/5/11
to TextMagic SMS Gateway API
Hello,

Yes, you can set Sender ID with API:

Command to Send an SMS with Custom previously registered Sender ID

Request

https://www.textmagic.com/app/api?username=xxxx&password=yyyy&cmd=send&text=test&phone=44797123456&unicode=1&from=companyX

Response
{
"message_id": {
"8624396": "44797123456",
"parts_count": 1,
"sent_text": "test"
}
}

Note: You can use any of your registered Custom Sender IDs. To apply
for Custom sender ID follow this link

Look under examples here: http://api.textmagic.com/https-api/examples

Please read the API manual, all your questions are answered there.

hhaikala

unread,
Jan 5, 2011, 6:20:22 AM1/5/11
to TextMagic SMS Gateway API
Hi,

thanks for your quick reply and advice. I had seen that sort of
request in the manual, but what I was really looking for is not a
redirect-link, but a Java method where I could set the sender in my
Java class (not jsp). Can this be done? I think I'm missing something
that is right in front of me. Anyway, sadly I'm still stuck with the
error code 11, so can't try a thing.

-Heidi

On Jan 5, 9:23 am, "priit.vaik...@gmail.com" <priit.vaik...@gmail.com>
wrote:
> Hello,
>
> Yes, you can set Sender ID with API:
>
> Command to Send an SMS with Custom previously registered Sender ID
>
> Request
>
> https://www.textmagic.com/app/api?username=xxxx&password=yyyy&cmd=sen...

priit....@gmail.com

unread,
Jan 5, 2011, 6:50:14 AM1/5/11
to TextMagic SMS Gateway API
Hi,

To use our API please create a TextMagic account and buy SMS credits.

Java API code is provided as is. If you need more features you need to
add it yourself.

Support.

hhaikala

unread,
Jan 5, 2011, 6:58:42 AM1/5/11
to TextMagic SMS Gateway API
Hi,

we do have an account and credits.

I understand if I can't set the senderID but with a redirect link, but
this does not explain the error code, since what I'm testing is rather
simple (see original post).
Why can't I set an API password trough our account? And is it the API
password or the account password I should be using in my code?

Thanks for your help,

-Heidi

On Jan 5, 11:50 am, "priit.vaik...@gmail.com"

priit....@gmail.com

unread,
Jan 5, 2011, 7:02:09 AM1/5/11
to TextMagic SMS Gateway API
Please contact TextMagic support directly. We need your account
details to look into this.
Reply all
Reply to author
Forward
0 new messages