How to make user browser download gmail attachment directly from GMAIL? - gmail

How to make user browser download gmail attachment directly from GMAIL when accessing 3rd party web app which can get the attachment information using gmail api?
Here's the scenario:
1) There's web application with server side code that can fetch emails using GMail API.
2) If the message has attachment and the user clicks download attachment button I want the user browser to download the attachment directly from GMail without having the web app download it first to server and then send it to the user browser.
So basicly I'm asking how to create URL that points to gmail and makes the user browser get the attachment from there. Does this make any sense?
We can assume the user browser can/is authenticated to GMail.
Tried finding possible solutions but failed.

There is no way to make an URL to an attachment using the Gmail API. CORS is enabled however, so you could use the access_token on the front end to download the attachment right away, but exposing the access_token to the client comes with a set of security risks you will have to take into consideration.

Related

Link to download the submitted Powerform

How to get the link to download the submitted powerform. The PDF file will be sent to the email and it is downloadable from the docuSign admin also. But I need to provide a link to download the submitted file for an admin user on my website. is it possible?
Yes, it's possible, but you will have to build a web app.
The web app you built will have and endpoint that takes an envelopeID and returns back a PDF. It will call the DocuSign eSignature REST API every time someone is requesting to download an envelope and will provide it.
You can use JWT to authenticate your web app impersonating the administrator of this account so you always have access to download any envelope.
Note that if you build something like this, you're exposing the envelopes in your account to anyone that knows the URLs , so it's not recommended to do so unless you know your account is only used for non-sensitive documents.

Embedded MailChimp Forms - Misbehaving when opened in Instagram Browser

I'm using an embedded MailChimp sign-up form.
Javascript is disabled on this form and I've set the page to redirect to a specific URL after a successful sign up. This works great when you sign up using a web browser.
However, when you open the website from instagram, the site renders in Instagram's own browser view. When you add your email address and click sign up, you are then redirected to a MailChimp hosted sign up page and have to enter your email address again.
Does anyone know of a way to prevent this?

Single Sign on for DocuSign

We have an application that we currently open the DocuSign console in an IFrame. The issue is that currently we are having to open a new tab, log on to DocuSign and then the user can see the console in the Iframe with documents. What is the most common way people are using to automatically logon to DocuSign through their applications ? I see an SSO documentation but it says that it looks at the persons email domain to authenticate them.... our users will have many different email domains.
Your application can use the API to get the console view for the user. The session will correspond to the user credentials in your API request and will skip the logon step. From that API call you get a URL back that you can embed in the iFrame. E.g.: POST to https://demo.docusign.net/restapi/v2/accounts/55555/views/console and you get back a URL like this:
{
"url": "https://demo.docusign.net/Member/StartInSession.aspx?StartConsole=1&t=00000000-0000-0000-0000-000000000000&accountid=00000000-0000-0000-0000-000000000000"
}
Edit: If you need the "sending view" (sometimes called "the tagger") for an envelope then you can POST using a URL like this:
https://{server}/restapi/{apiVersion}/accounts/{accountId}/envelopes/{envelopeId}/views/sender
e.g.
https://demo.docusign.net/restapi/v2/accounts/12345/envelopes/f6e755d3-bbcf-44e5-b276-8ae626f97220/views/sender

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.

Is possible to display a link to my website in gmail inbox

Is possible to display a link to my website in gmail inbox, I have a google business account.
I developed an API that first check user login, and then directing to a website, i want to display its link in gmail inbox
You can do this via Gmail Sidebar gadgets.
To create a gadget with a simple link, you just create a gadget spec and make it available via a public Url. There is a simple editor for Gadgets.
Gmail gadgets can make requests to external services via makeRequest() function. If you need user authentication then your gadget must do OAuth authentication.

Resources