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