#NEWLINE# def message_create( self , originator , recipients , body , params = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# 'Create a new message.' #NEWLINE# if ( type ( recipients ) == list ) : #NEWLINE# #INDENT# recipients = ',' . join ( recipients ) #NEWLINE# #UNINDENT# params . update ( { #NEWLINE# #INDENT# 'originator' : originator , #NEWLINE# 'body' : body , #NEWLINE# 'recipients' : recipients , #NEWLINE# #UNINDENT# } ) #NEWLINE# return Message ( ) . load ( self . request ( 'messages' , 'POST' , params ) )