Drafts¶
The Draft class is TinyAPI’s interface for creating, editing, and sending messages.
Usage¶
-
class
tinyapi.Draft(session, message_id=None)¶ A draft message.
-
fetch()¶ Fetch data corresponding to this draft and store it as
self.data.
-
save()¶ Save current draft state.
-
subject¶ Get or set the subject line.
-
body¶ Get or set the draft’s body. Expects HTML.
-
public_message¶ Get or set whether this message should be listed publicly.
Must be
TrueorFalse.
-
send_preview()¶ Send a preview of this draft.
-
send()¶ Send the draft.
-
delete()¶ Delete the draft.
-