how to get email label from email id with gmail API? - google-api

i have a problem how to get label email (promotions, updates, forums etc) with Gmail API with low cost computational.
my app used IMAP-idle for getting a new email.
a was search and get that IMAP not support label (promotions, update etc)
the other way is using Gmail API
i know i can get a list of email id by label
but that too much computational
'new id from IMAP -> search that id in every list of label (4 label)->get the label'
it's that possible to get the label of the message with one call?
thanks

In the gmail web app you can search for lables label:friends in the Gmail api you can also search for messages
GET https://www.googleapis.com/gmail/v1/users/me/messages?q="label:friends"
the message.list method will then return all the messages within that label. If you have the message id which i am not sure is the same from imap to the gmail api you then you can do a message.get which will return the label as well

Related

I want to use Image tracker in my Emails to track recipients who opened the mail or not. I use mail merge on outlook, so how can I put tracking image?

We do multiple email marketing activities to numerous recipients every day. Thus, I was looking forward to track how many recipients have opened my email. My development team has given me an API, through which I can generate unique image links for all the recipients and send them through mail merge field. Currently, when I am sending emails to recipients with unique image links, the image is rendering in the email content but I don't get any insight in my backend API.
Usually, I use Mail Merge on Word to run the campaigns. And I use Microsoft Outlook as email operator.
CAN ANYONE PLEASE HELP ME ON HOW TO INSERT A TRACKING IMAGE IN MY MAIL CONTENT ON WORD, SO THAT IF ANYONE OPENS THE MAIL, I GET HIS/HER DETAILS IN MY BACKEND DATABASE.
I tried to add the image in my mail content through the "IncludeImage" command on word and in the file URL I called the merge field from the connected datasheet. But when I am running the campaigns the image is appearing but I am not getting any tracking in my backend database.

Outlook Graph API not receiving groups

What I am trying to achieve -
When I call message API, it returns the group address to which mail is sent, I want to get the members of the group, And for that I believe I need group Id, so I am using the groups API mentioned below https://graph.microsoft.com/v1.0/groups
But this API returns an empty list to me.
Note: email I using is #outlook.com, not xyz.com.
The Microsoft graph API doesn't support personal accounts as you can see the below image. You should have a Work account to get the group details. You were able to get the messages because it supports personal accounts to read messages from your mailbox.

Is it possible to customize notifications of calendar invites sent with the Google Calendar API?

I'm trying out the events.insert method of the Google Calendar API (https://developers.google.com/calendar/v3/reference/events/insert) to send calendar invites. With sendNotifications=True, the email I receive is a 'standard' GMail calendar invite (see below), in which only the title, description, and reminders are customized (see below).
I was wondering if there is any way to customize this email to include branding, for example? As far I can tell, there isn't any, but perhaps I have overlooked something?
There is no way to customize the emails I believe. One option to get custom emails is to set sendNotifications=false and instead send your own invitation emails using the Gmail API for example.

How to download many email attachments from gmail

I have a device that sends daily statistics as an attachment to an email address at gmail. A filter identifies the sender and sequesters the mails into a folder in the mailbox. Currently ~2000 emails have accumulated. I need to download these attachments so the data can be aggregated and analyzed. I supposed I could write a macro to move the mouse, click the right places on the screen, etc. but was wondering if there is a programmatic way to simply download all the attachments from all the emails in a folder.
You can use Gmail API to retrieve attachments:
https://developers.google.com/gmail/api/v1/reference/users/messages/attachments/get#examples

Google Play email address for users who left a comments

Is any way to get an email address for users who left a comments to a certain app at Google Play store ?
Or may be there is some way to get a user email address by Google Plus user id ?
not possible and its on purpose to prevent spam email harvests.
You would need to add them on google+ to your circles. then you can send hangouts and even email them by typing their google+ name in web gmail.
see https://support.google.com/mail/answer/3294854

Resources