user892043
user892043

Reputation: 17

How to Insert a JSON fomat message into gmail using gmail api

We are able to insert the raw format mails into gmail using gmail API.

We want to insert the JSON format message into gmail. None of the messages.insert() support this.

Is there a way around..?

Google developers of gmail-api, will this be supported in the future updates of api..?

Upvotes: 0

Views: 4095

Answers (1)

ztan
ztan

Reputation: 6921

Why do you want to insert the JSON file back? JSON is just the response from your request method. If you want to insert the JSON file, you need to upload it as an attachment.

You can not turn some properties of the messages resource into your request parameters. You have to use the required parameters specified in this document. So, you can only use userId, uploadType and internalDateSource as the parameters for your insert request.

Upvotes: 1

Related Questions