I make a simple request step-by-step in Gmail API.
According to all instructions I made this call:
var request = gapi.client.gmail.users.messages.send({
'userId': 'me',
"payload": {
"headers": [
{
"name": "To",
"value": "########@gmail.com"
}
]},
'raw': 'SEVMTE8gTVkgREVBUiBGUklFTkQ='
});
request.then(()=>{console.log('yep')})
But receive an error:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "invalidArgument",
"message": "Recipient address required"
}
],
"code": 400,
"message": "Recipient address required"
}
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…