gmail-api

'observe' on 'MutationObserver': parameter 1 is not of type 'Node'

笑着哭i 提交于 2019-11-28 00:42:56
I am creating a Chrome extension and trying to include a small text beside the SEND button of the gMail compose box. I am using a MutationObserver to know when the compose box window appears. I am doing this by observing an element with class no since the compose box element is created as child of this element (class no ). When the user clicks on the compose button and the compose box window appears, then I place an element beside the SEND button using the .after() method. SEND button class name is .gU.Up . These are the real class names of gMail and pretty weird too. Below is the code I am

How to integrate Gmail login in Android application? [duplicate]

一世执手 提交于 2019-11-28 00:36:00
This question already has an answer here: Enable Gmail login in my application 2 answers Which is the right way to implement Gmail login in my Android application? https://developers.google.com/gmail/api/quickstart/quickstart-java or http://www.javacodegeeks.com/2013/10/google-account-integration-in-android-login-with-gmail.html I want to provide Gmail login for getting user credentials.Somebody please help me. Official guide: Google Login Also look at this very good tutorial with demo. Follow the steps to enable google login from developer console and download the code. AndroidHive Google+

Using Refresh Token Exception { “error” : “invalid_grant” }'

强颜欢笑 提交于 2019-11-28 00:26:57
问题 I've successfully built an application that fetches an access and refresh token. In my script I check if the access token is valid and if not I then use the refresh token to gain access $client->refreshToken($refreshToken); Code in full, $refreshToken = '<REFRESH_TOKEN>'; $client_id = '<CLIENT_ID>'; $client_secret = '<CLIENT_SECRET>'; // Setup infomation $client = new Google_Client(); $client->setClientId($client_id); $client->setClientSecret($client_secret); $client->setAccessType("offline")

How to get the reply message without the original message from the Gmail API

孤人 提交于 2019-11-28 00:09:34
I would like to get the reply message in a thread without the original message. However, when I use either Users.messages: GET or Users.threads: GET, I receive the reply (as desired) with the original message (undesired) as well. See screenshot below code. (This question, as far as I can tell, was also posed here , however I did not find that the proposed solution answers the question and the poster of the proposed solution suggested I start a new question. I tried with Users.threads as Tholle suggests however received the same result.) I'm a noob, so any and all help is greatly appreciated

Gmail API Users.messages: list

眉间皱痕 提交于 2019-11-27 23:57:55
I'm working on email platform (in Objective-C language) and want to fetch some mails using GTMHTTPFetcher and GTMOAuth2Authentication frameworks. I'm using gmail APIs for getting userinfo and getting appropriate response. I want to fetch emails for the user's inbox with category; I'm thinking to use the SYSTEM level labels such as CATEGORY_SOCIAL for social, CATEGORY_PERSONAL For personal/primary, etc. For this functionality, I'm using following GET API: https://www.googleapis.com/gmail/v1/users/userId/messages API with proper parameters. I'm using google's try it out option for this. https:/

Decode URL Safe Base64 in JavaScript (browser side)

為{幸葍}努か 提交于 2019-11-27 23:53:20
问题 I am using Gmail's API to get emails from my account. The body of the message is delivered in a "URL safe base64" format. What is the best way to decode this for use? I have found some nodejs solutions, but no client side ones. window.atob does not work since it is URL safe. Thanks for any help. 回答1: For posterity, atob(data.replace(/_/g, '/').replace(/-/g, '+')) As stated by the spec https://tools.ietf.org/html/rfc4648#section-5 however because this uses atob() it does not support unicode

Gmail API users.watch - no details for historyId

天大地大妈咪最大 提交于 2019-11-27 22:22:04
I have successfully set up Google Pub/Sub to use Gmail API Watch feature as described here: https://developers.google.com/gmail/api/guides/push to watch INBOX label in my gmail account. Once new message arrive I instantly get a push notification in valid format like: { message: { data: '.......', attributes: {}, message_id: '1248700053943' }, subscription: '.....' } After I base64decode data I get email and historyId. Then, as suggested, I request gmail.users.history.list API (via API console) with startHistoryId set to the historyId from the push notification. And then get just empty response

how to send message using Gmail API with Ruby Google API Client?

谁说胖子不能爱 提交于 2019-11-27 19:20:31
问题 i'm facing several problem with API, first: send method asking for 'id'(message id or thread id) .. but why ? i'm sending new message so it shouldn't require . according to Gmail Api documnetation its optional . https://developers.google.com/gmail/api/v1/reference/users/messages/send ArgumentError: Missing required parameters: id. second: even after specify message id it return this message . Your client has issued a malformed or illegal request. code require 'mime' include MIME msg = Mail

I keep getting an error that my app needs to be verified when either I or another user try to authorize with OAuth2. What does that mean?

点点圈 提交于 2019-11-27 18:51:12
I received this error when trying to authorize my app with my own account: Your project is trying to access scopes that need to go through the verification process. {invalid=https://www.googleapis.com/auth/contacts} If you need to use one of these scopes, submit a verification request. Learn More When I use a different account, the error message is different: This app hasn’t been verified to access: {invalid=https://www.googleapis.com/auth/contacts} Are you the developer? If this project needs these scopes, sign in to an account with access to edit your project and try again. If not, contact

Send Mail with attachment using Gmail new API, but it is not displayed for receiver's inbox

送分小仙女□ 提交于 2019-11-27 18:32:39
问题 We are integrating GMail using the latest API provided by them as a part of developing email client within our application. We are using PHP client library provided by Google. See the link https://developers.google.com/api-client-library/php/ In this I'm trying to send a mail with attachment. Here we have generated message/rfc822 compatible text and passed it with 'raw' parameter. Here the problem I found is, after executing the code, when I checked the sent mail for the mail which I sent via