lib/nylas/resources/drafts.rb in nylas-6.0.0.beta.2 vs lib/nylas/resources/drafts.rb in nylas-6.0.0.beta.3
- old
+ new
@@ -85,7 +85,18 @@
path: "#{api_uri}/v3/grants/#{identifier}/drafts/#{draft_id}"
)
[true, request_id]
end
+
+ # Send an draft.
+ #
+ # @param identifier [String] Grant ID or email account from which to send the draft.
+ # @param draft_id [String] The id of the draft to send.
+ # @return [Array(Hash, String)] The sent message draft and the API Request ID.
+ def send(identifier:, draft_id:)
+ post(
+ path: "#{api_uri}/v3/grants/#{identifier}/drafts/#{draft_id}"
+ )
+ end
end
end