1NCE SMS API setup help

gibby2 years ago

Following -https://www.traccar.org/http-sms-api/ and looking through the forums, documentation and github. I do not see a way to do https://help.1nce.com/dev-hub/reference/postaccesstokenpost to get the access token needed. It also expires every 60 minutes.

Also, once that is done, the URL for sending messages is: https://api.1nce.com/management-api/v1/sims/{iccid}/sms
Am I able to just add the iccid as an additional attribute to the devices?

Anton Tananaev2 years ago

Out of the box it won't be possible to send a separate request to get a token. Probably the same applies to the URL.

gibby2 years ago

Is there a way to tie a sms script to each device?

Anton Tananaev2 years ago

Do you mean an SMS configuration per device? No, we don't support that.

gibby2 years ago

I think I can accomplish what I want using home assistant to send the commands.

Paul2 years ago

Hi Gibby, did you come up with a solution to this problem?