platypush/plugins/mobile/join/__init__.py
def send_sms(self, device, text: str, number: str = None, contact_name: str = None):
        """
        Send an sms through a mobile device connected to Join

        :param device: Device ID or name, or list of device IDs/names, or group name(s)
        :param text: Text to be sent
        :param number: Phone number
        :param contact_name: Alternatively to the phone number, you can specify a contact name
        """

        assert (number or contact_name) and not (number and contact_name)
        params = {'smstext': text}

        if number:
            params['smsnumber'] = number
        else:
            params['smscontactname'] = contact_name

        return self._send_request(self._push_url, device=device, params=params)

        Send an sms through a mobile device connected to Join

        :param device: Device ID or name, or list of device IDs/names, or group name(s)
        :param text: Text to be sent
        :param number: Phone number
        :param contact_name: Alternatively to the phone number, you can specify a contact name
        
Send an sms through a mobile device connected to Join
Send an sms through a mobile device connected to Join
def send_sms(self, device, text: str, number: str = None, contact_name: str = None):
        assert (number or contact_name) and not (number and contact_name)
        params = {'smstext': text}
        if number:
            params['smsnumber'] = number
        else:
            params['smscontactname'] = contact_name
        return self._send_request(self._push_url, device=device, params=params)
def send_sms ( self , device , text : str , number : str = None , contact_name : str = None ) : assert ( number or contact_name ) and not ( number and contact_name ) params = { 'smstext' : text } if number : params [ 'smsnumber' ] = number else : params [ 'smscontactname' ] = contact_name return self . _send_request ( self . _push_url , device = device , params = params )
Send an sms through a mobile device connected to Join
Send an sms through a mobile device connected to Join
"""
        Send an sms through a mobile device connected to Join

        :param device: Device ID or name, or list of device IDs/names, or group name(s)
        :param text: Text to be sent
        :param number: Phone number
        :param contact_name: Alternatively to the phone number, you can specify a contact name
        """
self
device
Device ID or name, or list of device IDs/names, or group name(s)
Device ID or name or list of device IDs / names or group name ( s )
text
str
Text to be sent
Text to be sent
number
str
None
contact_name
str
Alternatively to the phone number, you can specify a contact name
Alternatively to the phone number you can specify a contact name