- Create a new user for this script in SMSEagle webGUI > menu Users.
- When the user is saved, edit its permissions by clicking “Access to API”:
- a) check “APIv1”
- b) click “Generate new token”
This will generate a new API access token for your SMSEagle. This API token will be referenced below as
SMSEAGLEAPITOKEN. Replace
SMSEAGLEAPITOKEN in script below with your value.
- In the same menu, add the permissions for APIv1 methods you want to use:
- send_sms => sms
- ring_call => ring
- tts_call => tts
- tts_adv_call => tts_adv