@@ -102,6 +102,9 @@ class Config(object):
102
102
FIRETEXT_API_KEY = os .getenv ("FIRETEXT_API_KEY" )
103
103
FIRETEXT_INTERNATIONAL_API_KEY = os .getenv ("FIRETEXT_INTERNATIONAL_API_KEY" , "placeholder" )
104
104
105
+ # Spryng API key
106
+ SPRYNG_API_KEY = os .environ .get ("SPRYNG_API_KEY" )
107
+
105
108
# Prefix to identify queues in SQS
106
109
NOTIFICATION_QUEUE_PREFIX = os .getenv ("NOTIFICATION_QUEUE_PREFIX" )
107
110
@@ -154,7 +157,7 @@ class Config(object):
154
157
CHECK_PROXY_HEADER = False
155
158
156
159
# these should always add up to 100%
157
- SMS_PROVIDER_RESTING_POINTS = {"mmg" : 51 , "firetext" : 49 }
160
+ SMS_PROVIDER_RESTING_POINTS = {"mmg" : 0 , "firetext" : 0 , "spryng" : 100 }
158
161
159
162
NOTIFY_SERVICE_ID = "d6aa2c68-a2d9-4437-ab19-3ae8eb202553"
160
163
NOTIFY_USER_ID = "6af522d0-2915-4e52-83a3-3690455a5fe6"
@@ -275,12 +278,14 @@ class Config(object):
275
278
},
276
279
"create-nightly-notification-status" : {
277
280
"task" : "create-nightly-notification-status" ,
278
- "schedule" : crontab (hour = 0 , minute = 30 ), # after 'timeout-sending-notifications'
281
+ # after 'timeout-sending-notifications'
282
+ "schedule" : crontab (hour = 0 , minute = 30 ),
279
283
"options" : {"queue" : QueueNames .REPORTING },
280
284
},
281
285
"delete-notifications-older-than-retention" : {
282
286
"task" : "delete-notifications-older-than-retention" ,
283
- "schedule" : crontab (hour = 3 , minute = 0 ), # after 'create-nightly-notification-status'
287
+ # after 'create-nightly-notification-status'
288
+ "schedule" : crontab (hour = 3 , minute = 0 ),
284
289
"options" : {"queue" : QueueNames .REPORTING },
285
290
},
286
291
"delete-inbound-sms" : {
@@ -416,6 +421,7 @@ class Config(object):
416
421
# these environment vars aren't defined in the manifest so to set them on paas use `cf set-env`
417
422
MMG_URL = os .environ .get ("MMG_URL" , "https://api.mmg.co.uk/jsonv2a/api.php" )
418
423
FIRETEXT_URL = os .environ .get ("FIRETEXT_URL" , "https://www.firetext.co.uk/api/sendsms/json" )
424
+ SPRYNG_URL = os .environ .get ("SPRYNG_URL" , "https://rest.spryngsms.com/v1/messages" )
419
425
SES_STUB_URL = os .environ .get ("SES_STUB_URL" )
420
426
421
427
AWS_REGION = "eu-west-1"
@@ -446,8 +452,6 @@ class Config(object):
446
452
######################
447
453
# Config overrides ###
448
454
######################
449
-
450
-
451
455
class Development (Config ):
452
456
DEBUG = True
453
457
SQLALCHEMY_ECHO = False
0 commit comments