linotp.provider.smsprovider.RestSMSProvider module¶
This is the SMSClass to send SMS via HTTP Post Rest Interface Gateways
- class linotp.provider.smsprovider.RestSMSProvider.RestSMSProvider¶
- Bases: - ISMSProvider,- ConfigParsingMixin- DEFAULT_TIMEOUT = (3, 30)¶
 - loadConfig(configDict)¶
 
- linotp.provider.smsprovider.RestSMSProvider.json_replace(payload, key, value)¶
- in a json document replace a value by a path expression - path expression could be:
- “sender”, “recipients[0].msisdn” or “phones[0]” 
 - Parameters
- payload – the original document, will be modified 
- key – which could be a simple key name or a path expression 
- value – the replacemment value 
 
- Returns
- the modified document with the replaced values