gmail-api

using /upload urls with Google API client

陌路散爱 提交于 2020-01-04 14:37:29
问题 Consider this: I am fetching rawbody messages by this call: service.users().messages().get(userId='me', format='raw', id=msgid) Then I am pushing rawbody messages by this Call: service.users().messages().insert(userId='me', body=message) Now when the mails contain attachments bigger 5MB, I encounter 413 "Request Entity Too Large.", and I can't push mails. GMail API messages.insert Documentation advices to use POST https://www.googleapis.com/upload/gmail/v1/users/userId/messages instead of

Gmail API getting all Gmail Inbox messages limits to 500

99封情书 提交于 2020-01-04 14:07:08
问题 I am trying to get all the inbox messages in the Gmail API, but it's limiting to 500 per request. I would like to get all the messages, and the current messages in the repository is 1600+ but I am only able to get 500 on one request. $service = new Google_Service_Gmail($client); $user = 'me'; $params = array( 'labelIds' => 'INBOX', 'maxResults' => 20000 ); $last_date = mysqli_fetch_array($query); extract($last_date); $date = date_create($latest); $date->modify('-1 day'); $filter_date = date

GMail API not working properly when minifyEnabled=true

偶尔善良 提交于 2020-01-04 05:30:25
问题 I am developing an Android app that sends e-mails using the GMail API. I have used the example code at Android Quickstart and Sending Email and everything works fine when I debug the app. The problem arises when I build the release version with minifyEnabled=true . In that case, the call to service.users().messages().send(userId, message).execute(); goes into error with IOException . The message of the exception is "404 Not Found". The Proguard file includes all the -keep class and -dontwarn

Getting error in Mail send Using Nodemailer

心已入冬 提交于 2020-01-04 04:58:16
问题 I create a project and follow all step written in answer of Nodemailer/Gmail - What exactly is a refresh token and how do I get one? but i am error. I use following code: var smtpTransport = nodemailer.createTransport("SMTP", { service: "Gmail", connectionTimeout : "7000", greetingTimeout : "7000", auth: { XOAuth2: { user: "", clientId: "", clientSecret: "", refreshToken: "" } } }); var mailOptions = { from: "", to:usersEmailId, subject: 'subject', html: 'string Of Html' } smtpTransport

Gmail PHP API Sending Email

徘徊边缘 提交于 2020-01-04 04:42:07
问题 I am trying to send an email through the Gmail PHP API (https://developers.google.com/gmail/api/v1/reference/users/messages/send). Everything seems to work up to the point that I send the message. My code is: private function createMessage($email) { $message = new Google_Service_Gmail_Message(); $message->setRaw(strtr(base64_encode($email), '+/=', '-_,')); // $email is a raw email data string return $message; } public function sendMessage($userID, $email) { try { $msg = $this->createMessage(

GoogleApiClient.addApi() doesn't support Gmail API

霸气de小男生 提交于 2020-01-04 04:37:29
问题 I'm trying to use the following code to get an authentication with the given APIs but the addApi is neither recognizing Gmail as an API or Gmail.API as an API. Because of this I'm getting an Unauthorized 401 going further into the application when trying to retrieve the messages. mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Plus.API) .addScope(Plus.SCOPE_PLUS_LOGIN) .addApi(Gmail) .addScope(GmailScopes.GMAIL

Gmail (for business) API doesn't allow to send email from Alias?

时光怂恿深爱的人放手 提交于 2020-01-03 15:35:37
问题 I want to email my customers using different "roles" (e.g. info@ , customer-support@, tech-support@, no-reply@). I've tried 2 approaches: Multiple "users"/accounts in my Gmail for business application. Single gmail account with multiple aliases. I started by setting up a Service Account with global delegation for my Gmail for Business application. To test that it works, I've set up 2 users: lev@mydomain.com and root@mydomain.com. Indeed, I can successfully send email both from lev@ and root@.

Error 413: Request Entity Too Large with PHP

落爺英雄遲暮 提交于 2020-01-03 02:20:32
问题 I'm using Gmail's PHP API to send emails. Using those resources, I can send messages with attachments upto 5 mb. But I can't figure out how to send attachments larger than 5 MB. I've found that it is necessary to use multipart uploadtype, but I can not figure out exactly how to implement that based on what I tried is: $service->users_messages->send($userId, $message, 'uploadType' => 'resumable']); $service->users_messages->send($userId, $message, 'uploadType' => 'multipart']); still getting

Gmail API quota usage check

删除回忆录丶 提交于 2020-01-02 08:04:13
问题 We are developing a project working with Gmail API, it might exceed the API limit on this page https://developers.google.com/gmail/api/v1/reference/quota API Limit Daily Usage 1,000,000,000 quota units per day Per User Rate Limit 250 quota units per user per second "Exceeding a rate limit will cause an HTTP 403 or HTTP 429 Too Many Requests response and your app should respond by retrying with exponential backoff." So we can we make a call from script, to check the number of API call left

Retrive friends of friends in gmail for ios app [closed]

岁酱吖の 提交于 2019-12-31 03:54:24
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I want to retrieve friends of friends of gmail account in my iPhone application. I have no any idea about integration of gmail in iPhone application. Which framework I need to use or how to integrate and retrieve friends of friends ? If there is any demo or link please suggest me. 回答1: go to https://developers