platypush/plugins/mobile/join/__init__.py
def send_mms(self, device, file: str = None, text: str = None, subject: str = '',
                 number: str = None, contact_name: str = None, urgent: bool = False):
        """
        Send an MMS 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
        :param file: File attached to the message. Must be a local (to the phone) file or a publicly accessible URL
        :param subject: MMS subject
        :param urgent: Set to True if this is an urgent MMS. This will make the sent message be an MMS instead of an SMS
        """

        assert (number or contact_name) and not (number and contact_name)
        params = {
            'mmssubject': subject,
            'mmsurgent': int(urgent),
        }

        if number:
            params['smsnumber'] = number
        else:
            params['smscontactname'] = contact_name
        if file:
            params['mmsfile'] = file
        if text:
            params['smstext'] = text

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

        Send an MMS 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
        :param file: File attached to the message. Must be a local (to the phone) file or a publicly accessible URL
        :param subject: MMS subject
        :param urgent: Set to True if this is an urgent MMS. This will make the sent message be an MMS instead of an SMS
        
Send an MMS through a mobile device connected to Join
Send an MMS through a mobile device connected to Join
def send_mms(self, device, file: str = None, text: str = None, subject: str = '',
                 number: str = None, contact_name: str = None, urgent: bool = False):
        assert (number or contact_name) and not (number and contact_name)
        params = {
            'mmssubject': subject,
            'mmsurgent': int(urgent),
        }
        if number:
            params['smsnumber'] = number
        else:
            params['smscontactname'] = contact_name
        if file:
            params['mmsfile'] = file
        if text:
            params['smstext'] = text
        return self._send_request(self._push_url, device=device, params=params)
def send_mms ( self , device , file : str = None , text : str = None , subject : str = '' , number : str = None , contact_name : str = None , urgent : bool = False ) : assert ( number or contact_name ) and not ( number and contact_name ) params = { 'mmssubject' : subject , 'mmsurgent' : int ( urgent ) , } if number : params [ 'smsnumber' ] = number else : params [ 'smscontactname' ] = contact_name if file : params [ 'mmsfile' ] = file if text : params [ 'smstext' ] = text return self . _send_request ( self . _push_url , device = device , params = params )
Send an MMS through a mobile device connected to Join
Send an MMS through a mobile device connected to Join
"""
        Send an MMS 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
        :param file: File attached to the message. Must be a local (to the phone) file or a publicly accessible URL
        :param subject: MMS subject
        :param urgent: Set to True if this is an urgent MMS. This will make the sent message be an MMS instead of an SMS
        """
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 )
file
str
File attached to the message. Must be a local (to the phone) file or a publicly accessible URL
File attached to the message . Must be a local ( to the phone ) file or a publicly accessible URL
text
str
Text to be sent
Text to be sent
subject
str
None
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
urgent
bool
Set to True if this is an urgent MMS. This will make the sent message be an MMS instead of an SMS
Set to True if this is an urgent MMS . This will make the sent message be an MMS instead of an SMS