Need help with Gmail API - Creating draft message

I would like to allow a user to create a draft in the gmail account with these fields: To, Subject, Message. I have successfully setup the API connector to authenticate the gmail user.

Google’s documentation says I must do the following:

  1. Create a MIME message that complies with RFC 2822.
  2. Convert the message to a base64url encoded string.
  3. Create a draft, setting the value of the drafts.message.raw field to the encoded string.

Anyone have any guidance on these steps?

@jarrad are you familiar with this?

hey @stephencharles, I am, see

Included Actions:
Get a Message,
Create Draft,
Delete Message Forever,
List Messages,
List Threads,
Send Text Email,
Message to Trash,
Get Message Attachment,
Get Message Attachment as File,
Get Message Attachment as Image,
UnTrash Message,
Thread to Trash,
UnTrash Thread,
Delete Thread Forever,
List Labels,
Create Label,
Modify Label,
Delete Label,
Modify Message,
Modify Thread,
Get a Thread,
Get Autoforwarding,
Get IMAP Settings,
Get POP Settings,
Get Vacation Responder,
Get Autoforwarding Addresses,
Get Users Profile,
Stop Push Notices,
List Filters,
Send HTML Email,
Send HTML Email 2 Attachments,
Send HTML Email 1 Attachment,

** Number of attachments can be as many as needed - just let me know how many and i will add it.
** If you need a “Custom” version feel free to get in touch.

Cheers.