gmail message id to url mapping - gmail

I am using gmail API
https://developers.google.com/gmail/api/v1/reference/users/messages/get
to get messages
However, the API require "id:The ID of the message to retrieve."
Is there a way to get this message id from the gmail web interface?
Is there a mapping for FMfcgxvxBXrzJnSqVwmZKSZNmvSNNrQb to the messageID from the API?
FMfcgxvxBXrzJnSqVwmZKSZNmvSNNrQb is the unique message url obtained when the email is opened from the browser.
https://mail.google.com/mail/u/0/#search/FMfcgxvxBXrzJnSqVwmZKSZNmvSNNrQb

Related

Azure Logic App Outlook Connector has wrong Message ID

The Azure Logic App Outlook Connector provides several fields of the current mail, such as MessageID.
Now this MessageID doesn't match the id seen in the header details in Outlook or in the receiving email client.
So here's the MessageID found in Outlook Connector:
AAMkADdhZjg4ODViLTc1OGUtNGRjNC04ZDliLTIwZTg2YzNkZTMwOQBGAAAAAABheCsi2Dw6RL6VGEzI0_HnBwAcT26EfBI9QZDS3n-XAJGgAAAA789EAABtmqUPlGrSTqeUxgoZ3vaxAABn3JRvAAA=
and here's the id found in Outlook or the receiving email client:
<BL0PR210B46864401MB0900339BFCE05D5297C86#BL0PR2101MB0900.namprd21.prod.outlook.com>
Is there any way to related these two ids? We've already tried base64 encoding..
Have you looked at the Internet Message ID option

DocuSign : Different Account Id formats in account information api and webhook notification?

We are using OAuth2 to authenticate the users to DocuSign, after the authentication we use the AccountsApi call to get account information to get the account id of the logged in user. This is in the form of "ecsddfbfa5-13d2-4e8e-c49e-a214r166b987", so we save this login information. Now, when we receive the webhook notification on completion of an envelope, we get the account id as part of the custom fields and this is in the form of "7657898" (numeric). The issue is that we can't map the notifications with the user that initiated the signing.
One way of ensuring the account ID that you get from DS event notification is the same as the one that was used to login is to do a GET /v2/accounts/{numericAccountId} and compare its response.accountIdGuid with the one you got at login-time (most-likely from GET /oauth/userinfo).
See https://docs.docusign.com/esign/restapi/Accounts/Accounts/get/

How to send email to people via Google Plus API?

According to Google Plus, you can e-mail Google Plus users within your circle: refer this
How can you use the Google Plus API (or Gmail API) to send an e-mail to a user within your circle, given you have their user ID?
If you cannot do this, how can you send them a message via hangouts?
You should follow the official Gmail API reference guide here.
From the docs:
There are two ways to send email using the Gmail API:
You can send it directly using the messages.send method.
You can send it from a draft, using the drafts.send method.
Emails are sent as
base64url encoded strings within the raw property of a message
resource. The high-level workflow to send an email is to:
Create the email content in some convenient way and encode it as a
base64url string. Create a new message resource and set its raw
property to the base64url string you just created. Call messages.send,
or, if sending a draft, drafts.send to send the message.
The arguments you'll need to provide in order to send an email through the API are the following:
Args:
- service: Authorized Gmail API service instance.
- user_id: User's email address. The special value "me"
can be used to indicate the authenticated user.
- message: Message to be sent.

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