mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Make sms code task use a reference too
- makes the fire text callback behave in consistent way
This commit is contained in:
@@ -51,20 +51,16 @@ class FiretextClient(SmsClient):
|
||||
def get_name(self):
|
||||
return self.name
|
||||
|
||||
def send_sms(self, to, content, notification_id=None):
|
||||
def send_sms(self, to, content, reference):
|
||||
|
||||
data = {
|
||||
"apiKey": self.api_key,
|
||||
"from": self.from_number,
|
||||
"to": to.replace('+', ''),
|
||||
"message": content
|
||||
"message": content,
|
||||
"reference": reference
|
||||
}
|
||||
|
||||
if notification_id:
|
||||
data.update({
|
||||
"reference": notification_id
|
||||
})
|
||||
|
||||
start_time = monotonic()
|
||||
try:
|
||||
response = request(
|
||||
|
||||
Reference in New Issue
Block a user