You have no favorites... yet!
Use the Library tree on the left to select a Choreo to call from your gateway device.
Use the Library tree on the left to select a Choreo to call from your edge device via the gateway.
Library . Google . Gmailv2 . Messages . InsertMessage
Directly inserts a message into a user's mailbox. Does not send a message.
/*
TembooTask class placeholder
*/
/*
TembooTask header placeholder
*/
Since you've changed your device configuration, you'll need to tell us about this new device.
This feature is in experimental mode - pricing coming soon.
Send your code straight to a GitHub repository.
Your code will be visible by others in your repos. Keep credentials private by saving a Profile or commit code with Placeholder inputs.
The following files will be added to this repo:
You'll be able to edit and share your code from TI's CCS Cloud IDE.
The following will be sent to CCS Cloud:
/*
Your auto-generated code will appear here once you've configured your device above.
*/
/*
A header file containing your Temboo account information will appear here once you've
configured your device above.
*/
/*
Please log in to generate proxy server code for use with the JavaScript SDK.
*/
This Choreo directly inserts a message into a user's mailbox. This Choreo does not send a message. It is often used when you need to send emails to yourself (for the purposes of alerts or notifications). The Messages.SendMessage Choreo will put messages directly in the SENT folder, so if you need to send emails to your own inbox, use this Choreo, specifying ["INBOX"] for the LabelIDs input. The documentation for this Gmail resource can be found here.
Note: this method requires that you request one of the following scopes during the OAuth process:
https://mail.google.com/ https://www.googleapis.com/auth/gmail.modify
The Fields input can be used to reduce the number of fields returned in the response. The syntax for using this parameter is loosely based on XPath. Below are some points to remember when using this input:
Here is an example of acceptable inputs:
ClientID: {YOUR CLIENT ID}
ClientSecret: {YOUR CLIENT SECRET}
RefreshToken: {YOUR REFRESH TOKEN}
To: John <john@temboo.com>
From: John <john@temboo.com>
MessageBody: Hey, this is a test
Subject: Message from Temboo
LabelIDs: ["INBOX"]
The following is a sample of the JSON information returned by this Choreo:
{ "id": "1474b44bca725167", "threadId": "1474b35a99cc6264", "labelIds": [ "SENT", "INBOX" ] }
https://ACCOUNT_NAME.temboolive.com/callback/google
© 2025 Temboo, Inc Privacy Terms