I'm having trouble sending a json request to the gmail api. I am able to access the scoop https://www.googleapis.com/auth/gmail.send which allows me to access the sending methods.
In the google documentation they state that the rest needs to have this data below. https://developers.google.com/gmail/api/reference/rest/v1/users.messages
But I'm not getting to fill them, what to put in them? Has anyone ever used the api via rest sending just a json?
I researched here on the stack but I didn't find anyone with this difficulty. And on google documentation has no examples.
{
"id": string,
"threadId": string,
"labelIds": [
string
],
"snippet": string,
"historyId": string,
"internalDate": string,
"payload": {
object (MessagePart)
},
"sizeEstimate": integer,
"raw": string
}