Attempting to use the Gmail API for sending emails. Utilizing Postman as a tool to test requests and obtain correct code for web application integration, encountering an error:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "invalidArgument",
"message": "Recipient address required"
}
],
"code": 400,
"message": "Recipient address required"
}
}
POST request link being used:
https://www.googleapis.com/upload/gmail/v1/users/me/messages/send
Header information includes:
Authorization: Bearer ya29.xxxxxxxxx
Content-Type: message/rfc822
Request body details:
{
"raw" : "RnJvbTogQWxle......"
}
Testing through Google's own documentation API testing sidebar works but using Postman is proving challenging. Seeking assistance for working with Postman and Gmail API for proper AJAX call formatting. Any guidance would be appreciated.