def send_message(self, to=None, msg=None):
url = self.root_url + "<STR_LIT>"<EOL>values = {}<EOL>if to is not None:<EOL><INDENT>values["<STR_LIT:to>"] = to<EOL><DEDENT>if msg is not None:<EOL><INDENT>values["<STR_LIT>"] = msg<EOL><DEDENT>return self._query(url, values)<EOL>
method to send a message to a user

            Parameters:
                to -> recipient
                msg -> message to send