I am trying to upload an attachment which is greater than 5MB size, hence using resumable upload option of the gmail API using the REST API option.(https://developers.google.com/gmail/api/guides/uploads#resume-upload). In the API spec it is not clear on what should be the request body of the resumable upload request and the request body of the upload URI. I have tried all possible ways of adding parameters to the body of the request, but couldn't succeed in attaching the file to the email. has anyone able to successfully attach files using the resumable upload api, Also should the attachment file needs to be uploaded as base64 encoded ?
developer guide doesn't provide much information, so unable to get a working solution. Can anyone provide a snippet of request of the resumable upload request and the request of upload URI ?