File tree Expand file tree Collapse file tree 5 files changed +40
-3
lines changed Expand file tree Collapse file tree 5 files changed +40
-3
lines changed Original file line number Diff line number Diff line change 1+ # 1.2.0
2+
3+ - Add more SMS options
4+
15# 1.1.0
26
37- Add voice
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ configuration in `/opt/stackstorm/configs/` by running `st2ctl reload --register
2525## Actions
2626
2727- ** send_sms** - Action which sends SMS. Multiple recipients can be separated by comma.
28- ` st2 run sms77.send_sms to="01716992343,491771783130" text=HI2U from=StackStorm `
28+ ` st2 run sms77.send_sms to="01716992343,491771783130" text=HI2U from=StackStorm flash=true performance_tracking=true sandbox=false no_reload=true label=CustomLabel foreign_id=ForeignID delay="2021-12-30 12:00" `
2929
3030- ** send_voice** - Action which makes a text-to-speech call using sms77 API.
3131 ` st2 run sms77.send_voice to=+491716992343 text='Dear sir or madam' from=+13134378004 xml=false `
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ def on_error(ex):
1414 self .logger .error (error_msg )
1515 raise Exception (error_msg )
1616
17+ kwargs ['debug' ] = kwargs .pop ('sandbox' , False )
18+
1719 try :
1820 res = self .client .sms (to , text , kwargs )
1921 if int (res ) not in [100 , 101 ]:
Original file line number Diff line number Diff line change @@ -4,11 +4,38 @@ enabled: true
44entry_point : send_sms.py
55name : send_sms
66parameters :
7+ delay :
8+ description : Date/time for time relayed dispatch. Expects a Unix timestamp or a date/time string formatted as yyyy-mm-dd hh:ii.
9+ position : 9
10+ type : string
11+ flash :
12+ description : Flash SMS get displayed directly in the receivers display.
13+ position : 3
14+ type : boolean
15+ foreign_id :
16+ description : Custom data returned in DLR callbacks.
17+ position : 8
18+ type : string
719 from :
820 description : Caller ID. Max 16 numeric or 11 alphanumeric characters. Example +14151234567.
921 position : 2
10- required : false
1122 type : string
23+ label :
24+ description : Custom label for sorting analytics.
25+ position : 7
26+ type : string
27+ no_reload :
28+ description : Enables sending duplicate messages (text, type and recipient alike).
29+ position : 6
30+ type : boolean
31+ performance_tracking :
32+ description : Enable performance tracking for URLs found in the message text.
33+ position : 4
34+ type : boolean
35+ sandbox :
36+ description : Debug - act like a sandbox not sending SMS. Useful for testing if the API works.
37+ position : 5
38+ type : boolean
1239 text :
1340 description : Body of the message.
1441 position : 1
@@ -19,4 +46,8 @@ parameters:
1946 position : 0
2047 required : true
2148 type : string
49+ ttl :
50+ description : Time-to-live - message validity period specified in minutes.
51+ position : 10
52+ type : integer
2253runner_type : python-script
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ name: sms77
66ref : sms77
77python_versions :
88 - " 3"
9- version : 1.1 .0
9+ version : 1.2 .0
You can’t perform that action at this time.
0 commit comments