gmail-api

Users.threads.list not returning all pages/threads

只谈情不闲聊 提交于 2020-01-06 14:42:01
问题 Calling Users.threads.list on a label with 162 threads with maxResults=50 so there should be 4 pages. Third page doesn't have a nextPageToken (even when specifically requested in fields) so I can't get the last page. Also, the third page only returns 46 threads. Tried includeSpamTrash=true didn't fix it. Verified results through the in-page API tester at https://developers.google.com/gmail/api/v1/reference/users/threads/list. 来源: https://stackoverflow.com/questions/26460654/users-threads-list

Reply to a thread (mail) with attachment being sent as a new mail in sender account - gmail api

佐手、 提交于 2020-01-06 08:31:10
问题 I am trying to send reply to a thread (mail) with attachment using gmail api. But it is being sent as a new mail in senders account, but in receiver account it is seen in same thread. This mail should be in same thread for both sender and receiver sides as well. I am using node js and request-promise module for achieving this. Here is my piece of code. Please have a look and let me know where I am wrong. let from = req.body.email; let mailString = ''; for (let i in req.files) { mailString +=

App crashes and gives NullPointerException error when trying to set up Gmail API for Android

爱⌒轻易说出口 提交于 2020-01-06 07:15:07
问题 I've been trying to set up gmail api for an android app but it has been unsuccessful. I'm running this quickstart code on the official doc Java Quickstart Following the three steps on the page, the Gmail api has been enabled in console, credentials.json file has also been downloaded and added to assets folder in android studio When I run the quickstart code which is suppose to display the labels in my email, the app crashes and i get this error Process: com.example.receiveemail, PID: 20339

GMAIL API search user's messages in a domain

徘徊边缘 提交于 2020-01-06 03:05:46
问题 Exist a Gmail Rest API in order to search by the users messages of a particular domains mailboxes? A practical example is that a backend service after authentication via OAuth can search messages in different domains mailboxes of others users. I'm not able to find the right Google API for perform this type of research. Someone know a solution for this ? 回答1: There is no concrete way to search across all mailboxes in a domain. You would need to enumerate the mailboxes (e.g. using the admin SDK

Getting more data from messages.get in C#

谁都会走 提交于 2020-01-05 12:13:41
问题 I'm having trouble getting more than just the snippet for text data for the message I am trying to retrieve using the Gmail API. Here is the piece of test code I am working with: public string GetMail() { GmailService service = (GmailService)HttpContext.Current.Session["service"]; Message messageFeed = service.Users.Messages.List("me").Execute().Messages.First(); UsersResource.MessagesResource.GetRequest getReq = new UsersResource.MessagesResource.GetRequest(service, "me", messageFeed.Id);

Getting more data from messages.get in C#

隐身守侯 提交于 2020-01-05 12:13:08
问题 I'm having trouble getting more than just the snippet for text data for the message I am trying to retrieve using the Gmail API. Here is the piece of test code I am working with: public string GetMail() { GmailService service = (GmailService)HttpContext.Current.Session["service"]; Message messageFeed = service.Users.Messages.List("me").Execute().Messages.First(); UsersResource.MessagesResource.GetRequest getReq = new UsersResource.MessagesResource.GetRequest(service, "me", messageFeed.Id);

Sending mail from Chrome extension using auth 2.0 but stuck at somewhere I don't know

孤者浪人 提交于 2020-01-05 09:29:51
问题 I want to send email from Chrome extension where user has to enter the email address of the reciepent in the extenion popup window, and the link of the current opened tab will be sent to the entered email address, but I am stuck in the authentication part, it asks for the password of my email as shown in the. After I enter, it reloads the same page instead of sending the mail. Please help me out where I am getting wrong. The code is for popup.js page. document.addEventListener(

Using Gmail API to Send Attachments Larger than 10mb

你说的曾经没有我的故事 提交于 2020-01-05 06:15:22
问题 I'm struggling to find a good example of the full set of requests necessary to send an email through the Gmail API containing an attachment larger than 10mb. I've seen https://developers.google.com/gmail/api/v1/reference/users/messages/send and https://developers.google.com/gmail/api/guides/uploads#resumable, but there's nothing that ties it all together. We're using the ruby client, but we're unable to complete this flow. With the following code, we get the following error trying to make the

How can I get 'payload' property from the Messages list? Gmail API

不打扰是莪最后的温柔 提交于 2020-01-05 04:15:10
问题 I'm new in node, and I want to get info about my gmail messages, like who's wrote the message and the text. I follow quickstart exemple and write the following code, but there are just 'id' and 'threadId' field in output. function listMessages(auth) { var gmail = google.gmail('v1'); gmail.users.messages.list({ auth: auth, userId: 'me' }, function(err, response) { if (err) { console.log('The API returned an error: ' + err); return; } var messages = response.messages; if (messages.length == 0)

Is there a way to create nested label under inbox?

时光毁灭记忆、已成空白 提交于 2020-01-05 04:06:45
问题 I tried from gmail.com UI, but i didn't found any way to create nested folders under system labels. Then i tried using APIs and it's not possible from there also. But i am not able to find any documentation where this behaviour is specified. Am i missing something or doing something wrong. I am using gmail apis to create labels. https://developers.google.com/gmail/api/v1/reference/users/labels/create The problem is we have a customer who has nested labels under inbox. I think may be its old