def display_message(
        self, subject='Find My iPhone Alert', message="This is a note",
        sounds=False
    ):
        """ Send a request to the device to play a sound.

        It's possible to pass a custom message by changing the `subject`.
        """
        data = json.dumps(
            {
                'device': self.content['id'],
                'subject': subject,
                'sound': sounds,
                'userText': True,
                'text': message
            }
        )
        self.session.post(
            self.message_url,
            params=self.params,
            data=data
        )
def display_message ( self , subject = 'Find My iPhone Alert' , message = "This is a note" , sounds = False ) : data = json . dumps ( { 'device' : self . content [ 'id' ] , 'subject' : subject , 'sound' : sounds , 'userText' : True , 'text' : message } ) self . session . post ( self . message_url , params = self . params , data = data )
Send a request to the device to play a sound.

        It's possible to pass a custom message by changing the `subject`.