SMS Gateway Me

Gerardo Morales5 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 Tananaev5 years ago

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

Gerardo Morales5 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 Tananaev5 years ago

Yes, you have to remove square brackets.

Gerardo Morales5 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 Tananaev5 years ago

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

rijotech5 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.

David3 years ago

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