def send(self):
url = (<EOL>"<STR_LIT>"<EOL>+ self._auth[<NUM_LIT:0>]<EOL>+ "<STR_LIT>"<EOL>)<EOL>data = {<EOL>"<STR_LIT>": self.from_,<EOL>"<STR_LIT>": self.to,<EOL>"<STR_LIT>": self.body,<EOL>"<STR_LIT>": self.attachments,<EOL>}<EOL>if self.verbose:<EOL><INDENT>print(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>".format(timestamp())<EOL>)<EOL><DEDENT>try:<EOL><INDENT>resp = requests.post(url, data=data, auth=(self._auth[<NUM_LIT:0>], self._auth[<NUM_LIT:1>]))<EOL>resp.raise_for_status()<EOL><DEDENT>except requests.exceptions.RequestException as e:<EOL><INDENT>exc = "<STR_LIT>".format(e, resp.json()["<STR_LIT:message>"])<EOL>raise MessageSendError(exc)<EOL><DEDENT>self.sid = resp.json()["<STR_LIT>"]<EOL>if self.verbose:<EOL><INDENT>print(<EOL>timestamp(),<EOL>type(self).__name__ + "<STR_LIT>",<EOL>self.__str__(indentation="<STR_LIT>"),<EOL>"<STR_LIT>",<EOL>resp.status_code,<EOL>)<EOL><DEDENT>print("<STR_LIT>")<EOL>return resp<EOL>
Send the SMS/MMS message.
Set self.sid to return code of message.