google-schemas

access delegated mail folder with gmail api

 ̄綄美尐妖づ 提交于 2019-12-02 13:10:25
let's say there are alice@gmail.com and bob@gmail.com. Alice has delegated her account to Bob. When I authenticate with Bob and try to list Alice inbox using the REST interface I get a 403 error: bob@gmail.com does not have privileges to alice@gmail.com mailbox. The URL used to query the inbox is: www.googleapis.com/gmail/v1/users/alice@gmail.com/messages When I use bob@gmail.com (or me) as userId there is no problem. How do I access Alice's account? Greetings You would need to get alice's consent and oauth token to access alice's account through the API--delegation is not supported like it is

RFC822 Message-Id in new Gmail API

旧城冷巷雨未停 提交于 2019-12-02 06:40:08
We are trying to set manually the RFC822 Message-Id when sending emails using the gmail api. We have tested but seen that Gmail overrides our value. Do you know if there is a reason for this? Can we do something for this? Yes the Message-Id is always set for mail sending to be the proper format for outgoing Gmail mail, the same format as the web interface. What exactly is reason for needing to specify your own value instead of using either the message.id value returned during send for your own identifier or the final Message-Id header? 来源: https://stackoverflow.com/questions/25749488/rfc822

How to send structured email markup using Gmail API and Javascript?

不羁的心 提交于 2019-12-02 04:58:23
I'm trying to build a Javascript app that uses Gmail's API to send emails (to myself) including the structured data needed for Gmail's Inbox to recognise a hotel reservation. The goal is to be able to enter details about the reservation in an HTML form and have the app send me an email than Inbox then recognises as a hotel reservation and adds a Trip bundle to my inbox. I followed a worked example, here , that uses Google Apps Scripts to send emails from my account to myself. The script pulls the body from a file as html, including the necessary structured data in JSON format. This works fine,

Sending email multipart/signed (RFC 3156) via Gmail APIs

早过忘川 提交于 2019-12-01 08:27:51
Try to build a Message in compliance with RFC3156 [0], and send it via Gmail APIs (I'm using the python client implementation). What I get is: in my Gmail box, the message is correctly sent (I see exactly the message I built before)· What my receivers get is: a "multipart/mixed" message with the same payload of the message I sent. It seems, at some point, Gmail changes my Content-Type ... is this true? As workaround, I'm using a SMTP connection (which acts like I expect, sends the message correctly), but in the future I would like to avoid this step in favor of a pure Gmail APIs application.

Sending email multipart/signed (RFC 3156) via Gmail APIs

断了今生、忘了曾经 提交于 2019-12-01 04:12:31
问题 Try to build a Message in compliance with RFC3156 [0], and send it via Gmail APIs (I'm using the python client implementation). What I get is: in my Gmail box, the message is correctly sent (I see exactly the message I built before)· What my receivers get is: a "multipart/mixed" message with the same payload of the message I sent. It seems, at some point, Gmail changes my Content-Type ... is this true? As workaround, I'm using a SMTP connection (which acts like I expect, sends the message

Can't get gmail one click confirm action button working

假装没事ソ 提交于 2019-12-01 00:37:16
I am following the guidelines as described here https://developers.google.com/gmail/schemas/reference/one-click-action But It's just wont appear for me. As described here Self testing You can easily test if your markup is working correctly end-to-end by sending emails with schemas to your Gmail account. All emails where the sender and the recipient are the same account ignore the registration requirements and can be used for self-testing. I am using my same gmail address in both to and from address like below GradeCard gc = new GradeCard("105106265", "BTS"); var m = new UserMailer()

Gmail API access using Android

非 Y 不嫁゛ 提交于 2019-11-30 11:59:56
I am trying to access the Gmail API using an Android application. I have successfully requested and received an access token using all available scope combinations. But it seems that every time I actually try to use the Gmail API command I am getting a 403 exception reading: Access not configured please use Google developers console to activate the api... Needless to say the API is activated and a client key was created using the correct package name & sha1 code. Same client ID works well with Google Plus features. Anyone having this issue or succeeded in connecting to the Gmail api from

Unable to test the GMail custom actions

丶灬走出姿态 提交于 2019-11-28 13:11:55
I have been trying to test GMail actions for a few days but it does not seem to work. Since I am not registered I use the little piece of Java code below to send an email from myself to myself using GMail's smtp servers. The message's body is a direct copy from the documentation. The Apps Script version works, though. final String username = "david.hatanian@gmail.com"; final String password = "X"; Properties props = new Properties(); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.starttls.enable", "true"); props.put("mail.smtp.host", "smtp.gmail.com"); props.put("mail.smtp.port",

Email markup-Gmail modifying the <script> tag to add extra string “3D”

孤者浪人 提交于 2019-11-28 00:59:47
I am using Ruby on Rails to generate the email. As mentioned in the Email markup docs , i modified my (*.html.haml) templates to include the schema for Email markup . Below code is from my mailer template: %script{ type: "application/ld+json" } { "@context" : "http://schema.org", "@type" : "FoodEstablishmentReservation", "reservationNumber" : "#{reservation.id}", ... } I also modified the sender and receiver of the email to the same email id as mentioned here for testing the schema in development mode. When i receive the email in my Gmail inbox, and i don't see anything different from before.

Unable to test the GMail custom actions

家住魔仙堡 提交于 2019-11-27 07:40:13
问题 I have been trying to test GMail actions for a few days but it does not seem to work. Since I am not registered I use the little piece of Java code below to send an email from myself to myself using GMail's smtp servers. The message's body is a direct copy from the documentation. The Apps Script version works, though. final String username = "david.hatanian@gmail.com"; final String password = "X"; Properties props = new Properties(); props.put("mail.smtp.auth", "true"); props.put("mail.smtp