Retrieving emails from gmail - gmail

I've been using Oauth for G-mail to get the emails, it's going perfectly until I faced a problem that after following the Goggle playground for Oauth
the last response contained the emails as I want except than that I want the Full content of the email, not only the summery ...
what I'm missing ...?

The example flow there is for using an unread messages feed with an aggregator/RSS-reader software. Google has decided to only include the summary and a URL to view the message on the Gmail website there.
If you want download the message contents you have to fetch them using IMAP. Google also supports IMAP using OAuth authentication.

Related

API call for "Check mail from other accounts > Check mail now"?

Is there an Gmail API call that corresponds to "Check mail from other accounts > Check mail now"?
Neither Gmail API nor Apps Script's GmailApp have a way to force to update the messages from the other accounts pulled with POP3.
There may be an easy way to update those accounts from the app. Asking how to do this may bring people that knows how to do so and may be able to help you (but that know nothing about Gmail API) :)
As a side note, if you don't find a way of doing it, you may request Google to implement a refresh method in their Gmail API.
References
Gmail API resource summary (Gmail API reference)
Class GmailApp (Apps Script reference)
Getting started (Google Issue Tracker documentation)

Is it possible to add custom application data to an email via the Gmail API?

I am currently sending email via the Gmail API using the Google Node SDK. I am successful in doing so, but my application requires that I be able to attach specific identifiers to emails that I send in order to be able to track and process certain events correctly.
I have heard of custom metadata being added to emails sent through other services such as Mailchimp, Postmark, etc so it seems like some sort of standard to be able to do this in email. I however, have not been able to find how to do this via the Gmail API specifically. Is this even possible?
Answer:
No, you cannot add custom application data to messages sent via Gmail API.
Reference:
The corresponding Message resource doesn't include any property for custom metadata.
And the related methods send and insert don't allow this either.
Issue Tracker:
A related feature request was reported in Issue Tracker, I'd suggest you to star it:
Add Custom Metadata to Email Messages via Gmail Api
Workaround:
I'd suggest you to use labels to identify messages.

how can i send a json+ld schema.org email to myself in gmail

gmail recently announced schema.org support for in-app and one-click actions. They note that one can immediately test out the schema by sending an email from oneself to oneself i.e. from x#gmail.com to x#gmail.com (1)
My question is how do i send an email with the json+ld schema.org markup - I can only send text and/or html and if i try to send using mailgun / sendgrid etc. than the email won't be from x#gmail.com
So, how do i test this??
(1) https://developers.google.com/gmail/schemas/registering-with-google
Many options, three that come into my mind right now are:
use the Apps Script Gmail service, as shown in our Apps Script quickstart guide
use App Engine as in the end-to-end example in the documentation
connect to Gmail via SMTP to send emails from there

get detail email info Gmail API

I can able to get the list of unread emails via [https://mail.google.com/mail/feed/atom/] using the Gmail API.
but using that , I can only get a brief info of an email message like ( to, from, subject and summary ).
If I want to get CC, BCC, and attachment info , how can I get using the Gmail API ?
I can't find a way to get that functionality with GMAIL API. So I use IMAP to authenticate with Oauth Token and use IMAP instead.

How to launch a gmail client with a specific email

I have a browser application that retrieves gmail items in inbox using IMAP. I have the 'seqno' and the Message-ID of the email, and can fetch the content. I've created and rendered HTML with that email as a link. What I would like to do is to launch another browser with that email displayed in gmail client.
I noticed that there is no correlation between Gmail's URLs and the Message-ID or 'seqno'. How do I translate my ID into a URL that would launch the right email?
thanks.
I'm not sure you can. However check Gmail's IMAP Extensions, specifically, see if X-GM-MSGID correlates at all with the URLs.

Resources