google-email-settings-api

How to authenticate with Google Email Settings API using service account oauth2 Python client?

为君一笑 提交于 2019-12-10 10:17:47
问题 I'm using Python 2.6 and the client library for Google API which I am trying to use to get authenticated access to email settings : f = file(SERVICE_ACCOUNT_PKCS12_FILE_PATH, 'rb') key = f.read() f.close() credentials = client.SignedJwtAssertionCredentials(SERVICE_ACCOUNT_EMAIL, key, scope='https://apps-apis.google.com/a/feeds/emailsettings/2.0/', sub=user_email) http = httplib2.Http() http = credentials.authorize(http) return discovery.build('email-settings', 'v2', http=http) When I execute

Failed sending mail through google api

假如想象 提交于 2019-12-08 06:40:16
问题 I've been trying to send emails using Google's Gmail API and I kept getting the following error: The API returned an error: Error: 'raw' RFC822 payload message string or uploading message via /upload/* URL required I did the setup using the starter code Google gave for NodeJS (documentation). const google = require('googleapis'); const googleAuth = require('google-auth-library'); const Base64 = require('js-base64').Base64; // ... // create the email string const emailLines = []; emailLines

New GMail API Signatures Settings

℡╲_俬逩灬. 提交于 2019-12-06 09:09:34
问题 I've tested the EMail Settings API with many third party tools, and it seems to strip inlined embedded images (Base64), however the WebGUI can create inline embedded images in signatures with some browsers. Has this been improved in GMAIL API Signatures? Will the new API accept (or continue to strip) inlined embedded images? 回答1: Gmail does not support inline image embedding for signatures, only image linking. In general, the API doesn't provide any capabilities beyond what the UI already

How to authenticate with Google Email Settings API using service account oauth2 Python client?

∥☆過路亽.° 提交于 2019-12-06 02:46:51
I'm using Python 2.6 and the client library for Google API which I am trying to use to get authenticated access to email settings : f = file(SERVICE_ACCOUNT_PKCS12_FILE_PATH, 'rb') key = f.read() f.close() credentials = client.SignedJwtAssertionCredentials(SERVICE_ACCOUNT_EMAIL, key, scope='https://apps-apis.google.com/a/feeds/emailsettings/2.0/', sub=user_email) http = httplib2.Http() http = credentials.authorize(http) return discovery.build('email-settings', 'v2', http=http) When I execute this code , I got the follwowing error: UnknownApiNameOrVersion: name: email-settings version: v2 What

New GMail API Signatures Settings

自闭症网瘾萝莉.ら 提交于 2019-12-04 16:47:00
I've tested the EMail Settings API with many third party tools, and it seems to strip inlined embedded images (Base64), however the WebGUI can create inline embedded images in signatures with some browsers. Has this been improved in GMAIL API Signatures? Will the new API accept (or continue to strip) inlined embedded images? Gmail does not support inline image embedding for signatures, only image linking. In general, the API doesn't provide any capabilities beyond what the UI already provides. 来源: https://stackoverflow.com/questions/38257996/new-gmail-api-signatures-settings

How to use the Google Email Settings API and the OAuth2 for Apps Script Library to set email signatures for users in a Google Apps domain

余生长醉 提交于 2019-11-29 02:45:15
This is my first time using the "Answer your own question" feature. I hope I'm doing this right. My Title triggered a warning that my question looks subjective and will probably be deleted. I searched the site and didn't find any questions that matched the level of detail that I put into my response below, so I'm just trying to help out some fellow programmers by posting this. As the administrator of a Google Apps domain, how do you use the Google Email Settings API with OAuth 2 to programmatically set the email signatures of users on your domain in Google Apps Script? I experienced some

Enable mail forwarding using a Google Apps Service Account

半城伤御伤魂 提交于 2019-11-27 07:22:14
问题 On April 20, 2015, several Google Apps APIs are being discontinued, including the Provisioning API(gdata). In my Python scripts, I am using a Service Account and OAuth 2.0, instead of ClientLogin, and the replacement API: Directory API. However, I am unable to find a way to enable mail forwarding using the new API, and all of Google's Python documentation for mail forwarding explains how to do it using ClientLogin, which is also being discontinued on April 20th. Relevant Info: I have a