SMS Gateway Me

Gerardo Morales6 years ago

Hi, I'm setting up the server with the SMS Gateway Me API, and I get this exception

{"status": "fail", "message": "Could not process request", "data": {"exception": "Invalid input"}} - MessageException (HttpSmsClient: 88 <NotificatorSms: 55 <NotificationResource: 63 < ...)

Regards

Anton Tananaev6 years ago

You need to contact API provider and ask about this issue.

Gerardo Morales6 years ago

Anton I have to eliminate these signs [] or place the token inside there

<entry key = 'notificator.sms.manager.class'> org.traccar.sms.HttpSmsClient </ entry>
<entry key = 'sms.http.url'> https://smsgateway.me/api/v4/message/send </ entry>
<entry key = 'sms.http.authorization'> [YOUR AUTH TOKEN] </ entry>
<entry key = 'sms.http.template'>
     [{
         "phone_number": "{phone}",
         "message": "{message}",
         "device_id": 1
     }]
</ entry>

But it does not connect

regards

Anton Tananaev6 years ago

Yes, you have to remove square brackets.

Gerardo Morales6 years ago

Anton

I think maybe we have to modify this parameter "device_id": 1, for the the device that show on my account?

Regards

Anton Tananaev6 years ago

I guess so. I don't use this service myself, so I don't know.

rijotech6 years ago

I'm facing the same issue and to be honest this is to my opinion one of the coolest way to use SMS notification on traccar since you could add any number from any country in the whole world.

David4 years ago

Hello Gerardo Morales, did you solve the problem? Could you help me how you solved it if it were like that? Thanks